/* Reset & Base Styles scoped */
  .fipic-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  }
.btn-primary, .sppb-btn-primary {
    border-color: #003c70;
    background-color: #003b6e;
}
  .fipic-container {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    color: #1e293b;
  }

  /* Selector Tabs */
  .fipic-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .fipic-tab-btn {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    color: #475569;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .fipic-tab-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
  }

  .fipic-tab-btn.active {
    background-color: #ffffff;
    border-color: #0055a5;
    color: #003366;
    box-shadow: 0 4px 12px rgba(0, 85, 165, 0.12);
  }

  .fipic-tab-btn .tab-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0284c7;
  }

  /* Event Card Main Box */
  .fipic-event-card {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: fipicFade 0.3s ease-in-out;
  }

  .fipic-event-card.active {
    display: block;
  }

  @keyframes fipicFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Header Themes con forzatura colori */
  .fipic-header {
    padding: 28px 24px;
  }

  .fipic-header.seregno {
    background: linear-gradient(135deg, #0f2b5c 0%, #1d4ed8 60%, #eab308 100%) !important;
  }

  .fipic-header.memorial {
    background: linear-gradient(135deg, #1e1b18 0%, #3a2e2b 50%, #8c6227 100%) !important;
  }

  .fipic-header.laumas {
    background: linear-gradient(135deg, #003366 0%, #0055a5 100%) !important;
  }

  /* Forzatura specifica per i titoli dentro l'header per battere il CSS di Joomla */
  .fipic-header h2, 
  .fipic-header .fipic-title {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  .fipic-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .fipic-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .fipic-badge.gold {
    background: #d97706 !important;
  }

  .fipic-subtitle {
    font-style: italic;
    color: #fde68a !important;
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .fipic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #ffffff !important;
    margin-top: 10px;
  }

  .fipic-meta * {
    color: #ffffff !important;
  }

  /* Body & Schedule Timeline */
  .fipic-body {
    padding: 24px;
  }

  .fipic-section-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #003366 !important;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
  }

  .fipic-day-heading {
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    background: #eff6ff;
    padding: 8px 14px;
    border-radius: 8px;
    margin: 16px 0 10px 0;
    border-left: 4px solid #1d4ed8;
  }

  .fipic-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .fipic-slot {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-radius: 10px;
    background: #f8fafc;
    border-left: 5px solid #0055a5;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .fipic-slot:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .fipic-slot.seregno-slot {
    border-left-color: #eab308;
    background: #fffdf0;
  }

  .fipic-slot.pause {
    background: #f1f5f9;
    border-left-color: #94a3b8;
  }

  .fipic-slot.youth {
    background: #f0fdf4;
    border-left-color: #16a34a;
  }

  .fipic-time {
    font-weight: 800;
    color: #003366;
    min-width: 110px;
    font-size: 1rem;
  }

  .fipic-slot.seregno-slot .fipic-time {
    color: #854d0e;
  }

  .fipic-slot.pause .fipic-time {
    color: #64748b;
  }

  .fipic-slot.youth .fipic-time {
    color: #166534;
  }

  .fipic-match {
    font-weight: 600;
    font-size: 1rem;
    color: #334155;
    flex-grow: 1;
  }

  .fipic-slot.pause .fipic-match {
    color: #64748b;
    font-style: italic;
  }

  .fipic-slot.youth .fipic-match {
    color: #14532d;
  }

  .fipic-subtag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
  }

  /* Venue & Map Trigger */
  .fipic-venue-box {
    background: #f0f7ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .fipic-venue-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem !important;
    color: #0369a1 !important;
    font-weight: 700 !important;
  }

  .fipic-venue-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #0c4a6e;
  }

  .fipic-map-btn {
    background: #0055a5;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
  }

  .fipic-map-btn:hover {
    background: #003366;
  }

  /* Modal Overlay per Mappe */
  .fipic-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 16px;
  }

  .fipic-modal.active {
    display: flex;
  }

  .fipic-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 750px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  }

  .fipic-modal-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .fipic-modal-header h3 {
    font-size: 1.1rem !important;
    color: #003366 !important;
    margin: 0 !important;
  }

  .fipic-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
  }

  .fipic-modal-body {
    height: 400px;
    width: 100%;
  }

  .fipic-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }
/* Applica il font ai titoli */
h1, h2, h3, h4, .site-title, .header .navbar-brand {
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase; /* Anton nasce per essere in maiuscolo */
    letter-spacing: 1px;
}
.sppb-alert-dark {
    background: #0058A0;
}
.sppb-alert-danger {
    background: rgba(255, 43, 2, .1);
    color: #ff2b02;
    border-left: 3px solid #d21d33;
}
.sppb-alert {
    border-radius: 10px;
}
#sp-menu ul.social-icons a {
    color: #ffffff;
}

/* ==================================================
   1. MENU LATERALE MODERNO (SOLO SIDEBAR LEFT E RIGHT)
   ================================================== */

#sp-left .sp-module, 
#sp-right .sp-module {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 30px !important;
}

#sp-left .sp-module-title, 
#sp-right .sp-module-title {
    color: #0d47a1 !important;
    font-size: 1.25rem !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid #e3f2fd !important;
    position: relative !important;
}

#sp-left .sp-module-title::after, 
#sp-right .sp-module-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important;
    left: 0 !important;
    width: 45px !important;
    height: 3px !important;
    background-color: #0d47a1 !important;
    border-radius: 3px !important;
}

#sp-left .sp-module ul.mod-menu,
#sp-left .sp-module ul.menu,
#sp-left .sp-module ul.nav,
#sp-right .sp-module ul.mod-menu,
#sp-right .sp-module ul.menu,
#sp-right .sp-module ul.nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

#sp-left .sp-module ul.mod-menu > li,
#sp-left .sp-module ul.menu > li,
#sp-left .sp-module ul.nav > li,
#sp-right .sp-module ul.mod-menu > li,
#sp-right .sp-module ul.menu > li,
#sp-right .sp-module ul.nav > li {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#sp-left .sp-module ul.mod-menu > li > a,
#sp-left .sp-module ul.menu > li > a,
#sp-left .sp-module ul.nav > li > a,
#sp-right .sp-module ul.mod-menu > li > a,
#sp-right .sp-module ul.menu > li > a,
#sp-right .sp-module ul.nav > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.25s ease-in-out !important;
}

#sp-left .sp-module ul.mod-menu > li > a::after,
#sp-left .sp-module ul.menu > li > a::after,
#sp-left .sp-module ul.nav > li > a::after,
#sp-right .sp-module ul.mod-menu > li > a::after,
#sp-right .sp-module ul.menu > li > a::after,
#sp-right .sp-module ul.nav > li > a::after {
    content: '›' !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    color: #94a3b8 !important;
    margin-left: 10px !important;
}

#sp-left .sp-module ul.mod-menu > li > a:hover,
#sp-left .sp-module ul.menu > li > a:hover,
#sp-left .sp-module ul.nav > li > a:hover,
#sp-right .sp-module ul.mod-menu > li > a:hover,
#sp-right .sp-module ul.menu > li > a:hover,
#sp-right .sp-module ul.nav > li > a:hover {
    background-color: #e0f2fe !important;
    color: #0d47a1 !important;
    border-color: #90caf9 !important;
    transform: translateX(4px) !important;
}

#sp-left .sp-module ul.mod-menu > li.active > a,
#sp-left .sp-module ul.menu > li.active > a,
#sp-left .sp-module ul.nav > li.active > a,
#sp-right .sp-module ul.mod-menu > li.active > a,
#sp-right .sp-module ul.menu > li.active > a,
#sp-right .sp-module ul.nav > li.active > a {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
    border-color: #0d47a1 !important;
}

#sp-left .sp-module ul.mod-menu > li.active > a::after,
#sp-left .sp-module ul.menu > li.active > a::after,
#sp-left .sp-module ul.nav > li.active > a::after,
#sp-right .sp-module ul.mod-menu > li.active > a::after,
#sp-right .sp-module ul.menu > li.active > a::after,
#sp-right .sp-module ul.nav > li.active > a::after {
    color: #ffffff !important;
}


/* ==================================================
   2. FOOTER E SEZIONI BOTTOM
   ================================================== */

#sp-bottom, 
#sp-footer, 
.sp-copyright,
footer#sp-footer-wrapper {
    background-color: #1a568c !important;
    color: #ffffff !important;
}

#sp-bottom .sp-module, 
#sp-footer .sp-module {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#sp-bottom .sp-module-title, 
#sp-footer .sp-module-title {
    color: #ffffff !important;
    border: none !important;
    font-weight: 400 !important;
}

#sp-bottom .sp-module-title::after, 
#sp-footer .sp-module-title::after {
    display: none !important;
}

#sp-bottom .sp-module ul li a, 
#sp-footer .sp-module ul li a {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 2px 0 !important;
    box-shadow: none !important;
    transform: none !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

#sp-bottom .sp-module ul li a::after, 
#sp-footer .sp-module ul li a::after {
    display: none !important;
    content: "" !important;
}

#sp-bottom .sp-module ul li a:hover, 
#sp-footer .sp-module ul li a:hover {
    color: #ffffff !important;
    background: transparent !important;
    text-decoration: underline !important;
}

#sp-bottom .sp-module ul.menu,
#sp-footer .sp-module ul.menu,
#sp-bottom .sp-module ul.nav,
#sp-footer .sp-module ul.nav {
    gap: 2px !important;
}

#sp-bottom .sp-module ul li, 
#sp-footer .sp-module ul li {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#sp-main-body {
    padding: 30px 0;
}

#sppb-addon-1629274448274 .sppb-addon-title {
    font-weight: 400 !important;
}

.sp-profile-wrapper .sp-sign-in,
.sp-profile-wrapper .sp-sign-in .user-text,
.sp-profile-wrapper .sp-sign-in i {
    color: #ffffff !important;
}

.sp-profile-wrapper .sp-sign-in:hover,
.sp-profile-wrapper .sp-sign-in:hover .user-text,
.sp-profile-wrapper .sp-sign-in:hover i {
    color: #e0f2fe !important;
}

/* ==================================================
   3. FIX PHOCA DOWNLOAD
   ================================================== */

#phoca-dl-category-box a.btn,
.phocadownload-box a,
a.pd-button-back,
.pd-cb-up a,
.pd-cb-up a span {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

#phoca-dl-category-box a.btn:hover,
a.pd-button-back:hover,
.pd-cb-up a:hover {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
}

.phocadownload-footer,
div[style*="text-align: right; color: rgb(204, 204, 204)"],
div[style*="text-align:right"],
.pd-credit,
#phoca-dl-category-box + div[style*="text-align"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sp-module ul.nav li.active > a,
.sp-module ul.menu li.active > a,
.sidebar-left .mod-menu li.active > a,
.nav-pills .nav-link.active {
    background-color: #0058a0 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.sp-module ul.nav li a:hover,
.sp-module ul.menu li a:hover {
    color: #0058a0 !important;
}

.menu-toggler,
.menu-toggler::after {
    color: #ff6600 !important;
    border-color: #ff6600 !important;
}

/* ==================================================
   4. CAROSELLO HERO OVERRIDE
   ================================================== */

#sp-slider .container,
#sp-slider .container-inner,
#sp-slider .row,
#sp-slider .col-lg-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.sp-module.carosello-news {
    position: relative !important;
    width: 100% !important;
    margin: 0 0 2rem 0 !important;
    padding: 0 !important;
    background: #021834 !important;
    overflow: hidden !important;
}

.carosello-news ul.mod-articles-items {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
    -ms-overflow-style: none;
    scrollbar-width: none;
    touch-action: pan-y;
}

.carosello-news ul.mod-articles-items::-webkit-scrollbar {
    display: none !important;
}

.carosello-news ul.mod-articles-items > li,
.carosello-news article.mod-articles-item,
.carosello-news .mod-articles-item-content {
    position: relative !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 520px !important;
    scroll-snap-align: start;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.carosello-news figure.mod-articles-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 1 !important;
}

.carosello-news figure.mod-articles-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    display: block !important;
}

.carosello-news article.mod-articles-item::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg, 
        rgba(2, 24, 52, 0.95) 0%, 
        rgba(2, 24, 52, 0.7) 45%, 
        transparent 80%
    ) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.carosello-news h4.mod-articles-title {
    position: absolute !important;
    top: 22% !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding-left: 80px !important;
    padding-right: 40% !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

.carosello-news h4.mod-articles-title a {
    color: #ffffff !important;
    font-size: 2.2rem !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9) !important;
    text-decoration: none !important;
    display: block !important;
}

.carosello-news .mod-articles-item-content p {
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    position: absolute !important;
    top: calc(22% + 115px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding-left: 80px !important;
    padding-right: 40% !important;
    z-index: 10 !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
    box-sizing: border-box !important;
}

.carosello-news .carosello-buttons {
    position: absolute !important;
    top: calc(22% + 225px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding-left: 80px !important;
    padding-right: 40% !important;
    display: flex !important;
    gap: 12px !important;
    z-index: 10 !important;
    box-sizing: border-box !important;
}

.carosello-news .btn-hero {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 10px 22px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: 0.5px !important;
    transition: background-color 0.2s ease !important;
}

.carosello-news .btn-link1 { 
    background: #0056b3 !important; 
    color: #ffffff !important; 
    border: 1px solid #0056b3 !important;
}

.carosello-news .btn-link1:hover {
    background: #003d80 !important;
}

.carosello-news .btn-link2 { 
    background: rgba(2, 24, 52, 0.7) !important; 
    color: #ffffff !important; 
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
}

.carosello-news .btn-link2:hover {
    background: rgba(2, 24, 52, 0.9) !important;
}

.carosello-dots {
    position: absolute !important;
    bottom: 40px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding-right: 60px !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    z-index: 12 !important;
    box-sizing: border-box !important;
}

.carosello-dots span {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, background-color 0.3s ease !important;
}

.carosello-dots span.active {
    background-color: #0056b3 !important;
    transform: scale(1.25) !important;
}

@media (max-width: 768px) {
    .carosello-news ul.mod-articles-items > li,
    .carosello-news article.mod-articles-item,
    .carosello-news .mod-articles-item-content {
        height: 380px !important;
    }
    .carosello-news h4.mod-articles-title {
        top: 12% !important;
        font-size: 1.35rem !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .carosello-news .mod-articles-item-content p {
        top: calc(12% + 65px) !important;
        -webkit-line-clamp: 2 !important;
        font-size: 0.88rem !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .carosello-news .carosello-buttons {
        top: calc(12% + 140px) !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .carosello-news .btn-hero {
        min-height: 36px !important;
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
    }
}

.article-details,
article.item,
.item-page {
    padding: 30px 40px !important;
    max-width: 1200px;
    margin: 0 auto;
}

.article-details p,
.item-page p {
    line-height: 1.75 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.05rem;
}

/* ==================================================
   5. FIPIC - "LE STORIE DEGLI AZZURRI"
   ================================================== */

#section-id-1785077248161 .sppb-addon-module {
  position: relative !important;
  padding: 0 45px !important;
  margin-top: 15px !important;
}

#section-id-1785077248161 ul.mod-articles-grid,
#section-id-1785077248161 ul.mod-articles-items {
  display: flex !important;
  flex-direction: row !important;
  gap: 24px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  padding: 15px 5px 25px 5px !important;
  margin: 0 !important;
  list-style: none !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#section-id-1785077248161 ul.mod-articles-grid::-webkit-scrollbar {
  display: none !important;
}

#section-id-1785077248161 ul.mod-articles-grid > li {
  flex: 0 0 calc(33.333% - 16px) !important;
  min-width: 280px !important;
  scroll-snap-align: start !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  margin: 0 !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

#section-id-1785077248161 ul.mod-articles-grid > li:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 24px rgba(0, 88, 160, 0.15) !important;
  border-color: #0058a0 !important;
}

#section-id-1785077248161 .mod-articles-item-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

#section-id-1785077248161 .article-intro-image,
#section-id-1785077248161 .mod-articles-image {
  order: 1 !important;
  width: 100% !important;
  height: 220px !important;
  overflow: hidden !important;
  background-color: #f1f5f9 !important;
  margin: 0 !important;
  float: none !important;
}

#section-id-1785077248161 .article-intro-image img,
#section-id-1785077248161 .mod-articles-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
}

#section-id-1785077248161 h4.mod-articles-title {
  order: 2 !important;
  font-family: 'Anton', sans-serif !important;
  font-size: 1.35rem !important;
  color: #0058a0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 18px 20px 8px 20px !important;
  padding: 0 !important;
}

#section-id-1785077248161 h4.mod-articles-title a {
  color: #0058a0 !important;
  text-decoration: none !important;
  display: block !important;
}

#section-id-1785077248161 .mod-articles-item-content p,
#section-id-1785077248161 .introtext {
  order: 3 !important;
  padding: 0 20px !important;
  color: #64748b !important;
  font-size: 0.9rem !important;
  margin-bottom: 16px !important;
}

.slider-arrow-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 42px !important;
  height: 42px !important;
  background-color: #0058a0 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 20 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s ease !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
}

.slider-arrow-btn:hover {
  background-color: #003e73 !important;
  transform: translateY(-50%) scale(1.1) !important;
}

.slider-arrow-prev { left: 0 !important; }
.slider-arrow-next { right: 0 !important; }

@media (max-width: 768px) {
  #section-id-1785077248161 .sppb-addon-module {
    padding: 0 !important;
  }
  #section-id-1785077248161 ul.mod-articles-grid > li {
    flex: 0 0 calc(85% - 10px) !important;
  }
  .slider-arrow-btn {
    display: none !important;
  }
}

/* ==================================================
   6. FIPIC - DJ LEAGUE (MODULO & PAGINE)
   ================================================== */

.mod_djl_schedule {
  container-type: inline-size;
  --djl-blue: #0058a0;
  --djl-red: #d21d33;
  --djl-ink: #10253f;
  --djl-muted: #5b6b7d;
  --djl-line: #dbe4ee;
}

.sp-module:has(.mod_djl_schedule) > .sp-module-title {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  font-size: 1.9rem;
  line-height: 1.1;
}
.sp-module:has(.mod_djl_schedule) > .sp-module-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(200deg, #fb003c 21%, var(--djl-blue) 100%);
}

.mod_djl_schedule table,
.mod_djl_schedule tbody,
.mod_djl_schedule tfoot {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
}
.mod_djl_schedule td {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
}
.mod_djl_schedule tr {
  display: block;
  background: transparent;
}
.mod_djl_schedule:not(:has(.team_home)) {
  display: none;
}

.mod_djl_schedule tr:has(> .game_day) {
  margin: 30px 0 12px;
}
.mod_djl_schedule tbody > tr:first-child:has(> .game_day) {
  margin-top: 0;
}
.mod_djl_schedule td.game_day {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anton', sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.04em;
  color: #339ef6 !important;
}
.mod_djl_schedule td.game_day::before {
  content: "";
  flex: none;
  width: 3px;
  height: 1.4em;
  border-radius: 3px;
  background: var(--djl-red);
}
.mod_djl_schedule td.game_day::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--djl-blue), transparent);
}

.mod_djl_schedule tr:has(> .team_home) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  margin-top: 12px;
  padding: 18px 20px 14px;
  background: #fff;
  border: 1px solid var(--djl-line);
  border-bottom: 0;
  border-left: 4px solid var(--djl-blue);
  border-radius: 14px 14px 0 0;
}
.mod_djl_schedule tr:has(> .team_home) + tr {
  padding: 0 20px 16px;
  background: #fff;
  border: 1px solid var(--djl-line);
  border-top: 0;
  border-left: 4px solid var(--djl-blue);
  border-radius: 0 0 14px 14px;
}
.mod_djl_schedule td.team_home,
.mod_djl_schedule td.team_away {
  display: flex;
  align-items: center;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
}
.mod_djl_schedule td.team_home {
  flex-direction: row-reverse;
  text-align: right !important;
}
.mod_djl_schedule td.team_away {
  text-align: left !important;
}
.mod_djl_schedule img.team_logo {
  margin: 0 !important;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--djl-line);
  box-shadow: 0 2px 8px rgba(0, 88, 160, 0.1);
}
.mod_djl_schedule .name {
  min-width: 0;
  font-weight: 700;
  line-height: 1.25;
  color: var(--djl-ink);
}
.mod_djl_schedule .vs_sign {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='3.5' stroke-opacity='.38'%3E%3Ccircle cx='50' cy='50' r='46'/%3E%3Cpath d='M50 4V96M4 50H96'/%3E%3Cpath d='M17 17C35 33 35 67 17 83M83 17C65 33 65 67 83 83'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(200deg, #fb003c 21%, var(--djl-blue) 100%);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--djl-line);
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
}

/* ==================================================
   8. HEADER, MENU PRINCIPALE E STILI GENERALI
   ================================================== */

#sp-header .sp-megamenu-parent > li:hover > a::before,
#sp-header .sp-megamenu-parent > li.active > a::before {
  left: var(--fipic-pad);
  width: calc(100% - (2 * var(--fipic-pad)));
}

/* Footer & Copyright Details */

/* Sfondo della pagina generale */
/* ===== PERFETTO ===== */
:root {
  --fipic-blu-scuro: #003e73;
  --fipic-blu: #0058a0;
  --fipic-rosso: #d21d33;
}

/* ===== BASE & TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6,
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
.sp-module-title, .sp-module-title *,
.sppb-addon-title, .sppb-addon-title *,
.sppb-title-heading, .sppb-title-heading * {
  font-weight: 400 !important;
}

body.site {
  overflow-x: clip;
}

img, video, iframe, table {
  max-width: 100%;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--fipic-rosso);
  outline-offset: 2px;
}

/* ===== HEADER DESKTOP ===== */
#sp-header {
  --fipic-pad: 8px;
  background: linear-gradient(90deg, var(--fipic-blu-scuro), var(--fipic-blu));
  box-shadow: 0 2px 14px rgba(0, 30, 60, .3);
}
#sp-header .container-inner > .row { flex-wrap: nowrap; }
#sp-header #sp-menu { flex: 1 1 0; min-width: 0; }
#sp-header .menu-with-offcanvas { min-width: 0; }

#sp-header a.sp-sign-in,
#sp-header a.sp-sign-in:hover,
#sp-header a.sp-sign-in:focus,
#sp-header a.sp-sign-in:active,
#sp-header a.sp-sign-in span,
#sp-header a.sp-sign-in i {
  color: #fff !important;
  white-space: nowrap;
}
#sp-header .sp-profile-wrapper .user-text { font-size: 11px; }

#sp-header a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }

/* ===== TITOLO PAGINA (Nascondi di default) ===== */
#sp-page-title {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}
#sp-page-title .row,
#sp-page-title .sp-column,
#sp-page-title .sp-module {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
#sp-page-title .jmodedit,
#sp-page-title [role="tooltip"] { display: none; }

/* ===== MEGAMENU ===== */
#sp-header .sp-megamenu-parent > li > a,
#sp-header .sp-megamenu-parent > li > span {
  position: relative;
  padding: 0 var(--fipic-pad);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: color .2s ease;
}
#sp-header .sp-megamenu-parent > li:hover > a,
#sp-header .sp-megamenu-parent > li.active > a { color: #fff; }

#sp-header .sp-megamenu-parent > li > a::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 4px;
  background: var(--fipic-rosso);
  border-radius: 3px 3px 0 0;
  transition: width .25s ease, left .25s ease;
}
#sp-header .sp-megamenu-parent > li:hover > a::before,
#sp-header .sp-megamenu-parent > li:focus-within > a::before,
#sp-header .sp-megamenu-parent > li.active > a::before {
  left: var(--fipic-pad);
  width: calc(100% - (2 * var(--fipic-pad)));
}
#sp-header .sp-megamenu-parent > li.sp-has-child > a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: static;
  margin-left: 4px;
  color: #fff;
}

.sp-megamenu-parent .sp-dropdown.sp-dropdown-main:not(.sp-dropdown-mega),
.sp-megamenu-parent .sp-dropdown.sp-dropdown-sub {
  width: auto !important;
  min-width: 240px;
  max-width: 320px;
}
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: #fff;
  padding: 8px 0;
  border-top: 3px solid var(--fipic-rosso);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 32px rgba(0, 30, 60, .25);
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  display: block;
  padding: 10px 20px;
  color: #12365a;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  border-left: 3px solid transparent;
  transition: background .2s ease, padding-left .2s ease, color .2s ease, border-color .2s ease;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
  padding-left: 24px;
  color: var(--fipic-blu);
  background: #eef5fb;
  border-left-color: var(--fipic-rosso);
}
.sp-megamenu-parent .sp-dropdown li.sp-has-child > a {
  position: relative;
  padding-right: 34px;
}
.sp-megamenu-parent .sp-dropdown li.sp-has-child > a::after {
  content: "\203A";
  font-family: inherit;
  font-weight: 400;
  position: absolute;
  right: 16px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  font-size: 18px;
  color: inherit;
}
.sp-megamenu-parent .sp-has-child:focus-within > .sp-dropdown {
  opacity: 1;
  visibility: visible;
}

#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > span.sp-menu-heading,
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > span.sp-menu-separator {
  display: block;
  margin: 0;
  padding: 12px 20px 6px 23px;
  color: var(--fipic-blu);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: default;
  pointer-events: none;
}
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item:has(> span.sp-menu-heading):not(:first-child),
#sp-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item:has(> span.sp-menu-separator):not(:first-child) {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e3ebf3;
}

.sp-megamenu-parent .sp-dropdown.sp-dropdown-mega { max-width: calc(100vw - 32px); }
.sp-megamenu-parent .sp-dropdown-mega .sp-dropdown-inner {
  padding: 24px 28px;
  border-radius: 0 0 14px 14px;
}
.sp-dropdown-mega .row > [class*="col-"] + [class*="col-"] { border-left: 1px solid #e3ebf3; }
.sp-dropdown-mega .sp-mega-group,
.sp-dropdown-mega .sp-mega-group-child { margin: 0; padding: 0; list-style: none; }
.sp-megamenu-parent .sp-dropdown-mega .sp-mega-group > li.sp-menu-item > a.sp-group-title {
  display: block;
  margin: 0 20px 8px 0;
  padding: 0 0 8px;
  color: var(--fipic-blu);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--fipic-rosso);
}
.sp-dropdown-mega li.sp-has-child > a::after { content: none; }
.sp-megamenu-parent .sp-dropdown a:focus-visible { outline: 3px solid var(--fipic-rosso); outline-offset: -3px; }

/* ===== MENU LATERALE & OFFCANVAS ===== */
#offcanvas-toggler,
.offcanvas-toggler-secondary,
.offcanvas-menu .close-offcanvas {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
#sp-header .burger-icon > span,
#offcanvas-toggler .burger-icon > span { background-color: #fff !important; }

.offcanvas-menu { background: linear-gradient(180deg, var(--fipic-blu-scuro), var(--fipic-blu)); }
.offcanvas-menu .close-offcanvas .burger-icon span { background: #fff; }
.offcanvas-menu .offcanvas-inner .menu > li > a {
  display: block;
  padding: 14px 20px;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.offcanvas-menu .offcanvas-inner .menu-child a {
  display: block;
  padding: 10px 20px 10px 34px;
  color: #dbe9f6 !important;
  font-weight: 400;
  border-bottom: 0;
}
.offcanvas-menu .offcanvas-inner .menu a:hover,
.offcanvas-menu .offcanvas-inner .menu a:focus,
.offcanvas-menu .offcanvas-inner .menu li.active > a {
  color: #fff !important;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 4px 0 0 var(--fipic-rosso);
}
.offcanvas-menu .offcanvas-inner .menu li.active:not(.current) > a {
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}
.offcanvas-menu .offcanvas-inner .menu li.current > a {
  font-weight: 700;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 4px 0 0 var(--fipic-rosso);
}
.offcanvas-menu .menu-toggler,
.offcanvas-menu .sp-sign-in,
.offcanvas-menu .sp-sign-in span,
.offcanvas-menu .sp-sign-in i { color: #fff !important; }
.offcanvas-menu .offcanvas-inner .menu-child span.mod-menu__heading,
.offcanvas-menu .offcanvas-inner .menu-child span.mod-menu__separator,
.offcanvas-menu .offcanvas-inner .menu-child span.nav-header,
.offcanvas-menu .offcanvas-inner .menu-child span.separator {
  display: block;
  padding: 14px 20px 6px 34px;
  color: #9fc2e3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: default;
}
.offcanvas-menu a:focus-visible { outline: 3px solid var(--fipic-rosso); outline-offset: -3px; }

#sp-left, #sp-component { min-width: 0; max-width: 100%; }
#sp-left .sp-module-content, #sp-left .mod-menu { max-width: 100%; }
#sp-left .mod-menu .menu-child > li > a {
  display: block;
  padding: 10px 14px 10px 18px !important;
  font-size: 13px !important;
  line-height: 1.35;
  color: #12365a;
  overflow-wrap: anywhere;
}
#sp-left .mod-menu .menu-child > li.menu-parent > a { font-weight: 600; padding-bottom: 6px !important; }
#sp-left .mod-menu .menu-child .menu-child { margin: 0 0 6px 18px; padding: 0; border-left: 2px solid #e3ebf3; }
#sp-left .mod-menu .menu-child .menu-child > li > a {
  padding: 8px 14px 8px 16px !important;
  font-size: 13px !important;
  font-weight: 400;
  color: #4a6585;
}
#sp-left .mod-menu .menu-child a:hover,
#sp-left .mod-menu .menu-child a:focus-visible { color: #0058a0; background: #f4f8fc; }
#sp-left .mod-menu .menu-child li.current > a,
#sp-left .mod-menu .menu-child li > a[aria-current="page"] {
  color: #0058a0 !important;
  font-weight: 700 !important;
  background: #eef5fb !important;
  border-radius: 3px;
  box-shadow: inset 3px 0 0 #d21d33;
}
#sp-left .sp-module:first-child::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 220px;
  height: 84px;
  margin: 4px auto 16px;
  background-color: #cfe0f0;
  -webkit-mask: url("/images/assets/logo.svg") center top / contain no-repeat;
  mask: url("/images/assets/logo.svg") center top / contain no-repeat;
  pointer-events: none;
}

/* ===== BREADCRUMBS ===== */
.mod-breadcrumbs.breadcrumb {
  align-items: center;
  margin: 0;
  padding: 12px 18px !important;
  background: #f4f6f8;
  border-radius: 12px;
  font-size: 13px;
}
.mod-breadcrumbs__divider { margin-right: 8px; color: var(--fipic-rosso); }
.mod-breadcrumbs .breadcrumb-item a { color: var(--fipic-blu); font-weight: 500; text-decoration: none; }
.mod-breadcrumbs .breadcrumb-item a:hover,
.mod-breadcrumbs .breadcrumb-item a:focus-visible { color: var(--fipic-rosso); text-decoration: underline; text-underline-offset: 3px; }
.mod-breadcrumbs .breadcrumb-item + .breadcrumb-item { padding-left: 0; }
.mod-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: "\203A"; padding: 0 9px; font-size: 16px; line-height: 1; color: #9db3c8; }
.mod-breadcrumbs .breadcrumb-item.active { color: #12365a; font-weight: 600; }

/* ===== TITOLI SEZIONI (HERO BANNER) ===== */
h1.componentheading, .page-header h1, .com_djleague .componentheading, #sp-main-body h1 {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 150px !important;
  padding: 25px 40px !important;
  margin: 15px 0 25px 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  font-family: 'Anton', sans-serif !important;
  font-size: 2.6rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  color: #ffffff !important;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.8) !important;
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(0, 30, 60, 0.95) 0%, rgba(0, 48, 96, 0.85) 50%, rgba(2, 16, 32, 0.92) 100%),
              url("https://images.unsplash.com/photo-1546519638-68e109498ffc?q=80&w=1600&auto=format&fit=crop") center/cover no-repeat !important;
  box-shadow: 0 10px 25px rgba(0, 20, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(0, 88, 160, 0.4) !important;
}
h1.componentheading::before, .page-header h1::before, .com_djleague .componentheading::before, #sp-main-body h1::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 7px !important;
  height: 100% !important;
  background: linear-gradient(180deg, #d21d33 0%, #9e1122 100%) !important;
  border-radius: 14px 0 0 14px !important;
  z-index: 3 !important;
  box-shadow: 2px 0 10px rgba(210, 29, 51, 0.6) !important;
}

/* ===== PAGINA NEWS ===== */
.com-content-category-blog {
  --news-radius: 16px;
  --news-shadow: 0 10px 28px rgba(0, 10, 30, .45);
  --news-shadow-hover: 0 20px 44px rgba(0, 10, 30, .65);
}
.com-content-category-blog .article {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: 420px;
  background: var(--fipic-blu-scuro, #003e73);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--news-radius);
  overflow: hidden;
  box-shadow: var(--news-shadow);
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease;
}
.com-content-category-blog .article:hover,
.com-content-category-blog .article:focus-within { transform: translateY(-4px); box-shadow: var(--news-shadow-hover); }
.com-content-category-blog .article::before {
  content: ""; position: absolute; top: 0; left: 0; width: 7px; height: 100%;
  background: linear-gradient(180deg, #d21d33 0%, #9e1122 100%);
  box-shadow: 2px 0 10px rgba(210, 29, 51, .6); z-index: 4;
}
.com-content-category-blog .article-intro-image {
  position: absolute; inset: 0; z-index: 0; float: none !important; width: auto !important; height: auto !important;
  max-width: none !important; margin: 0 !important; padding: 0 !important; overflow: hidden;
}
.com-content-category-blog .article-intro-image a, .com-content-category-blog .article-intro-image img {
  display: block; width: 100%; height: 100%;
}
.com-content-category-blog .article-intro-image img { object-fit: cover; transition: transform .8s ease; }
.com-content-category-blog .article:hover .article-intro-image img { transform: scale(1.06); }
.com-content-category-blog .article-intro-image::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 40, 0) 20%, rgba(0, 30, 60, .78) 58%, rgba(2, 16, 32, .96) 100%);
  pointer-events: none;
}
.com-content-category-blog .article-body {
  position: relative; z-index: 2; display: flex; flex-direction: column; padding: 24px 28px 26px 32px;
}
.com-content-category-blog .article-header h2 {
  margin: 0 0 10px; font-family: 'Anton', sans-serif; font-size: 1.5rem; font-weight: 400; line-height: 1.15;
  letter-spacing: .8px; text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, .8);
}
.com-content-category-blog .article .article-header h2,
.com-content-category-blog .article .article-header h2 a { color: #fff !important; text-decoration: none !important; }
.com-content-category-blog .article-header h2 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.com-content-category-blog .article-header h2 a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

.com-content-category-blog .article-introtext {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
  overflow: hidden; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.6; text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
.com-content-category-blog .article-introtext p { margin: 0 0 .6em; }
.com-content-category-blog .article-introtext p:empty { display: none; }
.com-content-category-blog .article-introtext strong { font-weight: 600; }
.com-content-category-blog .article-introtext a { color: #fff; }
.com-content-category-blog .article-body::after {
  content: "Leggi l'articolo"; align-self: flex-start; margin-top: 16px; padding: 9px 18px; color: #fff; font-size: 13px; font-weight: 700;
  background: var(--fipic-rosso, #d21d33); border-radius: 999px; box-shadow: 0 6px 14px rgba(210, 29, 51, .4); transition: background .2s ease, padding .2s ease;
}
.com-content-category-blog .article:hover .article-body::after { background: #b5172b; padding-right: 24px; }
.com-content-category-blog .article-list .row > [class*="col-"] { margin-bottom: 28px; }
.com-content-category-blog .items-leading { display: grid; gap: 28px; margin-bottom: 28px; }
.com-content-category-blog .items-leading .article { min-height: 460px; }
.com-content-category-blog .items-leading .article-body { max-width: 820px; padding: 32px 40px 36px 44px; }
.com-content-category-blog .items-leading .article-header h2 { font-size: 2.4rem; letter-spacing: 1.2px; }
.com-content-category-blog .items-leading .article-introtext { -webkit-line-clamp: 4; line-clamp: 4; font-size: 15px; }

.com-content-category-blog .items-more { padding: 22px 28px 14px 32px; background: #f4f6f8; border-radius: var(--news-radius); box-shadow: var(--news-shadow); }
.com-content-category-blog .items-more::before {
  content: "Altre notizie"; display: block; margin-bottom: 8px; padding-bottom: 10px; color: #1d2a36; font-family: 'Anton', sans-serif;
  font-size: 1.3rem; letter-spacing: .8px; text-transform: uppercase; border-bottom: 2px solid var(--fipic-rosso, #d21d33);
}
.com-content-category-blog .com-content-blog__links { margin: 0; padding: 0; list-style: none; }
.com-content-category-blog .com-content-blog__link { border-bottom: 1px solid #dde2e7; }
.com-content-category-blog .com-content-blog__link:last-child { border-bottom: 0; }
.com-content-category-blog .com-content-blog__link a {
  display: block; padding: 12px 0 12px 16px; color: #1d2a36; font-weight: 600; text-decoration: none; border-left: 3px solid transparent; transition: color .2s ease, padding-left .2s ease, border-color .2s ease;
}
.com-content-category-blog .com-content-blog__link a:hover,
.com-content-category-blog .com-content-blog__link a:focus-visible { padding-left: 20px; color: var(--fipic-blu, #0058a0); border-left-color: var(--fipic-rosso, #d21d33); outline: 0; }

/* In evidenza / Badge */
.featured-article-badge, span.badge-danger, .badge.bg-danger {
  font-size: 0 !important; position: absolute !important; top: 20px !important; right: 20px !important; left: auto !important;
  z-index: 10 !important; background: rgba(20, 25, 35, 0.45) !important; -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important;
  padding: 8px 16px !important; border-radius: 4px !important; border: 1px solid rgba(255, 255, 255, 0.4) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
.featured-article-badge::before, span.badge-danger::before, .badge.bg-danger::before {
  content: "IN EVIDENZA" !important; font-size: 0.7rem !important; letter-spacing: 1.2px !important; text-transform: uppercase !important; color: #ffffff !important; display: inline-block !important; line-height: 1 !important;
}

/* Pagination & Navigation */
.com-content-category-blog .com-content-category-blog__navigation, .com_phocadownload .pagination-centered {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin: 28px 0 8px;
  padding: 14px 18px; background: #f4f6f8; border-radius: 12px; font-size: 13px; color: #12365a;
}
.com-content-category-blog .com-content-category-blog__counter { order: 2; float: none !important; margin: 0; padding: 0 !important; }
.com-content-category-blog .com-content-category-blog__pagination { order: 1; }
.com-content-category-blog .pagination, .com_phocadownload .pagination-centered ul.pagination { flex-wrap: wrap; gap: 4px; margin: 0 !important; padding: 0; }
.com-content-category-blog .pagination .page-item:not(:first-child) .page-link, .com_phocadownload .pagination-centered .page-item:not(:first-child) .page-link { margin-left: 0; }
.com-content-category-blog .pagination .page-link, .com_phocadownload .pagination-centered .page-link {
  min-width: 36px; padding: 6px 10px; font-size: 13px; text-align: center; color: #0058a0; background: #fff;
  border: 1px solid #cfdbe7; border-radius: 8px !important; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.com-content-category-blog .pagination .page-link:hover, .com-content-category-blog .pagination .page-item.active .page-link,
.com_phocadownload .pagination-centered .page-link:hover, .com_phocadownload .pagination-centered .page-item.active .page-link {
  color: #fff; background: #0058a0; border-color: #0058a0;
}
.com-content-category-blog .pagination .page-item.disabled .page-link, .com_phocadownload .pagination-centered .page-item.disabled .page-link {
  color: #9db3c8; background: #f4f6f8;
}

/* ===== PHOCA DOWNLOAD ===== */
.com_phocadownload .pagination-centered select.form-select {
  width: auto; min-width: 0; padding: 6px 32px 6px 12px; font-size: 13px; color: #12365a; background-color: #fff; border: 1px solid #cfdbe7; border-radius: 8px;
}
.com_phocadownload .pagination-centered select.form-select:focus { border-color: #0058a0; box-shadow: 0 0 0 3px rgba(0, 88, 160, .2); outline: 0; }
.com_phocadownload #sp-component, .com_phocadownload .pd-category-view, .com_phocadownload .pd-category, .com_phocadownload .pd-category .row > [class*="col-"] { min-width: 0 !important; }
.com_phocadownload .pd-title { display: block !important; max-width: 100% !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.com_phocadownload .pd-filename { margin-top: 6px !important; }
.com_phocadownload .pd-document48 { display: flex !important; align-items: center !important; gap: 8px !important; min-height: 48px !important; padding-left: 58px !important; line-height: 1.3 !important; }
.com_phocadownload .pd-document48 .pd-float { float: none !important; flex: 0 1 auto !important; min-width: 0 !important; }
.com_phocadownload .pd-document48 .pd-float a { display: block !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.com_phocadownload .pd-document48 .badge, .com_phocadownload .pd-document48 .label-new {
  position: static !important; flex: 0 0 auto !important; margin: 0 !important; transform: none !important; padding: 4px 8px !important; font-size: 10px !important; font-weight: 700 !important; line-height: 1.2 !important; letter-spacing: .04em; text-transform: uppercase; color: #3d2b00 !important; border-radius: 999px !important;
}
.com_phocadownload .pd-button-box-bt:empty, .com_phocadownload .pagination-centered .pagination-centered, .com_phocadownload .pagination-centered .counter:empty { display: none !important; }

/* ===== DJ-LEAGUE ===== */
body.com_djleague #sp-main-body { background: linear-gradient(180deg, #003e73 0%, #002244 30%, #001122 65%, #0b1622 85%, #ffffff 100%) !important; padding-top: 10px !important; padding-bottom: 20px !important; }
body.com_djleague #sp-main-body .container, body.com_djleague #sp-main-body .container-inner, body.com_djleague #sp-main-body #sp-component, body.com_djleague #sp-main-body .sp-column { background: transparent !important; }
body.com_djleague h1.componentheading, body.com_djleague #sp-main-body h1 { margin: 10px 0 25px 0 !important; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
body.com_djleague #djleague, body.com_djleague .djl_tables { margin-top: 20px !important; background: #ffffff !important; border-radius: 12px !important; padding: 8px !important; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important; }

/* ===== HERO/SLIDER HOME ===== */
#sp-slider .carosello-news, #sp-slider .sp-module.carosello-news, .sp-module.carosello-news {
  position: relative !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; isolation: isolate;
  background: var(--fipic-blu-scuro, #003e73) !important; border-radius: 0 0 0px 0px; box-shadow: 0 10px 28px rgba(0, 10, 30, .35); touch-action: pan-y pinch-zoom;
}
.carosello-news .carousel, .carosello-news .sppb-carousel, .carosello-news .carousel-inner, .carosello-news .sppb-carousel-inner, .carosello-news .item, .carosello-news .sppb-item { max-width: 100%; min-width: 0; }
.carosello-news .sppb-carousel-caption, .carosello-news .carousel-caption, .carosello-news .hero-content, .carosello-news .slide-content { max-width: 100%; box-sizing: border-box; }

.carosello-news .hero-scroll-prev, .carosello-news .hero-scroll-next {
  position: absolute !important; top: 44% !important; z-index: 30 !important; display: flex !important; align-items: center !important; justify-content: center !important;
  width: 42px !important; height: 54px !important; min-width: 42px !important; margin: 0 !important; padding: 0 !important; transform: translateY(-50%) !important; color: #fff !important;
  font-size: 25px !important; font-weight: 400 !important; line-height: 1 !important; text-align: center !important; background: rgba(8, 24, 42, .68) !important;
  border: 1px solid rgba(255, 255, 255, .48) !important; border-radius: 9px !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .22) !important; opacity: 0 !important; cursor: pointer !important;
  transition: opacity .2s ease, background-color .2s ease, border-color .2s ease !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.carosello-news .hero-scroll-prev { left: 14px !important; }
.carosello-news .hero-scroll-next { right: 14px !important; }

@media (hover: hover) and (min-width: 768px) {
  .carosello-news:hover .hero-scroll-prev, .carosello-news:hover .hero-scroll-next, .carosello-news:focus-within .hero-scroll-prev, .carosello-news:focus-within .hero-scroll-next { opacity: 1 !important; }
}
.carosello-news .hero-scroll-prev:hover, .carosello-news .hero-scroll-next:hover, .carosello-news .hero-scroll-prev:focus-visible, .carosello-news .hero-scroll-next:focus-visible {
  color: #fff !important; background: rgba(0, 88, 160, .96) !important; border-color: #fff !important; opacity: 1 !important;
}
.carosello-news .hero-scroll-prev:focus-visible, .carosello-news .hero-scroll-next:focus-visible { outline: 3px solid var(--fipic-rosso, #d21d33) !important; outline-offset: 3px !important; }

.carosello-news .sppb-carousel-indicators, .carosello-news .carousel-indicators, .carosello-news .mod-articles-news-indicators, .carosello-news ol.carousel-indicators {
  position: absolute !important; left: 50% !important; right: auto !important; bottom: 22px !important; z-index: 25 !important; display: flex !important; flex-wrap: nowrap !important;
  align-items: center !important; justify-content: center !important; gap: 12px !important; width: max-content !important; max-width: calc(100% - 32px) !important; margin: 0 !important;
  padding: 6px 8px !important; transform: translateX(-50%) !important; list-style: none !important;
}
.carosello-news .carousel-indicators li, .carosello-news .sppb-carousel-indicators li, .carosello-news .carousel-indicators button, .carosello-news .sppb-carousel-indicators button {
  flex: 0 0 12px !important; width: 12px !important; min-width: 12px !important; height: 12px !important; margin: 0 !important; padding: 0 !important; border: 0 !important;
  border-radius: 50% !important; background: rgba(255, 255, 255, .55) !important; cursor: pointer !important; opacity: 1 !important; transition: background-color .2s ease, transform .2s ease !important;
}
.carosello-news .carousel-indicators li.active, .carosello-news .sppb-carousel-indicators li.active, .carosello-news .carousel-indicators button.active, .carosello-news .sppb-carousel-indicators button.active,
.carosello-news .carousel-indicators li[aria-current="true"], .carosello-news .sppb-carousel-indicators li[aria-current="true"] { background: var(--fipic-blu, #0058a0) !important; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35) !important; }
.carosello-news .carousel-indicators li:hover, .carosello-news .sppb-carousel-indicators li:hover, .carosello-news .carousel-indicators button:hover, .carosello-news .sppb-carousel-indicators button:hover { transform: scale(1.12); }

/* ===== PULSANTI HERO ===== */
.sp-page-builder .page-content #section-id-1629296134324 { padding: 4px 0 44px 44px !important; }
#section-id-1629296134324 .sppb-nested-row { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; margin: 0 !important; }
#section-id-1629296134324 .sppb-nested-row > div { flex: 0 0 auto !important; width: auto !important; max-width: none !important; padding: 0 !important; }
#section-id-1629296134324 [id^="sppb-addon-"] { padding: 0 !important; }
#section-id-1629296134324 [id^="sppb-addon-wrapper-"] { margin: 0 !important; }
#section-id-1629296134324 .sppb-btn.sppb-btn-block { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; min-width: 200px; padding: 11px 28px; white-space: nowrap; }

/* ===== SOCIAL SHARE ARTICOLI ===== */
body.view-article #sp-component .article-ratings-social-share { display: flex !important; align-items: center; justify-content: flex-end; min-height: 0 !important; margin: 0 0 16px !important; padding: 6px 12px !important; background: #f4f6f8; border: 0 !important; border-radius: 12px; }
body.view-article #sp-component .article-ratings-social-share::before, body.view-article #sp-component .article-ratings-social-share::after, body.view-article #sp-component .social-share-block::before, body.view-article #sp-component .social-share-block::after { display: none !important; }
body.view-article #sp-component .article-ratings-social-share .social-share-block, body.view-article #sp-component .article-ratings-social-share .article-social-share, body.view-article #sp-component .article-ratings-social-share .social-share-icon { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.view-article #sp-component .social-share-icon ul { display: flex; gap: 6px; margin: 0 !important; padding: 0 !important; list-style: none; }
body.view-article #sp-component .social-share-icon ul li { margin: 0 !important; padding: 0 !important; }
body.view-article #sp-component .social-share-icon ul li a { display: flex !important; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 !important; padding: 0 !important; color: #12365a; background: #fff; border: 1px solid #cfdbe7; border-radius: 8px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
body.view-article #sp-component .social-share-icon ul li a:hover, body.view-article #sp-component .social-share-icon ul li a:focus-visible { color: #0058a0; background: #eef5fb; border-color: #0058a0; }
body.view-article #sp-component .social-share-icon ul li a span, body.view-article #sp-component .social-share-icon ul li a svg { font-size: 14px; width: 14px; height: 14px; line-height: 1; }

/* ===== FOOTER ===== */
#sp-bottom { position: relative; overflow: hidden; padding: 44px 0 26px; background: linear-gradient(180deg, var(--fipic-blu-scuro), #002b52) !important; border-top: 4px solid var(--fipic-rosso); color: #cfe0f0 !important; }
#sp-bottom > .container { position: relative; z-index: 1; }
#sp-bottom::after { content: ""; position: absolute; right: 4%; bottom: -70px; width: 320px; height: 320px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='white' stroke-width='5' stroke-linecap='round'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Cpath d='M100 8v184M8 100h184M26 34c44 34 44 98 0 132M174 34c-44 34-44 98 0 132'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .07; transform: rotate(-14deg); pointer-events: none; z-index: 0; }
#sp-bottom .sp-module .sp-module-title { margin: 0 0 18px; padding-bottom: 12px; font-family: 'Anton', sans-serif; font-size: 1.15rem; letter-spacing: 1px; text-transform: uppercase; color: #fff !important; background: linear-gradient(var(--fipic-rosso), var(--fipic-rosso)) left bottom / 40px 3px no-repeat; }
#sp-bottom .sp-module-content, #sp-bottom .sp-module-content p { font-size: 13.5px; line-height: 1.7; color: #cfe0f0 !important; }
#sp-bottom .mod-menu { margin: 0; padding: 0; list-style: none; }
#sp-bottom .mod-menu li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
#sp-bottom .mod-menu li:last-child { border-bottom: 0; }
#sp-bottom .mod-menu a { display: block; padding: 8px 0 8px 12px; font-size: 13px; line-height: 1.4; color: #dbe9f6 !important; text-decoration: none; border-left: 3px solid transparent; transition: color .2s ease, padding-left .2s ease, border-color .2s ease; }
#sp-bottom .mod-menu a:hover, #sp-bottom .mod-menu a:focus-visible { padding-left: 16px; color: #fff !important; border-left-color: var(--fipic-rosso); outline: 0; }
#sp-bottom .social-icons { display: flex; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
#sp-bottom .social-icons li { margin: 0; }
#sp-bottom .social-icons li a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: #fff !important; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; transition: background .2s ease, border-color .2s ease; }
#sp-bottom .social-icons li a:hover, #sp-bottom .social-icons li a:focus-visible { background: var(--fipic-rosso); border-color: var(--fipic-rosso); }

#sp-footer { padding: 16px 0; background: #002444 !important; border-top: 0; }
#sp-footer .sp-column { text-align: center; }
#sp-footer .sp-copyright, #sp-footer .sp-copyright a { font-size: 12px; letter-spacing: .02em; color: #9fc2e3 !important; }
#sp-footer .container, #sp-footer .container-inner, #sp-footer .row, #sp-footer [class*="col-"], #sp-footer .sp-column, #sp-footer .sp-copyright, #sp-footer .sp-copyright * { background: none !important; background-color: transparent !important; box-shadow: none !important; text-shadow: none !important; }

/* GTranslate */
.gt_float_switcher, .gt_float_switcher .gt-selected, .gt_float_switcher .gt_options, .gt_float_switcher .gt_options a { background: transparent !important; border: none !important; box-shadow: none !important; }
.gt_float_switcher .gt-current-lang, .gt_float_switcher .gt-lang-code, .gt_float_switcher .gt_options a { color: #ffffff !important; }
.gt_float_switcher img { width: 16px !important; height: auto !important; vertical-align: middle; }
#gt_float_wrapper { top: auto !important; bottom: 20px !important; left: 20px !important; }

/* Vari (Home Widget) */
body.com_sppagebuilder.view-page #sp-main-body { padding-top: 0 !important; }
body.com_sppagebuilder.view-page #sp-component .sp-module-content-top, body.com_sppagebuilder.view-page #sp-component .sp-module-content-top .sp-module, body.com_sppagebuilder.view-page #sp-component .sp-module-content-top .sp-module-content, body.com_sppagebuilder.view-page #mod-custom155 { margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }

/* =====================================================
   MEDIA QUERIES (DESKTOP / GRANDI SCHERMI)
   ===================================================== */
@media (min-width: 992px) {
  #sp-header .sp-megamenu-parent { display: flex !important; flex-wrap: nowrap; }
  #sp-header .sp-megamenu-parent > li, #sp-header .header-modules, #sp-header .social-wrap { flex: 0 0 auto; float: none; white-space: nowrap; }
  #sp-header .header-modules { margin-left: 14px; }
  #sp-header .social-icons { flex-wrap: nowrap; }
  
  body.view-article #sp-main-body #sp-component h1 { margin-top: -31px !important; margin-left: -20px !important; margin-right: -20px !important; margin-bottom: 12px !important; }
  body #phoca-dl-category-box .pd-category > .row:not(.pd-row2-bp) > [class*="col-"]:first-child { flex: 1 1 auto !important; width: auto !important; max-width: none !important; min-width: 0 !important; }
  body #phoca-dl-category-box .pd-category > .row:not(.pd-row2-bp) > [class*="col-"]:last-child { flex: 0 0 auto !important; width: auto !important; max-width: none !important; }

  #sp-bottom2 { flex: 0 0 auto; width: 41.6667%; }
  #sp-bottom3:has(.sp-column:empty) { display: none; }
  #sp-bottom4 { flex: 0 0 auto; width: 33.3333%; }

  body.site {
    background-image: linear-gradient(90deg, rgba(0, 26, 52, .35) 0%, rgba(0, 26, 52, .75) 100%), url(/images/assets/bg-fipic.webp) !important;
    background-repeat: no-repeat !important; background-size: cover !important; background-attachment: fixed !important; background-position: 100% 0 !important;
  }
}

@media (min-width: 1400px) {
  #sp-header { --fipic-pad: 10px; }
  #sp-header .sp-megamenu-parent > li > a, #sp-header .sp-megamenu-parent > li > span { font-size: 11.5px; letter-spacing: .03em; }
}

@media (min-width: 1600px) {
  body.site { background-image: linear-gradient(90deg, rgba(0, 26, 52, .45) 0%, rgba(0, 26, 52, .85) 100%), url(/images/assets/bg-fipic.webp) !important; }
}

@media (max-width: 1599.98px) {
  #sp-header .sp-profile-wrapper .user-text { display: none !important; }
}

/* =====================================================
   MEDIA QUERIES (TABLET)
   ===================================================== */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #sp-header { --fipic-pad: 6px; }
  #sp-header .sp-megamenu-parent > li > a, #sp-header .sp-megamenu-parent > li > span { font-size: 10.5px; letter-spacing: 0; }
  #sp-header .social-wrap { display: none; }
  .sp-megamenu-parent .sp-dropdown-mega .sp-dropdown-inner { padding: 18px 16px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #sp-header { min-height: 80px !important; }
  .carosello-news .carousel-caption, .carosello-news .sppb-carousel-caption { left: 6% !important; right: 6% !important; width: 88% !important; }
  .carosello-news .carousel-caption h1, .carosello-news .carousel-caption h2, .carosello-news .sppb-carousel-caption h1, .carosello-news .sppb-carousel-caption h2 { line-height: 1.1 !important; margin-bottom: 18px !important; }
}

@media (max-width: 991.98px) {
  h1.componentheading, .page-header h1, #sp-main-body h1 { font-size: 2rem !important; min-height: 125px !important; padding: 20px 25px !important; }
  body #phoca-dl-category-box .pd-category > .row:not(.pd-row2-bp) { flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 12px !important; padding: 14px 16px !important; }
  body #phoca-dl-category-box .pd-category > .row:not(.pd-row2-bp) > [class*="col-"] { flex: 0 0 auto !important; width: 100% !important; max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
  .com_phocadownload .pd-title { white-space: normal !important; }
  .com_phocadownload .pd-document48 { flex-wrap: wrap !important; }
  .com_phocadownload .pd-document48 .pd-float a { white-space: normal !important; overflow-wrap: anywhere; }
  .com_phocadownload .pd-button-box-bt .btn { display: block; width: 100%; text-align: center; }
  .com-content-category-blog .article { min-height: 380px; }
  .com-content-category-blog .items-leading .article { min-height: 400px; }
  .com-content-category-blog .items-leading .article-header h2 { font-size: 1.8rem; }
  .com-content-category-blog .items-leading .article-body { padding: 26px 24px 28px 30px; }
}

/* =====================================================
   MEDIA QUERIES (MOBILE)
   ===================================================== */
@media (max-width: 767.98px) {
  /* Header & Logo Mobile */
  #sp-header { min-height: 76px !important; height: auto !important; padding: 6px 0 !important; position: relative; z-index: 100 !important; }
  #sp-header .container-inner > .row { min-height: 60px !important; align-items: center !important; justify-content: space-between !important; }
  #sp-header .logo, #sp-header .logo-image, #sp-header .logo-image a { display: flex !important; align-items: center !important; }
  #sp-header .logo-image img { display: block !important; width: auto !important; max-width: 165px !important; max-height: 48px !important; object-fit: contain !important; }

  /* Offcanvas Menu */
  .offcanvas-menu { width: 290px !important; }
  .offcanvas-menu .offcanvas-inner .menu > li > a { display: flex !important; align-items: center !important; justify-content: space-between !important; min-height: 44px !important; padding: 10px 18px !important; font-size: 13px !important; font-weight: 600 !important; }
  .offcanvas-menu .offcanvas-inner .menu-child a { display: flex !important; align-items: center !important; min-height: 42px !important; padding: 8px 16px 8px 30px !important; font-size: 12.5px !important; }

  /* Hero & Slider Mobile */
  .carosello-news { min-height: 560px !important; border-radius: 0 !important; box-shadow: 0 6px 18px rgba(0, 10, 30, .22); }
  .carosello-news .carousel-caption, .carosello-news .sppb-carousel-caption { top: 10% !important; bottom: auto !important; left: 5% !important; right: 5% !important; width: 90% !important; padding: 0 !important; margin: 0 !important; transform: none !important; text-align: left !important; }
  .carosello-news .carousel-caption h1, .carosello-news .carousel-caption h2, .carosello-news .sppb-carousel-caption h1, .carosello-news .sppb-carousel-caption h2 { font-size: clamp(24px, 6.5vw, 34px) !important; line-height: 1.12 !important; margin: 0 0 16px !important; overflow-wrap: break-word !important; hyphens: auto; }
  .carosello-news .carousel-caption p, .carosello-news .sppb-carousel-caption p { font-size: 14.5px !important; line-height: 1.45 !important; margin: 0 0 18px !important; max-width: 100% !important; }
  .carosello-news .carousel-caption .btn, .carosello-news .sppb-carousel-caption .sppb-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-height: 44px !important; margin: 0 8px 10px 0 !important; white-space: normal !important; }
  
  /* Hero UI Mobile */
  .carosello-news .hero-scroll-prev, .carosello-news .hero-scroll-next { width: 32px !important; height: 44px !important; min-width: 32px !important; font-size: 21px !important; border-radius: 7px !important; opacity: .95 !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex !important; }
  .carosello-news .hero-scroll-prev { left: 6px !important; }
  .carosello-news .hero-scroll-next { right: 6px !important; }
  .carosello-news .carousel-indicators, .carosello-news .sppb-carousel-indicators, .carosello-news .mod-articles-news-indicators, .carosello-news ol.carousel-indicators { left: 50% !important; right: auto !important; bottom: 14px !important; width: max-content !important; max-width: 90% !important; transform: translateX(-50%) !important; justify-content: center !important; gap: 8px !important; z-index: 26 !important; }
  .carosello-news .carousel-indicators li, .carosello-news .sppb-carousel-indicators li, .carosello-news .carousel-indicators button, .carosello-news .sppb-carousel-indicators button { flex-basis: 10px !important; width: 10px !important; min-width: 10px !important; height: 10px !important; }

  /* Elementi secondari Mobile */
  .com-content-category-blog .article-intro-image::after { background: linear-gradient(180deg, rgba(0, 20, 40, .15) 0%, rgba(0, 30, 60, .82) 45%, rgba(2, 16, 32, .97) 100%); }
  .featured-article-badge, span.badge-danger, .badge.bg-danger { top: 14px !important; right: 14px !important; }
  .featured-article-badge::before, span.badge-danger::before, .badge.bg-danger::before { font-size: 0.75rem !important; }
  .com-content-category-blog .article-body::after { min-height: 44px; display: inline-flex; align-items: center; }
  #sp-left .mod-menu .menu-child > li > a, .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a, .mod-breadcrumbs .breadcrumb-item a { min-height: 44px; display: flex; align-items: center; }
  #sp-left .mod-menu .menu-child > li > a { padding-top: 12px !important; padding-bottom: 12px !important; }
  #sp-left .mod-menu .menu-child > li.menu-parent > a { padding-bottom: 8px !important; }
  .com_phocadownload .pagination-centered { justify-content: center; padding: 12px; }
  .com_phocadownload .pagination-centered ul.pagination { flex-wrap: wrap; justify-content: center; margin: 4px 0 0; width: 100%; }
  
  /* Footer Mobile */
  #sp-bottom { padding: 32px 0 14px; }
  #sp-bottom .sp-column { margin-bottom: 22px; }
  #sp-bottom::after { right: -40px; bottom: -50px; width: 220px; height: 220px; opacity: .06; }

  /* Countdown (Road to LA 2028) */
  .countdown-box-wrapper { flex-wrap: wrap !important; justify-content: center !important; margin-top: 15px !important; margin-bottom: 20px !important; }
  .box-timer-custom { flex: 0 0 calc(50% - 6px) !important; max-width: calc(50% - 6px) !important; min-width: 110px !important; padding: 12px 8px !important; background: rgba(0, 58, 115, 0.6) !important; border-radius: 8px !important; text-align: center !important; }
  .box-timer-custom span, .box-timer-custom .counter-number { line-height: 1.1 !important; }
  
}

@media (max-width: 575.98px) {
  h1.componentheading, .page-header h1, #sp-main-body h1 { font-size: 1.5rem !important; min-height: 105px !important; padding: 15px 20px !important; }
  .com-content-category-blog .article, .com-content-category-blog .items-leading .article { min-height: 340px; }
  .com-content-category-blog .article-body { padding: 20px 18px 22px 24px; }
  .com-content-category-blog .article-header h2, .com-content-category-blog .items-leading .article-header h2 { font-size: 1.3rem; }
  .com-content-category-blog .article-introtext, .com-content-category-blog .items-leading .article-introtext { -webkit-line-clamp: 3; line-clamp: 3; }
  .com-content-category-blog .com-content-category-blog__navigation { justify-content: center; }
  .sp-page-builder .page-content #section-id-1629296134324 { padding-left: 20px !important; }
  #section-id-1629296134324 .sppb-btn.sppb-btn-block { min-width: 160px; padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 380px) {
  .carosello-news .hero-scroll-prev, .carosello-news .hero-scroll-next { width: 28px !important; min-width: 28px !important; height: 40px !important; font-size: 19px !important; }
  .carosello-news .hero-scroll-prev { left: 5px !important; }
  .carosello-news .hero-scroll-next { right: 5px !important; }
  .carosello-news .sppb-carousel-caption, .carosello-news .carousel-caption, .carosello-news .hero-content, .carosello-news .slide-content { padding-left: 36px !important; padding-right: 36px !important; }
}

/* =====================================================
   ACCESSIBILITA' (PREFERS REDUCED MOTION / CONTRAST)
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .sp-megamenu-parent a, .sp-megamenu-parent a::before,
  .com-content-category-blog .article, .com-content-category-blog .article-intro-image img, .com-content-category-blog .article-body::after, .com-content-category-blog .com-content-blog__link a,
  .carosello-news .hero-scroll-prev, .carosello-news .hero-scroll-next, .carosello-news .carousel-indicators li, .carosello-news .sppb-carousel-indicators li, .carosello-news .carousel-indicators button, .carosello-news .sppb-carousel-indicators button { transition: none !important; }
  .com-content-category-blog .article:hover, .com-content-category-blog .article:hover .article-intro-image img { transform: none; }
}
@media (prefers-contrast: more) {
  .com-content-category-blog .article-introtext, #sp-bottom .sp-module-content, #sp-footer .sp-copyright { color: #fff !important; }
}
/* =====================================================
   FIX DEFINITIVO CAROSELLO HERO (MOBILE)
   ===================================================== */
@media (max-width: 767.98px) {
  /* 1. Altezza del carosello e gestione slide */
  .carosello-news, 
  .carosello-news .sp-module-content,
  .carosello-news ul.mod-articles-items {
    min-height: 560px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .carosello-news ul.mod-articles-items > li {
    position: relative !important;
    min-height: 560px !important;
    height: 100% !important;
  }

  /* 2. Trasforma il contenitore in una colonna Flex */
  .carosello-news .mod-articles-item,
  .carosello-news .mod-articles-item-content {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important; /* Allinea i testi in basso */
    height: 100% !important;
    min-height: 560px !important;
  }

  /* 3. L'immagine diventa lo Sfondo assoluto della slide */
  .carosello-news .mod-articles-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1 !important;
  }
  
  .carosello-news .mod-articles-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Filtro scuro per far leggere bene il testo bianco */
  .carosello-news .mod-articles-image::after {
    content: '';
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(0deg, rgba(0,30,60,0.95) 0%, rgba(0,20,40,0.6) 50%, rgba(0,0,0,0.1) 100%) !important;
    z-index: 2 !important;
  }

  /* 4. Forza il Titolo, Testo e Pulsanti a tornare in ordine nel flusso */
  .carosello-news .mod-articles-title,
  .carosello-news .list-unstyled,
  .carosello-news .mod-articles-item-content p,
  .carosello-news .carosello-buttons {
    position: relative !important;
    z-index: 5 !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Stile Titolo */
  .carosello-news .mod-articles-title {
    margin-top: auto !important; /* Spinge tutto in basso */
    margin-bottom: 15px !important;
  }

  .carosello-news .mod-articles-title a {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.1 !important;
    color: #fff !important;
    text-decoration: none !important;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8) !important;
    display: block !important;
    white-space: normal !important;
  }

  /* Stile Testo */
  .carosello-news .mod-articles-item-content p {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
    color: #eee !important;
    white-space: normal !important;
  }

  /* Nascondi data/categoria se fanno confusione su mobile */
  .carosello-news .list-unstyled {
    display: none !important; 
  }

  /* Stile Pulsanti */
  .carosello-news .carosello-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 45px !important; /* Spazio in basso per eventuali pallini */
  }

  /* Posizionamento frecce laterali */
  .carosello-news .hero-scroll-prev,
  .carosello-news .hero-scroll-next {
    z-index: 10 !important;
    top: 50% !important; /* Riportiamo le frecce al centro verticale */
    transform: translateY(-50%) !important;
  }
}
/* =====================================================
   HERO MOBILE: DATA ALLINEATA AL TESTO + PALLINI SOTTO IL TESTO
   ===================================================== */
@media (max-width: 767.98px) {
  /* La data usa lo stesso margine laterale di titolo e testo */
  .carosello-news .mod-articles-item-content .hero-date {
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Spazio in fondo alla slide: il testo non finisce sotto i pallini */
  .carosello-news .mod-articles-item-content {
    padding-bottom: 48px !important;
  }

  /* Pallini centrati, vicini al bordo inferiore */
  .carosello-news .carosello-dots {
    bottom: 14px !important;
    padding-right: 0 !important;
    justify-content: center !important;
  }
}

/* =====================================================
   UNIFORMAZIONE GRAFICA MENU LATERALE (OFFCANVAS) E FIX SOVRAPPOSIZIONI
   ===================================================== */
@media (max-width: 991.98px) {
  
  /* 1. GTranslate e Livelli (Z-Index) */
  /* Abbassiamo GTranslate e alziamo l'offcanvas per evitare che le bandiere coprano il testo */
  #gt_float_wrapper { z-index: 990 !important; }
  .offcanvas-overlay { z-index: 9998 !important; }
  .offcanvas-menu { z-index: 9999 !important; width: 310px !important; max-width: 85vw !important; }

  /* 2. Voci di Menu Principali (1° Livello) */
  .offcanvas-menu .offcanvas-inner .menu > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: transparent !important;
  }

  /* Stato Attivo / Hover del 1° Livello */
  .offcanvas-menu .offcanvas-inner .menu > li.active > a,
  .offcanvas-menu .offcanvas-inner .menu > li:hover > a,
  .offcanvas-menu .offcanvas-inner .menu > li:focus-within > a {
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: inset 4px 0 0 var(--fipic-rosso, #d21d33) !important;
  }

  /* 3. Voci dei Sottomenu (2° e 3° Livello) */
  .offcanvas-menu .offcanvas-inner .menu-child {
    background: rgba(0, 0, 0, 0.15) !important; /* Sfondo leggermente scuro per differenziarlo */
    margin: 0 !important;
    padding: 0 !important;
  }

  .offcanvas-menu .offcanvas-inner .menu-child > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 20px 12px 35px !important; /* Più indentato a destra */
    color: #dbe9f6 !important;
    font-size: 13.5px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
  }

  /* Stato Attivo / Hover dei Sottomenu */
  .offcanvas-menu .offcanvas-inner .menu-child > li.active > a,
  .offcanvas-menu .offcanvas-inner .menu-child > li:hover > a {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: inset 3px 0 0 var(--fipic-rosso, #d21d33) !important;
  }

  /* Rimuove l'ultimo bordino del sottomenu per pulizia visiva */
  .offcanvas-menu .offcanvas-inner .menu-child > li:last-child > a {
    border-bottom: 0 !important;
  }

  /* 4. Toggler (Frecce di apertura menu) */
  /* Forza il colore bianco/celeste ereditato dal testo, eliminando l'arancione di default */
  .offcanvas-menu .menu-toggler,
  .offcanvas-menu .menu-toggler::after,
  .offcanvas-menu .menu-toggler::before,
  .offcanvas-menu .menu-parent > a::after {
    color: inherit !important;
    border-color: inherit !important;
    opacity: 0.8;
  }
}
/* 1. Elimina TUTTE le frecce pseudo-elemento sui link (genitori e pagine singole) */
#sp-left .mod-menu a::before,
#sp-left .mod-menu a::after,
#sp-left .mod-menu li > a::before,
#sp-left .mod-menu li > a::after,
#sp-left .mod-menu li.menu-parent > a::before,
#sp-left .mod-menu li.menu-parent > a::after,
.offcanvas-menu .menu a::before,
.offcanvas-menu .menu a::after,
.offcanvas-menu .menu li > a::before,
.offcanvas-menu .menu li > a::after,
.offcanvas-menu .menu li.menu-parent > a::before,
.offcanvas-menu .menu li.menu-parent > a::after {
  content: none !important;
  display: none !important;
}

/* 2. Le pagine singole non hanno nessun indicatore */
#sp-left .mod-menu li:not(.menu-parent) > a,
.offcanvas-menu .menu li:not(.menu-parent) > a {
  background-image: none;
  padding-right: 20px;
}


#sp-left .menu-toggler::after,
.offcanvas-menu .menu-toggler::after { color: currentColor !important; }
/* Annulla il blu su tutti i rami "active" */
#sp-left .mod-menu li.active > a,
#sp-left .mod-menu li.active > a:hover {
  background: transparent !important;
  color: #12365a !important;
  box-shadow: none !important;
}

/* Evidenzia solo la pagina corrente */
#sp-left .mod-menu li.current > a {
  background: #eef5fb !important;
  color: #0058a0 !important;
  font-weight: 700 !important;
  box-shadow: inset 3px 0 0 #d21d33 !important;
}
/* Il ramo "active" torna neutro */
#sp-left .sp-module ul.mod-menu > li.active > a {
  background-color: #f8fafc !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
}

/* Blu solo per la pagina in cui sei (current) */
#sp-left .sp-module ul.mod-menu > li.current > a {
  background-color: #0d47a1 !important;
  color: #ffffff !important;
  border-color: #0d47a1 !important;
}
/* Freccia blu nella sidebar */
#sp-left .menu-toggler,
#sp-left .menu-toggler::after {
  color: #0058a0 !important;
  border-color: #0058a0 !important;
}

/* Bianca sulla voce blu piena (pagina corrente) */
#sp-left .sp-module ul.mod-menu > li.current > a .menu-toggler,
#sp-left .sp-module ul.mod-menu > li.current > a .menu-toggler::after {
  color: #ffffff !important;
  border-color: #ffffff !important;
}
/* ===== LINK A / LINK B ARTICOLI → PULSANTI ===== */
body.view-article .article-details .content-links,
body.view-article .article-details ul.content-list,
body.view-article .article-details .com-content-article__links,
body.view-article .item-page ul.content-list {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 35px 0 10px !important;
  padding: 25px 0 0 !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* se il contenitore è un div, i pulsanti stanno nella ul interna */
body.view-article .article-details .content-links ul {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.view-article .article-details .content-links { display: block !important; }

body.view-article .article-details .content-links li,
body.view-article .article-details ul.content-list > li,
body.view-article .article-details .com-content-article__links > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.view-article .article-details .content-links li::marker,
body.view-article .article-details ul.content-list > li::marker { content: none; }

body.view-article .article-details .content-links li a,
body.view-article .article-details ul.content-list > li > a,
body.view-article .article-details .com-content-article__links > li > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px !important;
  color: #fff !important;
  background: #0058a0 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 88, 160, .3);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

body.view-article .article-details .content-links li a:hover,
body.view-article .article-details .content-links li a:focus-visible,
body.view-article .article-details ul.content-list > li > a:hover,
body.view-article .article-details ul.content-list > li > a:focus-visible,
body.view-article .article-details .com-content-article__links > li > a:hover,
body.view-article .article-details .com-content-article__links > li > a:focus-visible {
  background: #d21d33 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(210, 29, 51, .4);
}

/* Mobile: pulsanti a tutta larghezza */
@media (max-width: 767.98px) {
  body.view-article .article-details .content-links ul,
  body.view-article .article-details ul.content-list,
  body.view-article .article-details .com-content-article__links { flex-direction: column !important; gap: 12px !important; }
  body.view-article .article-details .content-links li,
  body.view-article .article-details ul.content-list > li,
  body.view-article .article-details .com-content-article__links > li { width: 100%; }
  body.view-article .article-details .content-links li a,
  body.view-article .article-details ul.content-list > li > a,
  body.view-article .article-details .com-content-article__links > li > a { width: 100%; }
}
@media (max-width: 767.98px) {
  /* Home: elimina il padding laterale dei contenitori sopra l'hero */
  body.com_sppagebuilder.view-page #sp-main-body > .container,
  body.com_sppagebuilder.view-page #sp-main-body .container-inner,
  body.com_sppagebuilder.view-page #sp-main-body .row,
  body.com_sppagebuilder.view-page #sp-main-body #sp-component,
  body.com_sppagebuilder.view-page #sp-component .sp-column,
  body.com_sppagebuilder.view-page #sp-component .sp-module-content-top,
  body.com_sppagebuilder.view-page .sp-page-builder .page-content > section:first-child,
  body.com_sppagebuilder.view-page .sp-page-builder .page-content > section:first-child > .sppb-container-inner,
  body.com_sppagebuilder.view-page .sp-page-builder .page-content > section:first-child .sppb-row,
  body.com_sppagebuilder.view-page .sp-page-builder .page-content > section:first-child .sppb-row > [class*="sppb-col"],
  #sp-slider .container,
  #sp-slider .container-inner,
  #sp-slider .row,
  #sp-slider [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
@media (max-width: 767.98px) {
  .sp-module.carosello-news,
  .carosello-news {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* ==================================================
   CORREZIONI RICHIESTE
   ================================================== */

/* 1. Rimuovi margine sinistro dal container principale su mobile per evitare lo spazio bianco */
@media (max-width: 767.98px) {
  body.com_sppagebuilder.view-page #sp-main-body,
  .sp-page-builder .page-content #section-id-1785077248161 {
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Centra il logo su dispositivi mobili */
  #sp-logo {
    display: flex !important;
    justify-content: center !important;
    flex: 1 1 auto !important;
    max-width: 100% !important;
  }
  
  #sp-header .logo, 
  #sp-header .logo-image, 
  #sp-header .logo-image a {
    justify-content: center !important;
    width: 100% !important;
  }
}

/* 2. Aumenta i testi dei numeri nel countdown "Road to LA 2028" */
.box-timer-custom span, 
.box-timer-custom .counter-number { 
  font-size: 42px !important; /* Aumentato da 32px/26px */
  line-height: 1.1 !important; 
}

@media (max-width: 767.98px) {
  .box-timer-custom span, 
  .box-timer-custom .counter-number { 
    font-size: 36px !important; /* Aumentato per mobile */
  }
}

/* 3. Colore bianco per il font h3 della sezione campionati (Prossimo Turno Serie A) */
#section-id-1791230594612 h3.sp-module-title {
  color: #ffffff !important;
}

/* 4. Sistema il tasto "Vedi calendario completo" (che attualmente ha classe .schedule_link a) */
.mod_djl_schedule tfoot .schedule_link a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #d21d33 !important; /* Rosso FIPIC */
  color: #ffffff !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  margin-top: 15px !important;
  transition: all 0.3s ease !important;
}

.mod_djl_schedule tfoot .schedule_link a:hover {
  background-color: #9e1122 !important; /* Rosso più scuro al passaggio del mouse */
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}

/* Rimuove l'allineamento predefinito della riga tfoot per centrare il pulsante */
.mod_djl_schedule tfoot .schedule_link {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
}
/* Nasconde le freccette di navigazione secondarie in basso a sinistra */
.sppb-carousel-controls,
.sppb-articles-carousel-navigation,
.owl-nav {
    display: none !important;
}

/* Nel caso in cui le frecce grandi blu usino la stessa classe .owl-nav, 
   dobbiamo assicurarci di mantenere visibili SOLO quelle laterali personalizzate.
   Se il codice sopra nasconde entrambe le coppie di frecce, rimuovilo e usa INVECE questo: */

.sppb-addon-articles-carousel .sppb-carousel-controls {
    display: none !important;
}
/* Rimuove le doppie freccette quadrate in basso a sinistra nel carosello */
button.hero-scroll-prev,
button.hero-scroll-next {
    display: none !important;
}
/* ==========================================
   1. RIMUOVERE SPAZIO A SINISTRA (MOBILE)
   ========================================== */
@media (max-width: 767.98px) {
    /* Forza il contenitore a non avere margini/padding sfasati */
    body, .body-innerwrapper, #sp-main-body, .sp-page-builder {
        overflow-x: hidden !important; 
    }
    
    .sppb-section, .sppb-row-container, .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ==========================================
   2. CENTRARE IL LOGO (MOBILE)
   ========================================== */
@media (max-width: 767.98px) {
    #sp-logo, 
    #sp-header .logo {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    #sp-header .logo img, 
    #sp-header .logo-image {
        display: inline-block !important;
        margin: 0 auto !important;
        float: none !important;
    }
}

/* ==========================================
   3. RIMUOVERE LO SPAZIO BIANCO LATERALE (CORRETTO)
   ========================================== */
@media (max-width: 767.98px) {
    /* Blocca lo scroll orizzontale senza spingere il contenuto fuori */
    html, body {
        max-width: 100% !important; /* Meglio di 100vw che causava il taglio */
    }

    /* Annulla i margini negativi di SP Page Builder e ripristina il respiro laterale (padding) */
    .sppb-row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Ridà 15px di spazio a sinistra e a destra al testo per non farlo tagliare */
    .container, .sppb-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}
/* ==========================================
   1. INGRANDIRE I NUMERI DEL COUNTER SU MOBILE
   ========================================== */
@media (max-width: 767.98px) {
    .box-timer-custom span {
        font-size: 42px !important; /* Ingranditi dai piccoli originali */
        line-height: 1.1 !important;
        font-weight: bold !important;
    }
}

/* ==========================================
   2. CENTRARE IL LOGO PERFETTAMENTE SU MOBILE
   ========================================== */
/* Usiamo il posizionamento assoluto per ignorare l'ingombro del menu laterale */
@media (max-width: 767.98px) {
    #sp-header .container-inner > .row {
        position: relative !important;
    }
    
    #sp-logo {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important; 
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }
    
    #sp-header .logo img {
        margin: 0 auto !important;
        display: block !important;
    }
}

/* ==========================================
   3. RIMUOVERE LO SPAZIO BIANCO LATERALE
   ========================================== */
/* Blocca lo sfasamento del layout-boxed di Helix Ultimate su smartphone */
@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden !important; 
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.layout-boxed .body-innerwrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}
/* ==================================================
   FIPIC - STILI ISOLATI DJ LEAGUE (CLASSIFICA)
   Sfondo Header: #041630 | Font: Anton
   ================================================== */

#djleague {
  --djl-blue: #041630;
  --djl-red: #d21d33;
  --djl-ink: #10253f;
  --djl-muted: #5b6b7d;
  --djl-line: #dbe4ee;
}

/* --------------------------------------------------
   PAGINA CLASSIFICA (view "tables")
   -------------------------------------------------- */
#djleague.djl_tables {
  container: djl / inline-size;
}

#djleague.djl_tables table,
#djleague.djl_tables table > thead,
#djleague.djl_tables table > tbody {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  --bs-table-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-bg-state: transparent;
  --djl-pad: 20px;
  --djl-cols: 52px minmax(0, 1fr) repeat(7, 64px);
}

#djleague.djl_tables table tr {
  display: grid;
  grid-template-columns: var(--djl-cols);
  align-items: center;
  column-gap: 12px;
  background: transparent;
}

#djleague.djl_tables table th,
#djleague.djl_tables table td {
  display: block;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  text-align: center;
}

#djleague.djl_tables table .drawn,
#djleague.djl_tables table .drawn_th {
  display: none !important;
}

/* Intestazione Classifica */
#djleague.djl_tables table > thead > tr {
  background: var(--djl-blue) !important;
  border-radius: 10px;
  padding: 10px var(--djl-pad);
  margin-bottom: 8px;
}

#djleague.djl_tables table th {
  font-family: 'Anton', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
}

#djleague.djl_tables table th.team_th {
  text-align: left;
}

#djleague.djl_tables table th .long_title {
  display: none !important;
}

#djleague.djl_tables table th .short_title {
  display: inline !important;
}

/* Righe Squadra (Card) */
#djleague.djl_tables table > tbody {
  counter-reset: djl-pos;
}

#djleague.djl_tables table > tbody > tr {
  counter-increment: djl-pos;
  margin-top: 8px;
  padding: 12px var(--djl-pad);
  background: #fff;
  border: 1px solid var(--djl-line);
  border-left: 4px solid var(--djl-blue);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}

#djleague.djl_tables table > tbody > tr:hover {
  border-left-color: var(--djl-red);
}

#djleague.djl_tables table td.position {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 36px !important;
  height: 36px;
  border-radius: 50%;
  background: #eaf3fb !important;
  color: var(--djl-blue);
  font-family: 'Anton', sans-serif;
  font-size: 0;
}

#djleague.djl_tables table td.position::before {
  content: counter(djl-pos);
  font-size: 1.05rem;
  line-height: 1;
}

#djleague.djl_tables table > tbody > tr:first-child td.position {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-width='3.5' stroke-opacity='.38'%3E%3Ccircle cx='50' cy='50' r='46'/%3E%3Cpath d='M50 4V96M4 50H96'/%3E%3Cpath d='M17 17C35 33 35 67 17 83M83 17C65 33 65 67 83 83'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    linear-gradient(200deg, #fb003c 21%, var(--djl-blue) 100%) !important;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--djl-line) !important;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

#djleague.djl_tables table td.team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  color: var(--djl-ink);
  overflow-wrap: break-word;
}

#djleague.djl_tables table img.team_logo {
  flex: none;
  box-sizing: border-box;
  width: 48px !important;
  height: 48px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 5px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--djl-line);
  box-shadow: 0 2px 8px rgba(4, 22, 48, 0.1);
}

#djleague.djl_tables table td.center:not(.position) {
  font-size: 0.95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--djl-muted);
}

#djleague.djl_tables table td.points {
  justify-self: center;
  min-width: 44px;
  padding: 3px 12px !important;
  border-radius: 999px;
  background: var(--djl-blue) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

/* Responsività Classifica */
@container djl (min-width: 900px) {
  #djleague.djl_tables table th .long_title { display: inline !important; }
  #djleague.djl_tables table th .short_title { display: none !important; }
  #djleague.djl_tables table img.team_logo { width: 52px !important; height: 52px !important; }
}

@container djl (max-width: 899px) {
  #djleague.djl_tables table { --djl-cols: 48px minmax(0, 1fr) repeat(5, 54px); }
  #djleague.djl_tables table .score_for, #djleague.djl_tables table .score_for_th,
  #djleague.djl_tables table .score_against, #djleague.djl_tables table .score_against_th { display: none !important; }
}

@container djl (max-width: 575px) {
  #djleague.djl_tables table { --djl-pad: 14px; --djl-cols: 38px minmax(0, 1fr) 40px 50px; }
  #djleague.djl_tables table tr { column-gap: 8px; }
  #djleague.djl_tables table .won, #djleague.djl_tables table .won_th,
  #djleague.djl_tables table .lost, #djleague.djl_tables table .lost_th,
  #djleague.djl_tables table .score_diff, #djleague.djl_tables table .score_diff_th { display: none !important; }
  #djleague.djl_tables table td.position { width: 32px !important; height: 32px; }
  #djleague.djl_tables table td.position::before { font-size: 0.95rem; }
  #djleague.djl_tables table td.team { gap: 10px; font-size: 0.92rem; }
  #djleague.djl_tables table img.team_logo { width: 40px !important; height: 40px !important; padding: 4px; }
  #djleague.djl_tables table th { font-size: 1rem !important; }
}

@media (prefers-reduced-motion: reduce) {
  #djleague.djl_tables table > tbody > tr { transition: none; }
}

/* Traduzione veloce pulsante Home */
.djl_matches .btn_schedule, 
a.see_schedule, 
.djl_button_schedule {
  font-size: 0 !important;
}
.djl_matches .btn_schedule::before, 
a.see_schedule::before, 
.djl_button_schedule::before {
  content: "CALENDARIO COMPLETO";
  font-size: 0.9rem;
  font-weight: 700;
}

/* ==================================================
   FIX DJ LEAGUE (loghi home + pagina calendario/risultati)
   ================================================== */

/* --------------------------------------------------
   A. HOME - loghi più grandi (modulo calendario)
   -------------------------------------------------- */
.mod_djl_schedule img.team_logo {
  flex: none !important;
  box-sizing: border-box !important;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  max-width: none !important;
  max-height: none !important;
  padding: 8px !important;
  object-fit: contain !important;
}
.mod_djl_schedule td.team_home,
.mod_djl_schedule td.team_away {
  gap: 16px;
}
.mod_djl_schedule .name {
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

/* Modulo stretto (sidebar / mobile): loghi un po' più piccoli,
   ma comunque più grandi di prima */
@container (max-width: 520px) {
  .mod_djl_schedule img.team_logo {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    padding: 6px !important;
  }
  .mod_djl_schedule tr:has(> .team_home) {
    column-gap: 10px;
    padding: 14px 12px 12px;
  }
  .mod_djl_schedule td.team_home,
  .mod_djl_schedule td.team_away {
    gap: 8px;
  }
  .mod_djl_schedule .name {
    font-size: .9rem;
  }
  .mod_djl_schedule .vs_sign {
    width: 40px;
    height: 40px;
    font-size: .9rem;
  }
}

/* --------------------------------------------------
   B. PAGINA CALENDARIO / RISULTATI  (#djleague.djl_schedule)
   Struttura reale: tr > td.time | td.team_home | td.score | td.team_away | td.venue
   + tr.mobile_info (duplicato per mobile: qui nascosto)
   Scheda: [casa | punteggio | ospite] / orario (pillola) / sede
   -------------------------------------------------- */
#djleague.djl_schedule {
  container: djlcal / inline-size;
  --djl-blue: #0058a0;
  --djl-red: #d21d33;
  --djl-ink: #10253f;
  --djl-muted: #5b6b7d;
  --djl-line: #dbe4ee;
}

#djleague.djl_schedule table,
#djleague.djl_schedule tbody {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  background: none;
  --bs-table-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-bg-state: transparent;
  --bs-table-accent-bg: transparent;
}
#djleague.djl_schedule tr {
  display: block;
  background: transparent;
  border: 0;
}
#djleague.djl_schedule td {
  display: block;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
}

/* La riga mobile è un duplicato: time e venue sono già nella riga principale */
#djleague.djl_schedule tr.mobile_info {
  display: none !important;
}
/* Il tema nasconde time/venue su mobile (.hidden-phone): li rimostriamo sempre */
#djleague.djl_schedule td.hidden-phone {
  display: block !important;
}

/* Intestazione giornata */
#djleague.djl_schedule tr[data-group] {
  margin: 30px 0 12px;
}
#djleague.djl_schedule tbody > tr:first-child[data-group] {
  margin-top: 0;
}
#djleague.djl_schedule td.game_day {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anton', sans-serif !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: .04em;
  color: var(--djl-blue) !important;
}
#djleague.djl_schedule td.game_day::before {
  content: "";
  flex: none;
  width: 6px;
  height: 1.4em;
  border-radius: 3px;
  background: var(--djl-red);
}
#djleague.djl_schedule td.game_day::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--djl-blue), transparent);
}

/* Card partita: riga 1 = squadre, riga 2 = orario, riga 3 = sede */
#djleague.djl_schedule tr:has(> td.team_home) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
  margin-top: 12px;
  padding: 16px 20px 14px;
  background: #fff;
  border: 1px solid var(--djl-line);
  border-left: 4px solid var(--djl-blue);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(4, 22, 48, .05);
  transition: border-color .2s ease;
}
#djleague.djl_schedule tr:has(> td.team_home):hover {
  border-left-color: var(--djl-red);
}

#djleague.djl_schedule td.team_home {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-align: right;
}
#djleague.djl_schedule td.score {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  text-align: center;
}
#djleague.djl_schedule td.team_away {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-align: left;
}
#djleague.djl_schedule td.score span.score {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(200deg, #fb003c 21%, var(--djl-blue) 100%);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--djl-line);
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Orario: pillola centrata */
#djleague.djl_schedule td.time {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px 0 0;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}
#djleague.djl_schedule td.time span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--djl-blue) !important;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
#djleague.djl_schedule td.time span::before {
  content: "\f017";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  font-size: .9em;
  color: var(--djl-blue);
}

/* Sede */
#djleague.djl_schedule td.venue {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  margin-top: 4px;
  padding-top: 10px !important;
  border-top: 1px dashed var(--djl-line) !important;
  color: #334155 !important;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
#djleague.djl_schedule td.venue .venue_name {
  color: #1e293b !important;
  font-weight: 700;
}
#djleague.djl_schedule td.venue .icon-location {
  color: var(--djl-red) !important;
  font-size: 1rem;
}
#djleague.djl_schedule td.venue .venue_name:empty,
#djleague.djl_schedule td.venue .sep:empty {
  display: none;
}
#djleague.djl_schedule td.venue .sep {
  margin-left: -2px;
  color: #94a3b8;
}

#djleague.djl_schedule img.team_logo {
  flex: none;
  box-sizing: border-box;
  width: 72px !important;
  height: 72px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 7px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--djl-line);
  box-shadow: 0 2px 8px rgba(0, 88, 160, .1);
}
#djleague.djl_schedule .name {
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--djl-ink);
  overflow-wrap: anywhere;
}

/* Paginazione */
#djleague .djl_pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
#djleague .djl_pagination ul.pagination {
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 !important;
  padding: 0;
}
#djleague .djl_pagination .page-item:not(:first-child) .page-link {
  margin-left: 0;
}
#djleague .djl_pagination .page-link {
  min-width: 36px;
  padding: 6px 10px;
  font-size: 13px;
  text-align: center;
  color: #0058a0;
  background: #fff;
  border: 1px solid #cfdbe7;
  border-radius: 8px !important;
}
#djleague .djl_pagination .page-link:hover,
#djleague .djl_pagination .page-item.active .page-link {
  color: #fff;
  background: #0058a0;
  border-color: #0058a0;
}
#djleague .djl_pagination .page-item.disabled .page-link {
  color: #9db3c8;
  background: #f4f6f8;
}

/* Contenitore stretto (mobile): squadre in colonna, sede su più righe */
@container djlcal (max-width: 600px) {
  #djleague.djl_schedule tr:has(> td.team_home) {
    column-gap: 8px;
    padding: 14px 12px 12px;
  }
  #djleague.djl_schedule td.team_home,
  #djleague.djl_schedule td.team_away {
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    text-align: center;
  }
  #djleague.djl_schedule img.team_logo {
    width: 60px !important;
    height: 60px !important;
    padding: 5px;
  }
  #djleague.djl_schedule .name {
    font-size: .85rem;
  }
  #djleague.djl_schedule td.score span.score {
    min-width: 54px;
    padding: 8px 10px;
    font-size: .95rem;
  }
  #djleague.djl_schedule td.venue {
    flex-direction: column;
    gap: 3px;
    font-size: .9rem;
  }
  #djleague.djl_schedule td.venue .sep {
    display: none;
  }
}


/* ==================================================
   MOBILE / TABLET: MENU LATERALE SOTTO IL CONTENUTO
   (su desktop resta a sinistra, invariato)
   ================================================== */
@media (max-width: 991.98px) {
  #sp-main-body .row:has(> #sp-left) {
    display: flex;
    flex-wrap: wrap;
  }
  #sp-main-body .row > #sp-component { order: 1; }
  #sp-main-body .row > #sp-left      { order: 2; margin-top: 32px; }
  #sp-main-body .row > #sp-right     { order: 3; }

  /* il contenuto principale non deve avere spazio extra sotto */
  #sp-component { margin-bottom: 0; }
}

/* ==================================================
   HOME - RIFINITURE (solo selettori già presenti nel CSS)
   ================================================== */

/* Carosello hero: pallini più comodi da toccare + focus visibile */
.carosello-dots span {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .0);
}
.carosello-dots span:hover {
  background-color: rgba(255, 255, 255, .8) !important;
}
@media (max-width: 767.98px) {
  .carosello-dots {
    justify-content: center !important;
    padding-right: 0 !important;
    bottom: 18px !important;
  }
  .carosello-dots span {
    width: 12px !important;
    height: 12px !important;
  }
}

/* Le storie degli Azzurri: card uniformi (titolo max 2 righe, testo max 3) */
#section-id-1785077248161 h4.mod-articles-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
}
#section-id-1785077248161 .mod-articles-item-content p,
#section-id-1785077248161 .introtext {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
#section-id-1785077248161 .mod-articles-image img {
  transition: transform .6s ease !important;
}
#section-id-1785077248161 ul.mod-articles-grid > li:hover .mod-articles-image img {
  transform: scale(1.06);
}

/* DJ League in home: card che reagisce al passaggio */
.mod_djl_schedule tr:has(> .team_home) {
  transition: border-color .2s ease;
}
.mod_djl_schedule tr:has(> .team_home):hover,
.mod_djl_schedule tr:has(> .team_home):hover + tr {
  border-left-color: var(--djl-red);
}

/* Rispetta chi riduce le animazioni */
@media (prefers-reduced-motion: reduce) {
  .carosello-news ul.mod-articles-items { scroll-behavior: auto; }
  #section-id-1785077248161 ul.mod-articles-grid { scroll-behavior: auto !important; }
  #section-id-1785077248161 .mod-articles-image img,
  #section-id-1785077248161 ul.mod-articles-grid > li:hover .mod-articles-image img {
    transition: none !important;
    transform: none;
  }
}


/* =====================================================
   COUNTER "ROAD TO LA 2028" (desktop + mobile)
   Markup: .countdown-box-wrapper > .box-timer-custom > span#d + label
   ===================================================== */
.countdown-box-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 18px 0 8px !important;
}
.countdown-box-wrapper .box-timer-custom {
  flex: 0 0 auto !important;
  min-width: 84px !important;
  max-width: none !important;
  padding: 14px 12px 12px !important;
  background: linear-gradient(180deg, #0a6bbd, #0058a0) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(0, 20, 40, .25) !important;
  text-align: center !important;
}
.countdown-box-wrapper .box-timer-custom span {
  display: block !important;
  font-family: 'Anton', sans-serif !important;
  font-size: 42px !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  font-variant-numeric: tabular-nums;
  color: #fff !important;
}
.countdown-box-wrapper .box-timer-custom label {
  display: block !important;
  margin: 6px 0 0 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, .8) !important;
}

/* =====================================================
   HOME MOBILE - COUNTER, BORDI E MARGINI SUPERFLUI
   ===================================================== */
@media (max-width: 767.98px) {

  /* --- Counter: 4 box in una riga, numeri leggibili --- */
  .countdown-box-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 14px 0 6px !important;
  }
  .countdown-box-wrapper .box-timer-custom {
    min-width: 0 !important;
    max-width: none !important;
  }

  /* --- Titolo hero: niente banner/bordo/barra rossa, solo testo --- */
  #sp-page-builder h1.sppb-addon-title {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 0 12px !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    font-size: clamp(30px, 9vw, 40px) !important;
    line-height: 1.1 !important;
    letter-spacing: 1px !important;
    text-shadow: none !important;
    color: #fff !important;
  }
  #sp-page-builder h1.sppb-addon-title::before {
    display: none !important;
  }

  /* --- Il page builder: un solo livello di padding laterale (20px) --- */
  #sp-page-builder .sppb-row-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
  #sp-page-builder .sppb-row-column,
  #sp-page-builder .sppb-row > [class*="sppb-col"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* colonne vuote: non occupano spazio */
  #sp-page-builder .sppb-row-column:has(> .sppb-column > .sppb-column-addons:empty) {
    display: none !important;
  }

  /* --- Hero ROAD TO LA 2028 --- */
  #sp-page-builder #section-id-1629272628186 {
    padding: 24px 20px 0 !important;
  }
  #sp-page-builder #sppb-addon-1629274448274 {
    padding: 0 !important;
  }
  #sp-page-builder #sppb-addon-wrapper-1629274448274 {
    margin: 0 0 8px !important;
  }
  #sp-page-builder #section-id-1629296134324 {
    padding: 0 0 24px !important;
  }
  #section-id-1629296134324 .sppb-nested-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  #section-id-1629296134324 .sppb-nested-row > div {
    width: 100% !important;
    max-width: 100% !important;
  }
  #section-id-1629296134324 [id^="sppb-addon-"] {
    padding: 0 !important;
  }
  #section-id-1629296134324 [id^="sppb-addon-wrapper-"] {
    margin: 0 !important;
  }
  #section-id-1629296134324 .sppb-btn.sppb-btn-block {
    width: 100% !important;
    min-width: 0 !important;
  }
  /* immagine: niente margini negativi, centrata e proporzionata */
  #sp-page-builder #sppb-addon-wrapper-1629274504575 {
    margin: 0 !important;
  }
  #sp-page-builder #sppb-addon-1629274504575 img {
    width: min(100%, 280px) !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 294 / 460;
  }

  /* --- Sezioni successive --- */
  #sp-page-builder #section-id-1784475900400 {
    padding: 32px 20px 36px !important;
  }
  #sp-page-builder #section-id-1785077248161 {
    margin: 0 !important;
    padding: 32px 20px 24px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  #sp-page-builder #section-id-1791230594612 {
    padding: 32px 20px !important;
  }
  #sp-page-builder #section-id-1785081836043 {
    padding: 32px 20px 36px !important;
  }
  #sp-page-builder #section-id-1784475900475 {
    margin: 0 !important;
    padding: 28px 20px 0 !important;
  }
  #sppb-addon-1784476427201 .sppb-addon-title {
    margin-bottom: 24px !important;
  }
  #sp-page-builder #section-id-1629284567529 {
    padding: 8px 20px !important;
  }
  #sp-page-builder #section-id-1784901530720 {
    padding: 0 !important;
  }
  #sppb-addon-1784901577156 .sppb-empty-space {
    height: 16px !important;
  }
  #sp-page-builder #section-id-1785082701614 {
    padding: 20px 20px 40px !important;
  }
  #sp-page-builder #sppb-addon-1785082811427 {
    padding: 0 !important;
  }
  #sp-page-builder #sppb-addon-wrapper-1785082811427 {
    margin: 0 !important;
  }

  /* --- Carosello news: a tutta larghezza, senza ombre/bordi --- */
  #sp-main,
  #sp-slider,
  #sp-slider > .container,
  #sp-slider .container-inner,
  #sp-slider .row,
  #sp-slider .sp-column {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .sp-module.carosello-news,
  .carosello-news {
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}


/* =====================================================
   MOBILE: AZZERA OGNI SFASAMENTO LATERALE (striscia a sinistra)
   Dall'analisi dello screenshot: la striscia (~9px) mostra lo sfondo
   del body, quindi i contenitori sopra non partono dal bordo sinistro.
   ===================================================== */
@media (max-width: 767.98px) {
  html,
  body,
  body.site {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    left: 0 !important;
    transform: none !important;
  }
  .body-wrapper,
  .body-innerwrapper,
  body.layout-boxed .body-wrapper,
  body.layout-boxed .body-innerwrapper,
  main#sp-main,
  #sp-main > section,
  #sp-main > section > .container,
  #sp-main > section > .container-fluid,
  #sp-main > section .container-inner,
  #sp-main > section > .row {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* il bordo/ombra del layout "boxed" non serve su mobile */
  body.layout-boxed .body-innerwrapper,
  body.layout-boxed .body-wrapper {
    box-shadow: none !important;
    border: 0 !important;
  }
}

/* =====================================================
   COUNTER MOBILE: i numeri riempiono il box (100%)
   Dimensione in unità del contenitore (cqw): si adatta alla larghezza
   del box a qualsiasi schermo.
   ===================================================== */
@media (max-width: 767.98px) {
  .countdown-box-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  .countdown-box-wrapper .box-timer-custom {
    container-type: inline-size;
    padding: 10px 4px 8px !important;
  }
  .countdown-box-wrapper .box-timer-custom span {
    width: 100% !important;
    font-size: clamp(26px, 56cqw, 60px) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
  }
  .countdown-box-wrapper .box-timer-custom label {
    font-size: clamp(8px, 15cqw, 11px) !important;
    letter-spacing: .05em !important;
    white-space: nowrap !important;
  }
}


/* =====================================================
   FIX STRISCIA A SINISTRA = MENU OFFCANVAS CHIUSO CHE SPORGE
   Il menu laterale (width 310px) è nascosto dal tema con uno
   spostamento pensato per 300px: restano ~10px visibili a sinistra
   (stesso gradiente blu del menu). Mentre è chiuso (attributo
   "inert") lo rendiamo invisibile; quando si apre torna normale.
   ===================================================== */
.offcanvas-menu[inert] {
  visibility: hidden !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

/* =====================================================
   COUNTER MOBILE: forza la griglia 4 colonne
   (lo \3c style> inline della pagina impone display:flex e,
   essendo dopo questo file, vinceva a parità di specificità)
   ===================================================== */
@media (max-width: 767.98px) {
  #sp-page-builder .countdown-box-wrapper {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  #sp-page-builder .countdown-box-wrapper .box-timer-custom {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
  }
}


/* =====================================================
   PHOCA DOWNLOAD - SCHEDA SINGOLO FILE (es. Regolamento di Giustizia)
   Stile coerente con il resto del sito: Anton blu, card con barra,
   pulsante blu -> rosso come i "Link A/B" degli articoli.
   ===================================================== */

/* Pulsante Download (era il verde di default di Bootstrap) */
.com_phocadownload a.btn-success,
.com_phocadownload .btn-success,
.com_phocadownload .pd-button-download a,
.com_phocadownload a.pd-button-download {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px !important;
  color: #fff !important;
  background: #0058a0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 88, 160, .3) !important;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.com_phocadownload a.btn-success:hover,
.com_phocadownload a.btn-success:focus-visible,
.com_phocadownload .btn-success:hover,
.com_phocadownload .pd-button-download a:hover,
.com_phocadownload a.pd-button-download:hover {
  color: #fff !important;
  background: #d21d33 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(210, 29, 51, .4) !important;
}

/* Righe informative (File Size, Date, ...) */
.com_phocadownload .pd-filesize,
.com_phocadownload .pd-filetime,
.com_phocadownload .pd-fileuploaddate,
.com_phocadownload .pd-filedate {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed #dbe4ee;
  color: #5b6b7d;
  font-size: 14px;
}
.com_phocadownload .pd-filesize .pd-fl-m,
.com_phocadownload .pd-filetime .pd-fl-m,
.com_phocadownload .pd-fileuploaddate .pd-fl-m,
.com_phocadownload .pd-filedate .pd-fl-m {
  flex: 0 0 110px;
  color: #10253f;
  font-weight: 700;
}

/* Riga con icona + nome file */
.com_phocadownload .pd-filename .pd-document48,
.com_phocadownload .pd-filename {
  color: #10253f;
}

/* ---- Versione "solo componente" (popup / tmpl=component): niente
   header e sidebar, quindi il banner dei titoli non si applica ---- */
body.com_phocadownload:not(:has(#sp-main-body)) {
  padding: 28px 32px 32px !important;
  background: #fff !important;
  background-image: none !important;
  color: #10253f;
}
body.com_phocadownload:not(:has(#sp-main-body)) h1 {
  position: relative;
  margin: 0 0 26px !important;
  padding: 0 0 14px !important;
  font-family: 'Anton', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 400 !important;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0058a0 !important;
}
body.com_phocadownload:not(:has(#sp-main-body)) h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(200deg, #fb003c 21%, #0058a0 100%);
}
body.com_phocadownload:not(:has(#sp-main-body)) .pd-title,
body.com_phocadownload:not(:has(#sp-main-body)) h2,
body.com_phocadownload:not(:has(#sp-main-body)) h3 {
  margin: 0 0 14px;
  font-family: 'Inter', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0;
  color: #10253f !important;
}


/* =====================================================
   ORARIO E SEDE - HOME (modulo calendario)
   ===================================================== */
.mod_djl_schedule td.time_venue {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding-top: 12px !important;
  margin-top: 8px !important;
  border-top: 1px dashed var(--djl-line) !important;
  text-align: center;
}
.mod_djl_schedule td.time_venue .sep {
  display: none !important;
}
.mod_djl_schedule td.time_venue .time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--djl-blue) !important;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
}
.mod_djl_schedule td.time_venue .venue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #334155 !important;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.mod_djl_schedule td.time_venue .icon-location {
  flex: none;
  color: var(--djl-red) !important;
  font-size: 1rem;
}
.mod_djl_schedule td.time_venue .icon-clock {
  color: var(--djl-blue) !important;
  font-size: .95rem;
}
/* modulo stretto (mobile): sede su una riga propria */
@container (max-width: 520px) {
  .mod_djl_schedule td.time_venue {
    flex-direction: column;
    gap: 6px;
  }
  .mod_djl_schedule td.time_venue .venue {
    flex-basis: 100%;
    font-size: .9rem;
  }
}

/* =====================================================
   PULSANTE "TORNA SU" (.sp-scroll-up)
   ===================================================== */
.sp-scroll-up {
  bottom: 100px !important;
  right: 20px !important;
  z-index: 995 !important;
}
@media (max-width: 767.98px) {
  .sp-scroll-up {
    bottom: 110px !important;
    right: 15px !important;
  }
}

/* =====================================================
   BREADCRUMB (mobile) - allineamento pin / frecce / testi
   Sotto i 340px viene nascosto
   ===================================================== */
@media (max-width: 767.98px) {
  ol.mod-breadcrumbs.breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px 6px !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    line-height: 1 !important;
  }
  /* annulla float-start di Joomla/Bootstrap sui li */
  ol.mod-breadcrumbs > li,
  ol.mod-breadcrumbs > li.float-start,
  ol.mod-breadcrumbs > li.mod-breadcrumbs__divider,
  ol.mod-breadcrumbs > li.breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    float: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1 !important;
  }
  ol.mod-breadcrumbs .mod-breadcrumbs__divider .icon-location,
  ol.mod-breadcrumbs span.divider {
    display: inline-block !important;
    float: none !important;
    position: static !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    color: #d21d33 !important;
  }
  ol.mod-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    display: inline-block !important;
    float: none !important;
    position: static !important;
    transform: none !important;
    content: "›" !important;
    margin: 0 4px 0 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    color: #9db3c8 !important;
    vertical-align: middle !important;
  }
  ol.mod-breadcrumbs .breadcrumb-item a,
  ol.mod-breadcrumbs .breadcrumb-item span {
    display: inline-block !important;
    float: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
  }
}
@media (max-width: 340px) {
  .mod-breadcrumbs__wrapper,
  ol.mod-breadcrumbs,
  .mod-breadcrumbs {
    display: none !important;
  }
}


/* =====================================================
   JEVENTS - CALENDARIO ATTIVITA' REGIONALE (vista lista per categoria)
   Markup: #jevents > #jevents_header + #jevents_body
           .ev_navigation / .jev_catselect / table.ev_table (td.ev_td_left + td.ev_td_right > ul.ev_ul > li.ev_td_li)
   ===================================================== */

/* ---------- HERO (modulo #mod-custom150): stesso linguaggio dei banner del sito ---------- */
#sp-main-body #mod-custom150 > div {
  background: linear-gradient(90deg, rgba(0, 30, 60, .97) 0%, rgba(0, 62, 115, .92) 55%, rgba(0, 88, 160, .88) 100%) !important;
  border: 1px solid rgba(0, 88, 160, .4) !important;
  border-radius: 14px !important;
  padding: 34px 40px !important;
  margin-bottom: 24px !important;
  text-align: left !important;
  box-shadow: inset 7px 0 0 #d21d33, 0 10px 25px rgba(0, 20, 40, .4) !important;
}
#sp-main-body #mod-custom150 span {
  padding: 5px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: .75rem !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  background-color: rgba(255, 255, 255, .12) !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  margin-bottom: 14px !important;
}
/* il titolo NON deve diventare un secondo banner dentro l'hero */
#sp-main-body #mod-custom150 h1 {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 0 10px !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-size: 2.4rem !important;
  line-height: 1.1 !important;
  letter-spacing: 1.2px !important;
  color: #fff !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .5) !important;
}
#sp-main-body #mod-custom150 h1::before {
  display: none !important;
}
#sp-main-body #mod-custom150 p {
  max-width: 680px !important;
  margin: 0 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  opacity: .92 !important;
}
@media (max-width: 767.98px) {
  #sp-main-body #mod-custom150 > div {
    padding: 26px 22px !important;
  }
  #sp-main-body #mod-custom150 h1 {
    font-size: 1.8rem !important;
  }
}
/* ==========================================================================
   1. UNIFORMAZIONE GENERALE & OVERRIDE BRAND FIPIC
   ========================================================================== */
.com-onecore-events-wrapper,
.com-onecore-event {
  font-family: 'Inter', sans-serif;
}

/* Colore dei Titoli Principali (Anton Font Istituzionale) */
.onecore-events-title h2,
.com-onecore-event .one_title {
  font-family: 'Anton', sans-serif !important;
  color: #0058a0 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   2. VISTA LISTA EVENTI (.view-events / #onecore-events-list-view)
   ========================================================================== */
/* Card dell'evento nella lista */
.onecore-event-item {
  border: 1px solid #e2e8f0 !important;
  border-left: 5px solid #0058a0 !important; /* Barra blu istituzionale FIPIC */
  border-radius: 8px !important;
  background-color: #ffffff !important;
  padding: 1.25rem !important;
  transition: all 0.2s ease-in-out !important;
}

.onecore-event-item:hover {
  box-shadow: 0 8px 16px rgba(0, 88, 160, 0.1) !important;
  transform: translateY(-2px);
}

/* Data in vista lista */
.onecore-event-date {
  color: #0d47a1 !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

/* Titolo evento nella lista */
.onecore-event-title h3,
.onecore-event-title a {
  color: #0058a0 !important;
  font-family: 'Anton', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.35rem !important;
  text-decoration: none !important;
}

.onecore-event-title a:hover {
  color: #0284c7 !important;
}

/* Descrizione sintetica nella lista */
.onecore-event-description {
  color: #475569 !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  white-space: pre-line; /* Mantiene gli a capo del testo */
}

/* Badge Categorie */
.onecore-event-categories .badge {
  background-color: #0058a0 !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  border-radius: 50px !important;
}

/* Controlli Filtri e Pulsanti (List / Calendar) */
.onecore-events-view-toggle .btn-outline-primary {
  color: #0058a0 !important;
  border-color: #0058a0 !important;
}

.onecore-events-view-toggle .btn-outline-primary.active,
.onecore-events-view-toggle .btn-outline-primary:hover {
  background-color: #0058a0 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   3. VISTA EVENTO SINGOLO (.view-event / .com-onecore-event)
   ========================================================================== */
/* Box Evidenziato Date & Orari Top */
.onecore-event-highlights {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 5px solid #0058a0 !important;
  border-radius: 8px !important;
}

.onecore-event-highlights .fs-5 {
  font-size: 1.1rem !important;
  color: #0f172a !important;
}

/* Descrizione Principale dell'Evento (Sinistra) */
.item-description.one_description {
  background: #ffffff !important;
  padding: 1.5rem !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 1.5rem !important;
}

.item-description.one_description p strong {
  color: #0058a0 !important;
  font-size: 1.05rem !important;
  display: inline-block;
  margin-top: 0.5rem;
}

.item-description.one_description ul {
  padding-left: 0 !important;
  list-style: none !important;
  margin-bottom: 1rem !important;
}

.item-description.one_description ul li {
  padding: 8px 12px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 0.95rem !important;
  background-color: #f8fafc;
  margin-bottom: 4px;
  border-radius: 4px;
}

/* Modulo "Attend this Event" (Partecipazione) */
.onecore-event-attend .card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  background: #f8fafc !important;
}

.onecore-event-attend .card-title {
  color: #0058a0 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

/* Sidebar Destra (Mappa, Indirizzo e Social) */
.one_item_sidebar_inner {
  background: #ffffff;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.one_item_address_value {
  font-weight: 400;
  color: #334155;
}

/* Pulsanti Condivisione Social */
.onecore-social-share .btn {
  border-radius: 6px !important;
  padding: 6px 14px !important;
}

/* =========================================
   FIPIC - FOTO E TITOLO ARTICOLO FULL WIDTH
   Smartphone, tablet e desktop
   ========================================= */

/* Rimuove i limiti di larghezza del contenitore */
body.com-content.view-article #sp-main-body > .container {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.com-content.view-article #sp-main-body .container-inner,
body.com-content.view-article #sp-main-body .row,
body.com-content.view-article #sp-component,
body.com-content.view-article #sp-component > .sp-column {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
}

/* Articoli con menu laterale (pagine statiche): su desktop il menu resta a sinistra
   e il contenuto occupa le restanti 8 colonne. Gli articoli con foto a tutta
   larghezza (.article-full-image) restano come prima. */
@media (min-width: 992px) {
    body.com-content.view-article #sp-main-body .row:has(> #sp-left):not(:has(.article-full-image)) > #sp-component {
        width: 66.66666667%;
        padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
    }
}

/* Foto a tutta larghezza dello schermo */

/* Titolo quasi a filo dei bordi */

/* Evita che il badge "In evidenza" alteri la foto */

/* Il testo resta leggibile dopo foto e titolo */
body.com-content.view-article .article-details > .article-ratings-social-share,
body.com-content.view-article .article-details > [itemprop="articleBody"] {
    width: auto;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Adattamento smartphone */
@media (max-width: 767px) {
    body.com-content.view-article .article-full-image {
        margin-bottom: 18px !important;
    }

    body.com-content.view-article .article-header {
        margin-bottom: 20px !important;
    }

    body.com-content.view-article .article-header h1 {
        line-height: 1.08;
    }
}

/* FIX TITOLO ARTICOLO DESKTOP E MOBILE */
body.com-content.view-article .article-header {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.com-content.view-article .article-header h1 {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 18px 12px !important;

    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto;

    font-size: clamp(25px, 2.5vw, 42px) !important;
    line-height: 1.12 !important;
}

/* Desktop: titolo su più righe se necessario */
@media (min-width: 768px) {
    body.com-content.view-article .article-header h1 {
        font-size: clamp(28px, 2.5vw, 42px) !important;
        padding: 20px 14px !important;
    }
}

/* Smartphone */
@media (max-width: 767px) {
    body.com-content.view-article .article-header h1 {
        font-size: clamp(24px, 6.2vw, 32px) !important;
        padding: 14px 8px !important;
    }
}

/* FIPIC - CORREZIONE DEFINITIVA TITOLO */
body.com-content.view-article .article-details .article-header {
    position: relative !important;
    float: none !important;
    min-width: 0 !important;
    overflow: visible !important;
}

body.com-content.view-article .article-details .article-header h1,
body.com-content.view-article .article-details .article-header h1[itemprop="headline"] {
    display: block !important;
    position: static !important;
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 18px 12px !important;

    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    text-overflow: clip !important;
    text-indent: 0 !important;
    transform: none !important;

    font-family: 'Anton', sans-serif !important;
    font-size: clamp(26px, 3vw, 42px) !important;
    line-height: 1.12 !important;
}

@media (max-width: 767px) {
    body.com-content.view-article .article-details .article-header h1 {
        font-size: clamp(24px, 6vw, 32px) !important;
        padding: 14px 8px !important;
    }
}
.article-details:has(.atleta-social) .atleta-dati {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 0;
}
.article-details:has(.atleta-social) .atleta-dati li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e3e6eb;
  font-size: 1.1rem;
  line-height: 1.4;
}
.article-details:has(.atleta-social) .atleta-dati li span {
  font-family: 'Anton', sans-serif;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fipic-blu);
  padding-top: 4px;
}
.article-details:has(.atleta-social) .atleta-social {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 24px 0 0;
  font-size: 28px;
  line-height: 1;
}
@media (max-width: 767px) {
  .article-details:has(.atleta-social) .atleta-dati li { grid-template-columns: 1fr; gap: 2px; }
}
.article-details:has(.atleta-social) .article-header {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.article-details:has(.atleta-social) .article-header h1 {
  width: 100%;
  text-align: center;
}
/* ==========================================================================
   FIPIC – CSS COMPLETO (profili atleta + carosello "Le storie degli Azzurri")
   Joomla / Helix Ultimate · incolla tutto in:
   /templates/shaper_helixultimate/css/custom.css
   (rimuovi prima i blocchi precedenti dei profili e del carosello)

   PARTE 1 – Pagina profilo atleta (articoli che contengono .atleta-social)
   PARTE 2 – Carosello #section-id-1785077248161
   Nota: la card del titolo (rete da basket + barra rossa a sinistra) resta
   quella già presente nel CSS del sito sul h1: qui non viene ridisegnata.
   ========================================================================== */


/* ==========================================================================
   PARTE 1 – PROFILO ATLETA
   ========================================================================== */

:root {
  --pf-red: #d4202c;
  --pf-red-hot: #ff3b47;
  --pf-blue: #0058a0;
  --pf-glow: #ffb15c;            /* colore delle etichette dati: cambialo in rosso se vuoi */
  --pf-wood-1: #c98a45;
  --pf-wood-2: #b87a38;
  --pf-wood-3: #d79b57;
}

/* ---------- Palco: nero, griglia a colonna unica ---------- */
body #sp-component .article-details.article-details:has(.atleta-social) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  container-type: inline-size;
  padding: 36px 36px 360px;
  background: #050608;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  /* altezza (da inizio palco) a cui sta la maglia: sotto titolo e social */
  --pf-top-video: calc(36px + 266px);
}
body #sp-component .article-details.article-details:has(.atleta-social) > * {
  position: relative;
  z-index: 1;
  grid-column: 1;
}

/* ---------- Pavimento: parquet a doghe sfalsate + campo FIBA ---------- */
body #sp-component .article-details.article-details:has(.atleta-social)::before {
  content: "";
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 1000px;
  z-index: 0;
  pointer-events: none;
  transform: perspective(1000px) rotateX(50deg);
  transform-origin: 50% 100%;
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1500'><g transform='translate(0 1500) scale(1 -1)' fill='none' stroke='white' stroke-width='9' stroke-linejoin='round'><path d='M0 0H1600V1500H0Z M50 50H1550V1450H50Z' fill='black' fill-opacity='.22' fill-rule='evenodd' stroke='none'/><rect x='555' y='50' width='490' height='580' fill='rgb(0,88,160)' fill-opacity='.82'/><rect x='50' y='50' width='1500' height='1400'/><path d='M50 1450H1550' /><circle cx='800' cy='1450' r='180'/><path d='M620 630A180 180 0 0 0 980 630'/><path d='M620 630A180 180 0 0 1 980 630' stroke-dasharray='28 22'/><path d='M675 50V207.5A125 125 0 0 0 925 207.5V50'/><path d='M140 50V349A675 675 0 0 0 1460 349V50'/><path d='M710 170H890' stroke-width='16'/><path d='M800 170V186' stroke-width='6'/><circle cx='800' cy='207.5' r='22' stroke='rgb(255,120,30)' stroke-width='7'/></g></svg>") 50% 100% / auto 100% no-repeat,
    linear-gradient(to top, rgba(255,255,255,.14), transparent 50%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 1px, transparent 1px 9px),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='720' viewBox='0 0 320 720'><rect x='0' y='0' width='40' height='60' fill='%23c58a48'/><rect x='0' y='60' width='40' height='360' fill='%23c08040'/><rect x='0' y='420' width='40' height='300' fill='%23c58a48'/><rect x='0' y='60' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='0' y='420' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='0' y='0' width='1.5' height='720' fill='black' fill-opacity='.28'/><rect x='40' y='0' width='40' height='150' fill='%23b9783a'/><rect x='40' y='150' width='40' height='360' fill='%23cc9150'/><rect x='40' y='510' width='40' height='210' fill='%23b9783a'/><rect x='40' y='150' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='40' y='510' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='40' y='0' width='1.5' height='720' fill='black' fill-opacity='.28'/><rect x='80' y='0' width='40' height='240' fill='%23d29a58'/><rect x='80' y='240' width='40' height='360' fill='%23b67638'/><rect x='80' y='600' width='40' height='120' fill='%23d29a58'/><rect x='80' y='240' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='80' y='600' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='80' y='0' width='1.5' height='720' fill='black' fill-opacity='.28'/><rect x='120' y='0' width='40' height='330' fill='%23c08040'/><rect x='120' y='330' width='40' height='360' fill='%23d4a060'/><rect x='120' y='690' width='40' height='30' fill='%23c08040'/><rect x='120' y='330' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='120' y='690' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='120' y='0' width='1.5' height='720' fill='black' fill-opacity='.28'/><rect x='160' y='0' width='40' height='110' fill='%23cc9150'/><rect x='160' y='110' width='40' height='360' fill='%23be7e44'/><rect x='160' y='470' width='40' height='250' fill='%23cc9150'/><rect x='160' y='110' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='160' y='470' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='160' y='0' width='1.5' height='720' fill='black' fill-opacity='.28'/><rect x='200' y='0' width='40' height='200' fill='%23b67638'/><rect x='200' y='200' width='40' height='360' fill='%23c58a48'/><rect x='200' y='560' width='40' height='160' fill='%23b67638'/><rect x='200' y='200' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='200' y='560' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='200' y='0' width='1.5' height='720' fill='black' fill-opacity='.28'/><rect x='240' y='0' width='40' height='290' fill='%23d4a060'/><rect x='240' y='290' width='40' height='360' fill='%23b9783a'/><rect x='240' y='650' width='40' height='70' fill='%23d4a060'/><rect x='240' y='290' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='240' y='650' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='240' y='0' width='1.5' height='720' fill='black' fill-opacity='.28'/><rect x='280' y='0' width='40' height='20' fill='%23be7e44'/><rect x='280' y='20' width='40' height='360' fill='%23d29a58'/><rect x='280' y='380' width='40' height='340' fill='%23be7e44'/><rect x='280' y='20' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='280' y='380' width='40' height='2' fill='black' fill-opacity='.4'/><rect x='280' y='0' width='1.5' height='720' fill='black' fill-opacity='.28'/></svg>") 0 0 / 160px 360px repeat;
  -webkit-mask-image: linear-gradient(to top, #000 58%, transparent 98%);
          mask-image: linear-gradient(to top, #000 58%, transparent 98%);
}

/* ---------- Luci: riflettori, pozze di luce, vignettatura ---------- */
body #sp-component .article-details.article-details:has(.atleta-social)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, #050608 0%, transparent 16%, transparent 84%, #050608 100%),
    radial-gradient(ellipse 330px 95px at 17% calc(100% - 175px), rgba(255,236,205,.30), transparent 72%),
    radial-gradient(ellipse 380px 110px at 50% calc(100% - 150px), rgba(255,240,215,.36), transparent 72%),
    radial-gradient(ellipse 330px 95px at 83% calc(100% - 175px), rgba(255,236,205,.30), transparent 72%),
    conic-gradient(from 172deg at 14% -4%, transparent 0deg, rgba(255,255,255,.20) 12deg, transparent 24deg),
    conic-gradient(from 168deg at 50% -4%, transparent 0deg, rgba(255,244,225,.24) 12deg, transparent 24deg),
    conic-gradient(from 164deg at 86% -4%, transparent 0deg, rgba(255,255,255,.20) 12deg, transparent 24deg);
  animation: pf-flicker 7s ease-in-out infinite;
}
@keyframes pf-flicker {
  0%, 100% { opacity: 1; }
  50%      { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  body #sp-component .article-details.article-details:has(.atleta-social)::after { animation: none; }
}

/* ---------- Video: tabellone segnapunti, in fondo a tutto ----------
   Pannello scuro con viti, testata a LED rossi (testo modificabile in ::before),
   schermo con scanlines e tre lampade in basso. */
body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video {
  box-sizing: border-box;
  order: 99;                                  /* in fondo, dopo dati e social */
  width: auto !important;
  max-width: none !important;
  margin: 64px 0 56px !important;             /* spazio per le staffe di sospensione */
  padding: 62px 20px 52px;                    /* testata sopra, lampade sotto */
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  translate: none !important;
  overflow: visible;
  border: 5px solid #232834;
  border-radius: 14px;
  background:
    /* viti agli angoli */
    radial-gradient(circle at 14px 14px, #9aa3b5 0 2.5px, #2b303c 3.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) 14px, #9aa3b5 0 2.5px, #2b303c 3.5px, transparent 5px),
    radial-gradient(circle at 14px calc(100% - 14px), #9aa3b5 0 2.5px, #2b303c 3.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), #9aa3b5 0 2.5px, #2b303c 3.5px, transparent 5px),
    /* lampade in basso: rossa - bianca - rossa */
    radial-gradient(circle at 42% calc(100% - 26px), #ff3b47 0 5px, rgba(255,59,71,.35) 6px, transparent 15px),
    radial-gradient(circle at 50% calc(100% - 26px), #ffffff 0 5px, rgba(255,255,255,.30) 6px, transparent 15px),
    radial-gradient(circle at 58% calc(100% - 26px), #ff3b47 0 5px, rgba(255,59,71,.35) 6px, transparent 15px),
    /* filo rosso sotto la testata */
    linear-gradient(#ff3b47, #ff3b47) 0 61px / 100% 2px no-repeat,
    /* corpo del pannello */
    linear-gradient(180deg, #161a24, #0a0c11) 0 62px / 100% calc(100% - 62px) no-repeat,
    /* testata a matrice di punti */
    radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.7px) 0 0 / 7px 7px,
    #07080b;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.06),
    0 26px 60px rgba(0,0,0,.75),
    0 0 40px rgba(212,32,44,.22);
}

/* testata LED: ITALIA · VIDEO · FIPIC (cambia il testo qui sotto) */
body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video::before {
  content: "ITALIA VIDEO FIPIC";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62px;
  box-sizing: border-box;
  padding: 0 30px;
  line-height: 62px;
  text-align: justify;
  text-align-last: justify;
  font-family: 'Anton', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .22em;
  color: #ff3b47;
  text-shadow: 0 0 6px #ff3b47, 0 0 18px rgba(255,59,71,.7);
  pointer-events: none;
}

/* staffe di sospensione sopra il pannello */
body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video::after {
  content: "";
  position: absolute;
  top: -27px;
  left: 0;
  right: 0;
  height: 22px;
  pointer-events: none;
  background:
    linear-gradient(#4a5060, #2a2e39) 14% 0 / 14px 100% no-repeat,
    linear-gradient(#4a5060, #2a2e39) 86% 0 / 14px 100% no-repeat;
}

/* schermo: cornice nera, scanlines e vignettatura (i clic passano al video) */
body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video .ratio {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  background: #000;
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 0 0 0 2px #2d3340, 0 0 24px rgba(255,59,71,.25);
}
body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video .ratio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.10) 2px 3px),
    radial-gradient(ellipse at center, transparent 62%, rgba(0,0,0,.35) 100%);
}
body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video iframe { border: 0; }

@media (max-width: 767px) {
  body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video {
    margin: 48px 0 40px !important;
    padding: 46px 10px 40px;
    border-width: 4px;
    background:
      radial-gradient(circle at 10px 10px, #9aa3b5 0 2px, #2b303c 3px, transparent 4px),
      radial-gradient(circle at calc(100% - 10px) 10px, #9aa3b5 0 2px, #2b303c 3px, transparent 4px),
      radial-gradient(circle at 10px calc(100% - 10px), #9aa3b5 0 2px, #2b303c 3px, transparent 4px),
      radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), #9aa3b5 0 2px, #2b303c 3px, transparent 4px),
      radial-gradient(circle at 42% calc(100% - 20px), #ff3b47 0 4px, rgba(255,59,71,.35) 5px, transparent 12px),
      radial-gradient(circle at 50% calc(100% - 20px), #ffffff 0 4px, rgba(255,255,255,.30) 5px, transparent 12px),
      radial-gradient(circle at 58% calc(100% - 20px), #ff3b47 0 4px, rgba(255,59,71,.35) 5px, transparent 12px),
      linear-gradient(#ff3b47, #ff3b47) 0 45px / 100% 2px no-repeat,
      linear-gradient(180deg, #161a24, #0a0c11) 0 46px / 100% calc(100% - 46px) no-repeat,
      radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.7px) 0 0 / 6px 6px,
      #07080b;
  }
  body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video::before { height: 46px; line-height: 46px; padding: 0 18px; font-size: 1rem; letter-spacing: .14em; }
  body #sp-component .article-details.article-details:has(.atleta-social) .article-featured-video .ratio { border-width: 2px; }
}

/* ---------- Titolo: contenitore trasparente, card = h1 (stile del sito) ---------- */
body #sp-component .article-details.article-details:has(.atleta-social) .article-header {
  z-index: 2;
  box-sizing: border-box;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  margin: -1px 0 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  translate: none !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body #sp-component .article-details.article-details:has(.atleta-social) .article-header::before,
body #sp-component .article-details.article-details:has(.atleta-social) .article-header::after { display: none !important; }

body #sp-component .article-details.article-details:has(.atleta-social) .article-header h1 {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 46px 40px 50px !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  translate: none !important;
  text-align: center !important;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .6);
}
body #sp-component .article-details.article-details:has(.atleta-social) .article-header h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 16px auto 0 !important;
  background: var(--pf-red);
  border-radius: 2px;
}

/* ---------- Fascia condivisione: trasparente, solo icone ---------- */
body #sp-component .article-details.article-details:has(.atleta-social) .article-ratings-social-share {
  box-sizing: border-box;
  width: auto !important;
  max-width: none !important;
  margin: 20px 0 14px !important;
  padding: 0 !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  translate: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}
body #sp-component .article-details.article-details:has(.atleta-social) .article-social-share ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body #sp-component .article-details.article-details:has(.atleta-social) .article-social-share a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(8, 10, 16, .55) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 8px;
  transition: background .2s, transform .2s, border-color .2s;
}
body #sp-component .article-details.article-details:has(.atleta-social) .article-social-share a:hover,
body #sp-component .article-details.article-details:has(.atleta-social) .article-social-share a:focus-visible {
  background: var(--pf-red) !important;
  border-color: var(--pf-red) !important;
  transform: translateY(-2px);
}

/* ---------- Foto profilo (pagine senza video): centrata, scura, colori vividi ---------- */
body #sp-component .article-details.article-details:has(.atleta-social) :is(div, figure, p, a):has(> img) {
  position: relative !important;
  display: block !important;
  float: none !important;
  width: min(100%, 640px) !important;
  max-width: 100% !important;
  margin: 8px auto 22px !important;
  padding: 0 !important;
  text-align: center;
  background: none !important;
}
body #sp-component .article-details.article-details:has(.atleta-social) img {
  display: block;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: brightness(.92) contrast(1.18) saturate(1.45);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-composite: intersect;
}

/* ---------- Scheda dati: tessere in vetro, tutto centrato ---------- */
body #sp-component .article-details.article-details:has(.atleta-social) [itemprop="articleBody"] {
  position: static !important;      /* così la maglia si posiziona rispetto al palco */
  z-index: auto !important;
  padding: 0;
}
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati {
  position: static;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  min-height: 110px;
  padding: 20px 24px;
  text-align: center !important;
  background: rgba(8, 10, 16, .62);
  border: 1px solid rgba(255,255,255,.12);
  border-top: 3px solid var(--pf-red);
  border-radius: 12px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li:hover {
  transform: translateY(-4px);
  border-top-color: var(--pf-glow);
  box-shadow: 0 16px 36px rgba(0,0,0,.55), 0 0 28px rgba(255,177,92,.2);
}
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li span {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center !important;
  color: var(--pf-glow) !important;
}
/* "Presenze in azzurro" prende tutta la riga */
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li:nth-child(4) { grid-column: 1 / -1; }

/* ---------- Maglia: numero gigante bianco con bordo rosso, sotto i social ---------- */
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li:nth-child(5) {
  position: absolute !important;
  top: var(--pf-top-video);
  right: 48px;
  z-index: 6;
  display: flex !important;
  flex-direction: column;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 2px;
  width: auto;
  min-height: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
  transform: none !important;
  pointer-events: none;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: .85;
  text-align: right !important;
  color: #fff;
  -webkit-text-stroke: 5px var(--pf-red);
  paint-order: stroke fill;
  text-shadow: 0 8px 20px rgba(0, 0, 0, .65);
}
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li:nth-child(5) span {
  -webkit-text-stroke: 0;
  text-shadow: none;
  text-align: right !important;
  color: var(--pf-red-hot) !important;
}
/* pagine senza video: numero in alto a destra sul palco */
body #sp-component .article-details.article-details:has(.atleta-social):not(:has(.article-featured-video)) .atleta-dati li:nth-child(5) { top: 28px; }

/* ---------- Social atleta ---------- */
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-social {
  position: relative;
  z-index: 1;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px 0 0;
  font-size: 22px;
  line-height: 1;
}
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-social a {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: rgba(8, 10, 16, .62);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: background .2s, transform .2s, border-color .2s;
}
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-social a:hover,
body #sp-component .article-details.article-details:has(.atleta-social) .atleta-social a:focus-visible {
  background: var(--pf-red);
  border-color: var(--pf-red);
  transform: scale(1.1);
}

/* ---------- Responsive profilo ---------- */
@media (max-width: 991px) {
  body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  body #sp-component .article-details.article-details:has(.atleta-social) {
    padding: 16px 14px 230px;
    --pf-top-video: calc(16px + 239px);
  }
  body #sp-component .article-details.article-details:has(.atleta-social)::before { height: 640px; }
  body #sp-component .article-details.article-details:has(.atleta-social) .article-header h1 { padding: 30px 20px 32px !important; }
  body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati { grid-template-columns: 1fr; gap: 12px; }
  body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li { min-height: 0; font-size: 1.2rem; }
  body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li:nth-child(4) { grid-column: auto; }
  body #sp-component .article-details.article-details:has(.atleta-social) .atleta-dati li:nth-child(5) {
    top: var(--pf-top-video);
    right: 22px;
    font-size: 4.2rem;
    -webkit-text-stroke-width: 4px;
  }
}


/* ==========================================================================
   PARTE 2 – CAROSELLO "LE STORIE DEGLI AZZURRI"
   ========================================================================== */

/* ==========================================================
   FIPIC – Carosello "Le storie degli Azzurri" (v2)
   Sezione scura con riflettori. Le foto si fondono con la card
   (mix-blend-mode) e con lo sfondo. Solo rosso/bianco, niente arancione.
   SOSTITUISCE la versione precedente in custom.css.
   ========================================================== */

#section-id-1785077248161 {
  --az-red: #d4202c;
  --az-red-hot: #ff3b47;
  --az-bg: #050608;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--az-bg);
  padding-top: 56px;
  padding-bottom: 72px;
  /* elimina la banda bianca a sinistra */
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
}
#section-id-1785077248161 > :not(.sppb-row-overlay) {
  position: relative;
  z-index: 1;
}

/* Riflettori dall'alto */
#section-id-1785077248161::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    conic-gradient(from 170deg at 18% -6%, transparent 0deg, rgba(255,255,255,.20) 12deg, transparent 24deg),
    conic-gradient(from 168deg at 50% -6%, transparent 0deg, rgba(255,255,255,.24) 12deg, transparent 24deg),
    conic-gradient(from 166deg at 82% -6%, transparent 0deg, rgba(255,255,255,.20) 12deg, transparent 24deg),
    radial-gradient(ellipse 60% 30% at 50% 0%, rgba(255,255,255,.13), transparent 70%);
  filter: blur(6px);
  animation: az-flicker 7s ease-in-out infinite;
}
/* Pavimento scuro con riflesso rosso, a tinta col sito (niente arancione) */
#section-id-1785077248161::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 170px;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 2px, transparent 2px 64px),
    linear-gradient(to top, rgba(212,32,44,.30), rgba(212,32,44,.08) 55%, transparent);
}
@keyframes az-flicker { 0%,100% { opacity: 1; } 50% { opacity: .82; } }
@media (prefers-reduced-motion: reduce) {
  #section-id-1785077248161::before { animation: none; }
}

/* ---------- Titolo e sottotitolo ---------- */
#section-id-1785077248161 :is(h1, h2, h3, h4):not(li *) {
  color: #fff !important;
  text-shadow: 0 3px 10px rgba(0,0,0,.6);
}
#section-id-1785077248161 :is(h1, h2, h3, h4):not(li *)::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 14px;
  background: var(--az-red);
  border-radius: 2px;
}
#section-id-1785077248161 :is(p, small, span, div):not(li *):not(.slider-arrow-btn) {
  color: rgba(255,255,255,.80);
}
#section-id-1785077248161 :is(p, small):not(li *) { color: rgba(255,255,255,.80) !important; }

/* ---------- Binario ---------- */
#section-id-1785077248161 .sppb-addon-module ul {
  padding-top: 20px !important;
  padding-bottom: 30px !important;
  scroll-snap-type: x mandatory;
}

/* ---------- CARD: alta, foto che riempie tutto ---------- */
#section-id-1785077248161 .sppb-addon-module ul > li {
  position: relative;
  isolation: isolate;               /* il blend della foto avviene sullo sfondo della card */
  overflow: hidden;
  height: 560px !important;
  scroll-snap-align: start;
  /* sfondo della card = stesso nero del sito + luce di riflettore dietro la testa */
  background:
    radial-gradient(ellipse 75% 45% at 50% 14%, rgba(255,255,255,.30), transparent 70%),
    radial-gradient(ellipse 90% 40% at 50% 108%, rgba(212,32,44,.40), transparent 70%),
    var(--az-bg) !important;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.65);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* i contenitori interni non devono limitare né colorare la foto */
#section-id-1785077248161 .sppb-addon-module ul > li :is(div, a, figure, picture, span):not(.slider-arrow-btn) {
  position: static !important;
  background: transparent !important;
  height: auto !important;
  max-height: none !important;
}

/* Foto: riempie la card; il nero della foto si fonde con lo sfondo della card */
#section-id-1785077248161 .sppb-addon-module ul > li img {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: 50% 6%;
  mix-blend-mode: lighten;
  filter: saturate(1.08) contrast(1.06);
  transition: transform .6s ease, filter .35s ease;
}
/* sfumatura in basso: la foto si perde nel nero del sito e il nome si legge */
#section-id-1785077248161 .sppb-addon-module ul > li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 52%, rgba(5,6,8,.82) 82%, var(--az-bg) 100%);
}
/* fascio di luce al passaggio del mouse */
#section-id-1785077248161 .sppb-addon-module ul > li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(212, 32, 44,.30), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
}
#section-id-1785077248161 .sppb-addon-module ul > li:hover,
#section-id-1785077248161 .sppb-addon-module ul > li:focus-within {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 26px 54px rgba(0,0,0,.75), 0 0 40px rgba(212,32,44,.40);
}
#section-id-1785077248161 .sppb-addon-module ul > li:hover::before,
#section-id-1785077248161 .sppb-addon-module ul > li:focus-within::before { opacity: 1; }
#section-id-1785077248161 .sppb-addon-module ul > li:hover img {
  transform: scale(1.06);
  filter: saturate(1.18) contrast(1.1);
}

/* ---------- Nome: in basso sulla foto, bianco con filetto rosso ---------- */
#section-id-1785077248161 .sppb-addon-module ul > li :is(h1, h2, h3, h4, h5, .newsflash-title) {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0 !important;
  padding: 0 26px 28px !important;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.9);
}
#section-id-1785077248161 .sppb-addon-module ul > li :is(h1, h2, h3, h4, h5, .newsflash-title) a {
  color: #fff !important;
  text-decoration: none;
}
#section-id-1785077248161 .sppb-addon-module ul > li :is(h1, h2, h3, h4, h5, .newsflash-title)::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-top: 12px;
  background: var(--az-red);
  border-radius: 2px;
  transition: width .35s ease, background .35s ease;
}
#section-id-1785077248161 .sppb-addon-module ul > li:hover :is(h1, h2, h3, h4, h5, .newsflash-title)::after {
  width: 96px;
  background: var(--az-red-hot);
}

/* ---------- Categoria e data: non servono nelle card (solo foto + nome) ---------- */
#section-id-1785077248161 .sppb-addon-module ul > li :is(.hero-category-badge, .hero-date) {
  display: none !important;
}

/* ---------- Frecce ---------- */
#section-id-1785077248161 .slider-arrow-btn {
  background: rgba(8,10,16,.75) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: background .2s, transform .2s, border-color .2s;
}
#section-id-1785077248161 .slider-arrow-btn:hover,
#section-id-1785077248161 .slider-arrow-btn:focus-visible {
  background: var(--az-red) !important;
  border-color: var(--az-red) !important;
  transform: scale(1.1);
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  #section-id-1785077248161 { padding-top: 36px; padding-bottom: 48px; }
  #section-id-1785077248161 .sppb-addon-module ul > li { height: 460px !important; }
  #section-id-1785077248161 .sppb-addon-module ul > li :is(h1, h2, h3, h4, h5, .newsflash-title) {
    font-size: 1.35rem;
    padding: 0 20px 22px !important;
  }
}


/* Lascia crescere i contenitori fino all'altezza delle card (il link/nome non si taglia) */
#section-id-1785077248161,
#section-id-1785077248161 :is(.sppb-container-inner, .sppb-row-container, .sppb-row, [class*="sppb-col"], .sppb-column-addons, .sppb-addon-wrapper, .sppb-addon, .sppb-addon-module),
#section-id-1785077248161 .sppb-addon-module ul {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
/* ===== Loghi tondi Serie A: tutti visibili / scroller continuo ===== */
#mod-sp-simpleportfolio{ --s:120px; --gap:16px; position:relative; padding:0 !important; }

#mod-sp-simpleportfolio .sp-simpleportfolio-items{
  display:block !important; overflow:hidden;
  margin:0 !important; padding:14px 0 !important; height:auto !important;
}
#mod-sp-simpleportfolio .sp-simpleportfolio-items.fp-marquee-on{
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 40px,#000 calc(100% - 40px),transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 40px,#000 calc(100% - 40px),transparent 100%);
}

.fp-track{ display:flex; flex-wrap:nowrap; gap:var(--gap); width:max-content; margin:0 auto; }
.fp-track.is-marquee{
  margin:0; will-change:transform;
  animation:fp-scroll var(--dur,30s) linear infinite;
}
#mod-sp-simpleportfolio:hover .fp-track.is-marquee{ animation-play-state:paused; }
@keyframes fp-scroll{ to{ transform:translateX(calc(-1 * var(--dist))); } }

/* singolo logo */
#mod-sp-simpleportfolio .sp-simpleportfolio-item{
  flex:0 0 auto !important; width:var(--s) !important; max-width:none !important;
  float:none !important; position:static !important; margin:0 !important; padding:0 !important;
  cursor:pointer;
  opacity:0; transform:translateY(10px) scale(.94);
  transition:opacity .6s ease, transform .6s ease;
}
#mod-sp-simpleportfolio.fp-ready .sp-simpleportfolio-item{
  opacity:1; transform:none; transition-delay:calc(var(--i,0) * 80ms);
}

/* tondo "vetro" */
#mod-sp-simpleportfolio .sp-simpleportfolio-overlay-wrapper{
  width:var(--s); height:var(--s); border-radius:50%; overflow:hidden;
  background:radial-gradient(circle at 30% 25%, rgba(255,255,255,.20), rgba(255,255,255,.04)) !important;
  border:2px solid rgba(255,255,255,.55) !important;
  box-shadow:0 6px 18px rgba(0,0,0,.35), inset 0 0 22px rgba(255,255,255,.06) !important;
  transition:transform .3s ease, box-shadow .3s ease;
}
#mod-sp-simpleportfolio .sp-simpleportfolio-item:hover .sp-simpleportfolio-overlay-wrapper{
  transform:scale(1.08); box-shadow:0 10px 26px rgba(0,0,0,.5);
}
#mod-sp-simpleportfolio .sp-simpleportfolio-img{
  display:block; width:100% !important; height:100% !important;
  object-fit:contain; box-sizing:border-box; padding:12px;
  filter:drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 3px 5px rgba(0,0,0,.35));
}
#mod-sp-simpleportfolio .sp-simpleportfolio-overlay{ display:none !important; }

/* chi preferisce meno animazioni: scroll manuale */
@media (prefers-reduced-motion:reduce){
  .fp-track.is-marquee{ animation:none; }
  #mod-sp-simpleportfolio .sp-simpleportfolio-items.fp-marquee-on{ overflow-x:auto; }
  .sp-simpleportfolio-item{ transition:none !important; }
}
#mod-sp-simpleportfolio .sp-simpleportfolio-item a{ pointer-events:none !important; }
/* striscia risultati: fondo tabellone */
#mod-custom155,
#mod-custom155 > div{
  background:linear-gradient(180deg,#0a2a6b 0%,#000000 100%) !important;
}
#mod-custom155 iframe{
  display:block; background:transparent !important;
  border-top:1px solid rgba(255,255,255,.18);
  border-bottom:1px solid rgba(255,255,255,.18);
}
@media (max-width: 768px) {
  body #sp-main-body > .container,
  body #sp-main-body .container-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  body #sp-main-body #sp-component,
  body #sp-main-body #sp-component > .sp-column {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body #sp-main-body .article-details,
  body #sp-main-body .article-details > *,
  body #sp-main-body .article-details [itemprop="articleBody"],
  body #sp-main-body .article-details [itemprop="articleBody"] > * {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  body #sp-main-body .article-details [itemprop="articleBody"] {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
/* ==========================================================================
   FIPIC - ARTICOLO FULL WIDTH (Foto, Titolo e Layout Mobile)
   ========================================================================== */

/* 1. Sblocco dei contenitori Bootstrap / Helix Ultimate */

/* 2. Foto principale a tutta larghezza (Full Bleed) */

/* 3. Badge "In Evidenza" ancorato in alto sulla foto */
body.com-content.view-article .featured-article-badge {
    z-index: 10 !important;
}

/* 4. Titolo dell'articolo a tutta larghezza */

body.com-content.view-article .article-details .article-header h1 {   /* A tutta larghezza senza angoli arrotondati */
}

/* 5. Pulsante "Modifica" e Social Share con 10px di margine laterale */

/* 6. Corpo del testo dell'articolo con esattamente 10px di padding ai margini */
/* ==========================================================================
   FIPIC - LAYOUT FULL WIDTH & RIMOZIONE SPAZIO SUPERIORE
   ========================================================================== */

/* 1. Eliminazione spazio bianco vuoto in alto */
#sp-page-title,
#sp-main-body,
body.com-content.view-article #sp-main-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 2. Sblocco dei contenitori Bootstrap / Helix per layout Full Width */
body.com-content.view-article #sp-main-body,
body.com-content.view-article #sp-main-body > .container,
body.com-content.view-article #sp-main-body .container-inner,
body.com-content.view-article #sp-main-body .row,
body.com-content.view-article #sp-component,
body.com-content.view-article #sp-component > .sp-column,
body.com-content.view-article .article-details {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* 3. Badge "IN EVIDENZA" a tutto schermo in alto */
body.com-content.view-article .featured-article-badge {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    text-align: center !important;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

/* 4. Foto principale a tutto schermo (Full Bleed) */

body.com-content.view-article .article-full-image img {
    max-width: 100% !important;
    margin: 0 !important;
}

/* 5. Titolo dell'articolo a tutta larghezza */
body.com-content.view-article .article-details .article-header {
    clear: both !important;
    display: block !important;
    max-width: 100% !important;
}

body.com-content.view-article .article-details .article-header h1 {
    box-sizing: border-box !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
}

/* 6. Pulsanti e Social Share con 10px di margine laterale */
body.com-content.view-article .article-can-edit,
body.com-content.view-article .article-ratings-social-share {
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

/* 7. Testo dell'articolo con esattamente 10px di margine ai lati */
body.com-content.view-article [itemprop="articleBody"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.com-content.view-article [itemprop="articleBody"] > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* ==========================================================================
   FIPIC - CROP CENTRATO IMMAGINE NEWS DESKTOP
   ========================================================================== */

/* Regola standard per schermi desktop (da 992px in su) */
@media (min-width: 992px) {
    body.com-content.view-article .article-full-image { /* Misura standard desktop per l'altezza */ /* Arrotondamento elegante per desktop */
    }

    body.com-content.view-article .article-full-image img { /* Crop perfetto proporzionato */ /* Mantiene a fuoco i volti/soggetti centrali */
    }
}

/* Su schermi molto grandi (Full HD / 2K) mantiene l'altezza bilanciata */
@media (min-width: 1400px) {
    body.com-content.view-article .article-full-image {
        height: 550px !important;
    }
}
/* ==========================================================================
   FIPIC - CORREZIONE DEFINITIVA DESKTOP (Spazio Alto, In Evidenza, Titolo)
   ========================================================================== */

@media (min-width: 992px) {

    /* 1. Azzeramento completo dello spazio bianco in alto */
    #sp-page-title,
    #sp-main-body,
    body.com-content.view-article #sp-main-body,
    body.com-content.view-article #sp-main-body > .container,
    body.com-content.view-article #sp-main-body .container-inner,
    body.com-content.view-article #sp-main-body .row,
    body.com-content.view-article #sp-component,
    body.com-content.view-article #sp-component > .sp-column,
    body.com-content.view-article .article-details {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* 2. Barra "IN EVIDENZA" elegante e ben posizionata */
    body.com-content.view-article .featured-article-badge,
    body.com-content.view-article span.badge-danger,
    body.com-content.view-article .badge.bg-danger {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
        padding: 10px 16px !important;
        background: #d21d33 !important; /* Rosso istituzionale FIPIC */
        color: #ffffff !important;
        text-align: left !important;
        border-radius: 8px !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(210, 29, 51, 0.25) !important;
        box-sizing: border-box !important;
    }

    body.com-content.view-article .featured-article-badge::before {
        content: "IN EVIDENZA" !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        letter-spacing: 1.5px !important;
        color: #ffffff !important;
    }

    /* 3. Titolo su Desktop: pulito, proporzionato e senza sbavature */
    body.com-content.view-article .article-details .article-header {
        clear: both !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    body.com-content.view-article .article-details .article-header h1 {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 16px 10px !important; /* 10px padding laterale */
        letter-spacing: 0.5px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }

    /* 4. Corpo del testo con esattamente 10px ai lati */
    body.com-content.view-article [itemprop="articleBody"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
}

/* 1. RIPRISTINO GRIGLIA BOOTSTRAP / HELIX ULTIMATE DESKTOP */
@media (min-width: 992px) {
    /* Mantiene affiancati Menu (#sp-left) e Contenuto (#sp-component) */

    body.com-content.view-article #sp-left {
    }

    body.com-content.view-article #sp-component {
    }

    /* Crop centrato e proporzionato dell'immagine delle news su Desktop */
    body.com-content.view-article .article-full-image {
    }
}
/* ==========================================================================
   FIPIC - LAYOUT CORRETTO (Desktop 2 Colonne, Mobile, Immagine News & Badge)
   ========================================================================== */

/* 1. RIPRISTINO GRIGLIA BOOTSTRAP / HELIX ULTIMATE DESKTOP */
@media (min-width: 992px) {
    /* Mantiene affiancati Menu (#sp-left) e Contenuto (#sp-component) */
    body.com-content.view-article #sp-main-body .row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    body.com-content.view-article #sp-left {
        width: 33.333333% !important; /* col-lg-4 */
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        padding-right: 15px !important;
    }

    body.com-content.view-article #sp-component {
        width: 66.666667% !important; /* col-lg-8 */
        max-width: 66.666667% !important;
        flex: 0 0 66.666667% !important;
        padding-left: 15px !important;
        clear: none !important; /* Evita di scendere sotto al menu */
    }

    /* Rimuove lo spazio bianco vuoto sopra il corpo centrale */
    #sp-page-title,
    #sp-main-body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Crop centrato e proporzionato dell'immagine delle news su Desktop */
    body.com-content.view-article .article-full-image {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 480px !important; /* Misura standard desktop */
        margin: 0 0 20px 0 !important;
        overflow: hidden !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    }

    body.com-content.view-article .article-full-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 30% !important;
    }

    /* Titolo dell'articolo su Desktop con 10px di margine laterale */
    body.com-content.view-article .article-details .article-header h1 {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-family: 'Anton', sans-serif !important;
        font-size: clamp(28px, 3vw, 40px) !important;
        line-height: 1.15 !important;
        text-transform: uppercase !important;
    }
}

/* 2. BADGE "IN EVIDENZA" (Solo se presente nell'articolo) */
body.com-content.view-article .featured-article-badge {
    display: inline-block !important;
    margin: 0 0 12px 10px !important;
    padding: 6px 14px !important;
    background: #d21d33 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    border-radius: 4px !important;
}

/* 3. CORPO TESTO ARTICOLO (Padding 10px su tutti i dispositivi) */
body.com-content.view-article [itemprop="articleBody"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}

/* 4. OTTIMIZZAZIONE SPECIFICA PER MOBILE */
@media (max-width: 991.98px) {
    #sp-page-title,
    #sp-main-body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.com-content.view-article .article-details .article-header h1 {
        padding-left: 10px !important;
        padding-right: 10px !important;
        font-size: clamp(22px, 6vw, 30px) !important;
        line-height: 1.18 !important;
    }
}
/* ==========================================================================
   FIPIC - ARTICOLO FULL WIDTH REALE (FORZATURA CONTAINER & BODY)
   ========================================================================== */

/* 1. Annulla le restrizioni del layout boxed e dei container Bootstrap Helix */
body.layout-boxed.com-content.view-article,
body.com-content.view-article #sp-main-body,
body.com-content.view-article #sp-main-body > .container,
body.com-content.view-article #sp-main-body .container-inner,
body.com-content.view-article #sp-main-body .row,
body.com-content.view-article #sp-component,
body.com-content.view-article #sp-component > .sp-column,
body.com-content.view-article .article-details {
    width: 100% !important;
    max-width: 100vw !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* 2. Immagine dell'articolo a tutto schermo con crop centrato */
body.com-content.view-article .article-full-image { /* Altezza proporzionata per desktop */
}

/* 3. Badge "IN EVIDENZA" full width (Risolve anche il doppio testo) */
body.com-content.view-article .featured-article-badge,
body.com-content.view-article span.badge-danger,
body.com-content.view-article .badge.bg-danger { /* Rosso FIPIC */
}

/* 4. Titolo dell'articolo a tutta larghezza con 10px ai lati */
body.com-content.view-article .article-details .article-header {
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

body.com-content.view-article .article-details .article-header h1 { /* 10px padding laterale */
}

/* 5. Corpo testo e barra social con esattamente 10px di margine ai lati */
/* ==========================================================================
   FIPIC - GESTIONE DIFFERENZIATA: NEWS FULL WIDTH vs PAGINE CON MENU
   ========================================================================== */

/* 1. PAGINE ISTITUZIONALI CON MENU LATERALE (es. Organizzazione, Normativa)
      Garantisce l'affiancamento del menu a sinistra e contenuto a destra */
@media (min-width: 992px) {
    body.com-content.view-article #sp-main-body .row:has(#sp-left .sp-module) {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    body.com-content.view-article #sp-main-body .row:has(#sp-left .sp-module) #sp-left {
        width: 33.333333% !important; /* col-lg-4 */
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
        display: block !important;
    }

    body.com-content.view-article #sp-main-body .row:has(#sp-left .sp-module) #sp-component {
        width: 66.666667% !important; /* col-lg-8 */
        max-width: 66.666667% !important;
        flex: 0 0 66.666667% !important;
        clear: none !important;
    }
}

/* 2. PAGINE NEWS / ARTICOLI IN EVIDENZA (FULL WIDTH SENZA MENU) */
body.com-content.view-article:not(:has(#sp-left .sp-module)) #sp-main-body,
body.com-content.view-article:not(:has(#sp-left .sp-module)) #sp-main-body > .container,
body.com-content.view-article:not(:has(#sp-left .sp-module)) #sp-main-body .container-inner,
body.com-content.view-article:not(:has(#sp-left .sp-module)) #sp-main-body .row,
body.com-content.view-article:not(:has(#sp-left .sp-module)) #sp-component {
    width: 100% !important;
    max-width: 100vw !important;
    flex: 0 0 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* 3. IMMAGINE NEWS FULL WIDTH (Crop centrato desktop) */
body.com-content.view-article .article-full-image {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 480px !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.com-content.view-article .article-full-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 30% !important;
    border-radius: 0 !important;
}

/* 4. FIX BADGE "IN EVIDENZA" (Elimina testo duplicato) */
body.com-content.view-article .featured-article-badge,
body.com-content.view-article span.badge-danger,
body.com-content.view-article .badge.bg-danger {
    display: block !important;
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    padding: 10px 16px !important;
    background: #d21d33 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.com-content.view-article .featured-article-badge::before {
    content: "" !important;
    display: none !important;
}

/* 5. TITOLO E CONTENUTO CON 10PX DI PADDING */
body.com-content.view-article .article-details .article-header h1 {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 10px !important;
    font-family: 'Anton', sans-serif !important;
    font-size: clamp(26px, 3.5vw, 42px) !important;
    line-height: 1.12 !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
}

body.com-content.view-article .article-ratings-social-share,
body.com-content.view-article [itemprop="articleBody"] {
    display: block !important;
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
}
/* ==========================================================================
   FIPIC - PADDING LATERALE ESCLUSIVO PER IL CONTENUTO TESTUALE
   ========================================================================== */

/* 1. Titolo, Immagine e Badge: Mantengono la larghezza full bleeding (senza padding extra) */
body.com-content.view-article .article-full-image,
body.com-content.view-article .featured-article-badge,
body.com-content.view-article .article-details .article-header h1 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2. DESKTOP (da 992px in su): 30px di padding solo per Testo e Social Share */
@media (min-width: 992px) {
    body.com-content.view-article .article-ratings-social-share,
    body.com-content.view-article [itemprop="articleBody"] {
        padding-left: 30px !important;
        padding-right: 30px !important;
        box-sizing: border-box !important;
    }
}

/* 3. MOBILE / TABLET (fino a 991px): 10px di padding per il testo */
@media (max-width: 991.98px) {
    body.com-content.view-article .article-ratings-social-share,
    body.com-content.view-article [itemprop="articleBody"] {
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }
}
/* =====================================================
   CAROSELLO HERO - POSIZIONAMENTO E STILE DATA (DESKTOP & MOBILE)
   ===================================================== */

/* 1. Stile base della data (Pillola elegante) */
.carosello-news .mod-articles-item-content .hero-date,
.carosello-news .hero-date {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  background: rgba(191, 25, 45, 0.95) !important; 
  border-radius: 4px !important;
  color: #ffffff !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  width: fit-content !important;
  margin-bottom: 12px !important;
  z-index: 5 !important;
}



/* --- DESKTOP (da 768px in su) --- */
@media (min-width: 768px) {
  .carosello-news .mod-articles-item-content .hero-date,
  .carosello-news .hero-date {
    position: absolute !important;
    top: calc(22% - 35px) !important; /* Posizionata subito sopra il titolo */
    left: 0 !important;
    right: 0 !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    margin-left: 80px !important; /* Allineata all'indentazione del titolo desktop */
  }
}

/* --- MOBILE (fino a 767.98px) --- */
@media (max-width: 767.98px) {
  .carosello-news .mod-articles-item-content .hero-date,
  .carosello-news .hero-date {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-left: 20px !important; /* Stesso padding di titolo e descrizione mobile */
    margin-right: 20px !important;
    margin-bottom: 10px !important;
    font-size: 0.75rem !important;
    padding: 3px 10px !important;
  }
}
/* =====================================================
   RIFINITURA FARETTI E FIX SCROLLBAR IFRAME
   ===================================================== */

/* Contenitore principale */
#mod-custom155,
#mod-custom155 > div {
  position: relative !important;
  background: linear-gradient(180deg, #0a2a6b 0%, #000000 100%) !important;
  overflow: hidden !important;
}

/* Coni di luce sfumati anche sui bordi laterali */
#mod-custom155::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 10px !important;
  z-index: 10 !important;
  pointer-events: none !important;

  /* Sfumatura radiale più morbida che digrada dolcemente anche ai margini */
  background: 
    radial-gradient(ellipse at 25% 0%, rgba(194, 25, 45, 0.4) 0%, rgba(194, 25, 45,  0.21) 50%, transparent 80%),
    radial-gradient(ellipse at 50% 0%, rgba(194, 25, 45, 0.5) 0%, rgba(194, 25, 45,  0.25) 55%, transparent 80%),
    radial-gradient(ellipse at 75% 0%, rgba(194, 25, 45,  0.4) 0%, rgba(194, 25, 45,  0.2) 50%, transparent 80%) !important;

  filter: blur(4px) !important;
}

/* Striscia di luce LED in cima */
#mod-custom155::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, transparent 0%, #c2192d 15%, #c2192d 40%, #c2192d 85%, transparent 100%) !important;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.8) !important;
  z-index: 11 !important;
  pointer-events: none !important;
}

/* Fix per nascondere la scrollbar verticale dell'iframe e dare respiro all'altezza */
#mod-custom155 iframe {
  display: block !important;
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 111px !important; /* Aumenta leggermente l'altezza per evitare lo scroll verticale */
  border: 0 !important;
  overflow: hidden !important; /* Nasconde la barra di scorrimento */
}
/* =====================================================
   TABELLA SOCIETÀ AFFILIATE - STYLE INTEGRATO FIPIC
   ===================================================== */

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 51, 102, 0.15);
}

.societa-affiliate-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #ffffff;
  font-family: inherit;
}

/* Intestazione della Tabella */
.societa-affiliate-table thead tr {
  background: linear-gradient(135deg, #0a2a6b 0%, #15406b 100%);
  color: #ffffff;
}

.societa-affiliate-table th {
  padding: 14px 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 3px solid #c2192d; /* Linea di accento rosso FIPIC */
}

/* Celle della Tabella */
.societa-affiliate-table td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f5;
  color: #2b3e50;
  font-size: 0.95rem;
}

.societa-affiliate-table tbody tr:last-child td {
  border-bottom: none;
}

/* Effetto Hover per le righe */
.societa-affiliate-table tbody tr {
  transition: background-color 0.2s ease;
}

.societa-affiliate-table tbody tr:hover {
  background-color: #f4f8fc;
}

/* Colonna Logo */
.societa-affiliate-table .col-logo {
  text-align: center;
  width: 100px;
}

.societa-affiliate-table .col-logo img {
  max-width: 65px;
  max-height: 65px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.societa-affiliate-table tbody tr:hover .col-logo img {
  transform: scale(1.08);
}

/* Colonna Nome */
.societa-affiliate-table .col-nome {
  text-align: left;
  font-weight: 600;
}

/* Colonna Link / Social */
.societa-affiliate-table .col-link {
  text-align: center;
  width: 130px;
}

/* Pulsante Sito / Facebook */
.societa-affiliate-table .btn-link {
  display: inline-block;
  padding: 6px 14px;
  background-color: #0a2a6b;
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(10, 42, 107, 0.2);
}

.societa-affiliate-table .btn-link:hover {
  background-color: #c2192d; /* Rosso FIPIC all'hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(194, 25, 45, 0.3);
}

/* Variante Pulsante Facebook */
.societa-affiliate-table .btn-link.btn-social {
  background-color: #1877f2;
}

.societa-affiliate-table .btn-link.btn-social:hover {
  background-color: #c2192d;
}

/* Segnaposto vuoto */
.societa-affiliate-table .no-link,
.societa-affiliate-table .no-logo {
  color: #a0aec0;
  font-size: 0.85rem;
}
/* Nasconde il badge fluttuante Iubenda (nuovo e vecchio embed) */
#iubenda-cs-badge,
.iubenda-cs-badge,
#iubenda-ib-badge,
.iubenda-ib-badge,
.iubenda-floating-button,
[class*="iubenda-cs-badge"],
[id*="iubenda-ib-badge"],
[class*="iubenda-ib-"],
div[id^="iubenda-cs-"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   STYLING DEFINITIVO CLASSIFICA E BADGE LOGHI CIRCOLARI (DJ LEAGUE)
   ========================================================================== */

/* 1. CONTENITORE PRINCIPALE */
.mod_djl_tables,
div.mod_djl_tables {
  background: rgba(0, 24, 60, 0.7) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 16px !important;
  padding: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

/* 2. TABELLA E STRUTTURA */
.mod_djl_tables table.table {
  background: transparent !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 4px !important; /* Spazio elegante tra le righe */
  width: 100% !important;
}

.mod_djl_tables table thead th {
  background: transparent !important;
  color: #dc3545 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-top: none !important;
  padding: 8px 10px !important;
}

.mod_djl_tables table tbody tr {
  background: rgba(255, 255, 255, 0.02) !important;
  transition: all 0.2s ease !important;
}

.mod_djl_tables table tbody tr:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.mod_djl_tables table tbody td {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  padding: 8px 10px !important;
  vertical-align: middle !important;
  font-size: 0.88rem !important;
}

/* 3. COLONNA POSIZIONE */
.mod_djl_tables table td.position {
  font-weight: 800 !important;
  color: #ffffff !important;
  width: 40px !important;
  text-align: center !important;
}

.mod_djl_tables table tbody tr:first-child td.position {
  color: #ff2a5f !important; /* Rosso accentuato per il 1° posto */
}

/* 4. ALINEAMENTO TEAM E BADGE CIRCOLARE LOGO */
.mod_djl_tables table td.team,
div.mod_djl_tables table.table tbody tr td.team {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  white-space: nowrap !important;
}

.mod_djl_tables table td.team a,
div.mod_djl_tables table.table tbody tr td.team a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: none !important;
  background-color: transparent !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  box-shadow: none !important;
}

.mod_djl_tables table td.team a:hover {
  color: #00e676 !important;
}

/* TRASFORMAZIONE DEL LOGO IN BADGE CIRCOLARE PULITO */
.mod_djl_tables table td.team img,
div.mod_djl_tables table.table tbody tr td.team img {
  display: inline-block !important;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  
  /* Rende l'immagine perfettamente circolare */
  border-radius: 50% !important;
  
  /* Sfondo neutro con effetto vetro per uniformare sia i loghi bianchi che trasparenti */
  background-color: #ffffff !important;
  padding: 4px !important;
  object-fit: contain !important;
  
  /* Bordo e Ombra per effetto "Bottone / Coin" */
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* 5. COLONNE STATISTICHE E PUNTI */
.mod_djl_tables table td.points {
  font-weight: 800 !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
}

/* 6. PULSANTE FOOTER ("SEE ALL") */
.mod_djl_tables table tfoot td.tables_link {
  text-align: center !important;
  padding-top: 18px !important;
  border-top: none !important;
}

.mod_djl_tables table tfoot td.tables_link a {
  display: inline-block !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  padding: 7px 24px !important;
  border-radius: 7px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.2s ease !important;
}

.mod_djl_tables table tfoot td.tables_link a:hover {
  background: #d21d33 !important;
  border-color: #d21d33 !important;
  box-shadow: 0 4px 15px rgba(210, 29, 51, 0.4) !important;
}
/* ==========================================================================
   CLASSIFICA SERIE A - HOME (modulo DJ League .mod_djl_tables)
   Sostituisce i due blocchi precedenti:
   - "STYLING DEFINITIVO CLASSIFICA E BADGE LOGHI CIRCOLARI (DJ LEAGUE)"
   - "OPTIMIZATION MOBILE & PADDING PER CLASSIFICA DJ LEAGUE"
   ========================================================================== */

/* ---------- Contenitore ---------- */
.mod_djl_tables {
  padding: 20px !important;
  background: rgba(0, 24, 60, 0.7) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

/* ---------- Tabella: ogni riga e' una griglia (Pos | Squadra | G | DP | PT) ---------- */
.mod_djl_tables table,
.mod_djl_tables thead,
.mod_djl_tables tbody,
.mod_djl_tables tfoot {
  display: block;
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  background: none !important;
  --bs-table-bg: transparent;
  --bs-table-hover-bg: transparent;
  --bs-table-bg-state: transparent;
  --bs-table-accent-bg: transparent;
}
.mod_djl_tables table {
  --djl-cols: 34px minmax(0, 1fr) 34px 38px 46px;
}
.mod_djl_tables thead tr,
.mod_djl_tables tbody tr {
  display: grid;
  grid-template-columns: var(--djl-cols);
  align-items: center;
  column-gap: 8px;
  padding: 10px;
}

.mod_djl_tables th,
.mod_djl_tables td {
  display: block;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
  text-align: center;
  font-size: 0.88rem;
}

/* Colonne V / N / S: sempre vuote, nascoste (per riattivarle: togli questa regola e aggiungi 3 colonne a --djl-cols) */
.mod_djl_tables .won,
.mod_djl_tables .won_th,
.mod_djl_tables .drawn,
.mod_djl_tables .drawn_th,
.mod_djl_tables .lost,
.mod_djl_tables .lost_th {
  display: none !important;
}

/* ---------- Intestazione ---------- */
.mod_djl_tables thead tr {
  padding-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.mod_djl_tables th {
  color: #8fa0b5 !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.mod_djl_tables th.team_th {
  text-align: left;
}

/* ---------- Righe ---------- */
.mod_djl_tables tbody tr {
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  transition: background 0.2s ease;
}
.mod_djl_tables tbody tr:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mod_djl_tables td.position {
  font-weight: 800;
}
.mod_djl_tables tbody tr:first-child td.position {
  color: #ff2a5f;
}

.mod_djl_tables td.team {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.mod_djl_tables td.team img.team_logo {
  flex: none;
  box-sizing: border-box;
  width: 38px !important;
  height: 38px !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 4px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.mod_djl_tables td.points {
  font-weight: 800;
  font-size: 0.95rem;
}

/* ---------- Piede: bottone centrato, senza la linea bianca ---------- */
.mod_djl_tables tfoot {
  margin-top: 6px !important;
}
.mod_djl_tables tfoot tr {
  display: block;
}
.mod_djl_tables td.tables_link {
  display: flex;
  justify-content: center;
  padding-top: 18px !important;
}
.mod_djl_tables td.tables_link a {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  transition: all 0.2s ease;
}
.mod_djl_tables td.tables_link a:hover {
  background: #d21d33;
  border-color: #d21d33;
  box-shadow: 0 4px 15px rgba(210, 29, 51, 0.4);
}

/* ---------- Titolo "Classifica Serie A" ---------- */
#sppb-addon-1791230900387 .sppb-addon-title {
  margin-bottom: 16px;
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  /* spazio sopra il titolo (sotto il tasto "Calendario completo") */
  #sppb-addon-wrapper-1791230900387 {
    margin-top: 40px;
  }
}
@media (max-width: 575.98px) {
  .mod_djl_tables {
    padding: 16px 8px !important;
  }
  .mod_djl_tables table {
    --djl-cols: 26px minmax(0, 1fr) 26px 32px 38px;
  }
  .mod_djl_tables thead tr,
  .mod_djl_tables tbody tr {
    column-gap: 6px;
    padding: 10px 6px;
  }
  .mod_djl_tables th,
  .mod_djl_tables td {
    font-size: 0.78rem;
  }
  .mod_djl_tables td.team {
    gap: 8px;
  }
  .mod_djl_tables td.team img.team_logo {
    width: 30px !important;
    height: 30px !important;
    padding: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mod_djl_tables tbody tr,
  .mod_djl_tables td.tables_link a {
    transition: none;
  }
}
/* ==========================================================================
   RICERCA IN LINEA - header desktop + menu offcanvas (mobile)
   Campo a pillola "vetro" sul gradiente blu, lente integrata, al focus
   diventa bianco. Suggerimenti Awesomplete in card bianca.
   SOSTITUISCE il blocco "RICERCA DOCUMENTI (modulo Smart Search)" aggiunto
   prima (ricerca-documenti.css): quel modulo non e' piu' nella pagina.
   ========================================================================== */

/* ---------- Larghezza del campo nell'header (fissa: non sposta il menu) ---------- */
#sp-header .header-modules {
  --fipic-search-w: clamp(150px, 13vw, 210px);
}
#sp-header .header-modules .sp-module,
#sp-header .header-modules .sp-module-content {
  margin: 0;
  padding: 0;
}

/* ---------- Contenitore + wrapper Awesomplete ---------- */
#sp-header .header-modules .mod-finder,
.offcanvas-menu .mod-finder {
  position: relative;
  margin: 0;
}
/* eventuali icone aggiunte dal template: la lente la disegniamo noi */
#sp-header .header-modules .mod-finder::before,
#sp-header .header-modules .mod-finder::after,
.offcanvas-menu .mod-finder::before,
.offcanvas-menu .mod-finder::after {
  content: none !important;
}
#sp-header .header-modules .mod-finder .awesomplete {
  display: block !important;
  width: var(--fipic-search-w);
}
.offcanvas-menu .mod-finder .awesomplete {
  display: block !important;
  width: 100%;
}

/* ---------- Campo ---------- */
#sp-header .header-modules .mod-finder .form-control,
.offcanvas-menu .mod-finder .form-control {
  display: block;
  width: 100% !important;
  height: 40px !important;
  padding: 0 16px 0 42px !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 15px center / 17px 17px no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
#sp-header .header-modules .mod-finder .form-control::placeholder,
.offcanvas-menu .mod-finder .form-control::placeholder {
  color: rgba(255, 255, 255, 0.78);
  opacity: 1;
}
#sp-header .header-modules .mod-finder .form-control:hover,
.offcanvas-menu .mod-finder .form-control:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Focus: campo bianco, testo scuro, lente blu, alone rosso FIPIC */
#sp-header .header-modules .mod-finder .form-control:focus,
.offcanvas-menu .mod-finder .form-control:focus {
  color: #10253f !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230058a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 15px center / 17px 17px no-repeat !important;
  border-color: #fff !important;
  box-shadow: 0 0 0 1px rgba(210, 29, 51, 0.2) !important;
  outline: 0;
}
#sp-header .header-modules .mod-finder .form-control:focus::placeholder,
.offcanvas-menu .mod-finder .form-control:focus::placeholder {
  color: #fff;
}

/* ---------- Suggerimenti (Awesomplete) ---------- */
#sp-header .header-modules .mod-finder .awesomplete > ul,
.offcanvas-menu .mod-finder .awesomplete > ul {
  z-index: 1100;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0, 30, 60, 0.28);
  text-shadow: none;
}
#sp-header .header-modules .mod-finder .awesomplete > ul {
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  min-width: 280px;
}
.offcanvas-menu .mod-finder .awesomplete > ul {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
}
#sp-header .header-modules .mod-finder .awesomplete > ul::before,
.offcanvas-menu .mod-finder .awesomplete > ul::before {
  content: none;
}
#sp-header .header-modules .mod-finder .awesomplete > ul > li,
.offcanvas-menu .mod-finder .awesomplete > ul > li {
  padding: 10px 14px;
  color: #10253f;
  font-size: 13.5px;
  border-radius: 10px;
  cursor: pointer;
}
#sp-header .header-modules .mod-finder .awesomplete > ul > li:hover,
#sp-header .header-modules .mod-finder .awesomplete > ul > li[aria-selected="true"],
.offcanvas-menu .mod-finder .awesomplete > ul > li:hover,
.offcanvas-menu .mod-finder .awesomplete > ul > li[aria-selected="true"] {
  background: #eef5fb;
  color: #0058a0;
}
#sp-header .header-modules .mod-finder .awesomplete mark,
.offcanvas-menu .mod-finder .awesomplete mark {
  padding: 0;
  background: none;
  color: #d21d33;
  font-weight: 700;
}

/* ---------- Offcanvas: il campo occupa lo spazio accanto al Login ---------- */
.offcanvas-menu .header-modules {
  align-items: center;
  gap: 12px;
}
.offcanvas-menu .header-modules > .sp-module:has(.mod-finder) {
  flex: 1 1 auto;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  #sp-header .header-modules .mod-finder .form-control,
  .offcanvas-menu .mod-finder .form-control {
    transition: none;
  }
}
/* Focus (discreto): resta "vetro", un filo piu' chiaro e bordo bianco */
#sp-header .header-modules .mod-finder .form-control:focus,
.offcanvas-menu .mod-finder .form-control:focus {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  box-shadow: none !important;
  outline: 0;
}
@media (max-width: 767.98px) {
    /* 1. Nasconde tutte le colonne delle statistiche TRANNE la colonna Punti (.points) */
    .mod_djl_tables table th.played_th,
    .mod_djl_tables table td.played,
    .mod_djl_tables table th.score_diff_th,
    .mod_djl_tables table td.score_diff,
    .mod_djl_tables table th.won_th,
    .mod_djl_tables table td.won,
    .mod_djl_tables table th.drawn_th,
    .mod_djl_tables table td.drawn,
    .mod_djl_tables table th.lost_th,
    .mod_djl_tables table td.lost {
        display: none !important;
    }

    /* 2. Permette alla tabella di adattarsi e alla colonna squadra di occupare lo spazio */
    .mod_djl_tables table {
        table-layout: fixed !important;
        width: 100% !important;
    }

    /* Posizione */
    .mod_djl_tables table td.position {
        width: 25px !important;
        padding-right: 5px !important;
    }

    /* Cella della squadra: tronca il testo prima dei Punti */
    .mod_djl_tables table td.team {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: calc(100vw - 110px) !important;
    }

    /* Colonna Punti rimasta visibile a destra */
    .mod_djl_tables table td.points,
    .mod_djl_tables table th.points_th {
        width: 35px !important;
        text-align: right !important;
        padding-right: 10px !important;
        font-weight: bold !important;
    }
}
/* ===================================================
   MAPPA ONECORE EVENTS - DESATURATA GRIGIO SCURO & BLU
   =================================================== */

/* 1. Contenitore Mappa FIPIC */
.onecore-events-map-container {
    border: 1px solid #cbd5e1 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(13, 71, 161, 0.12) !important;
    background-color: #e2e8f0 !important;
}

/* 2. Filtro CSS sicuro sulle Tile: mappa grigio/blu leggibile */
#onecore-events-map .leaflet-tile-pane {
    filter: grayscale(85%) contrast(110%) brightness(95%) sepia(20%) hue-rotate(180deg) !important;
}

/* 3. Evidenziazione dei Segnaposto (Marker) in Blu FIPIC */
#onecore-events-map .leaflet-marker-icon {
    filter: grayscale(0%) saturate(300%) hue-rotate(190deg) drop-shadow(0 3px 6px rgba(0,0,0,0.4)) !important;
}

/* 4. Pulsanti Zoom (+/-) */
#onecore-events-map .leaflet-control-zoom {
    border: 1px solid #94a3b8 !important;
    border-radius: 8px !important;
    overflow: hidden;
}

#onecore-events-map .leaflet-control-zoom a {
    background-color: #ffffff !important;
    color: #0d47a1 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    font-weight: bold !important;
}

#onecore-events-map .leaflet-control-zoom a:hover {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
}
/* ===================================================
   BARRA FILTRI E CONTROLLI ONECORE EVENTS - STYLE FIPIC
   =================================================== */

/* 1. Titolo della sezione */
.onecore-events-title h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #0d47a1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
    position: relative;
    padding-left: 14px;
}

/* Indicatore visivo verticale azzurro prima del titolo */
.onecore-events-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background-color: #0284c7;
    border-radius: 4px;
}

/* 2. Pulsanti Cambio Vista (Lista / Calendario) */
.onecore-events-view-toggle .btn {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    background-color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out !important;
    display: inline-flex !important;
    align-items: center !important;
}

.onecore-events-view-toggle .btn:hover {
    background-color: #f1f5f9 !important;
    color: #0d47a1 !important;
    border-color: #94a3b8 !important;
}

/* Stato Attivo del Pulsante (Selezione corrente) */
.onecore-events-view-toggle .btn.active {
    background-color: #0d47a1 !important;
    color: #ffffff !important;
    border-color: #0d47a1 !important;
    box-shadow: 0 4px 10px rgba(13, 71, 161, 0.2) !important;
}

.onecore-events-view-toggle .btn.active svg {
    stroke: #ffffff !important;
}

/* Icone SVG dentro i pulsanti */
.onecore-events-view-icon {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor;
}

/* 3. Dropdown Ordinamento (Select) */
#onecore-events-sort {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #334155 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    padding: 6px 32px 6px 12px !important;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease-in-out !important;
}

#onecore-events-sort:focus,
#onecore-events-sort:hover {
    border-color: #0d47a1 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15) !important;
}