/* modifica del padding top e bottom da 100px di helix ultimate e colore background */
#sp-main-body {
  padding: 30px 0px 30px 0px; /*da variare a seconda dei casi */
  background-color: #f2f8ff;
}
/* classe pagina per padding qui sopra */
.paddingtop0 #sp-main-body {
  padding: 0px 0px 30px 0px;
  margin-top: -2px;
}
/* colore sfondo header */
#sp-header {
  background: #0A2746;
}
#sp-header.full-header {
  padding-left: 15px !important;
  padding-right: 15px !important;
}
/* 3 css per icona cerca e menu burger nell'header da mobile */
/* Distanzia la lente di ricerca dal menu burger su schermi piccoli */
@media (max-width: 991.98px) {
    .custom-search-trigger {
        margin-right: 15px !important; /* Spinge il burger menu più a destra */
    }

    /* Oopure aumenta l'area cliccabile dell'icona per facilitare il tap */
    .custom-search-trigger .btn {
        padding: 6px 10px !important;
    }
}
/* Aumenta l'area di contatto per le dita su mobile */
@media (max-width: 991.98px) {
    .custom-search-trigger .btn,
    #offcanvas-toggler {
        padding: 8px !important; /* Crea un'area cliccabile più ampia e sicura */
    }
}
#sp-footer-custom {
  padding-top: 30px;
  background-color: #f7f7f7;
  border-top: 1px solid #eeeeee;
  font-size: 14px;
}
#sp-footer .container-inner {
  padding: 10px 0;
}
#sp-sezione-loghi {
  padding-top: 20px;
}
.sp-page-title {
  border-top: solid 3px #fff;
}
/* CSS SOTTOLINEATURA CON ANIMAZIONE VOCI DI MENU */
.sp-megamenu-parent > li > a:before {
    content: "";
  position: absolute;
  width: 90%;
  height: 3px;
  bottom: 1px;
  left: 5%; /* il 10% diviso 2 del 10% che manca al width sopra che era 100% */
  background: #F68D23;
  visibility: hidden;
  border-radius: 0px;
  transform: scaleX(0);
  transition: .25s linear;
}
.sp-megamenu-parent > li > a:hover:before {
  visibility: visible;
  transform: scaleX(1);
  transition-timing-function: ease;
 -webkit-transition-timing-function: ease;
 -o-transition-timing-function: ease;
 -moz-transition-timing-function: ease;
  transition-duration: 0.5s;
}
.sp-megamenu-parent > li.active > a:before {
    content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: 1px;
  left: 0;
  background: #F68D23;
  visibility: visible;
  border-radius: 0px;
  transform: scaleX(1);
  transition: .25s linear;
}
/* FINE CSS SOTTOLINEATURA CON ANIMAZIONE VOCI DI MENU */
/* css voci di menu principale */
.sp-megamenu-parent > li > a {
  color: #fff;
}
.sp-megamenu-parent > li:last-child > a {
  padding: 0px 15px 0px 15px;
}
.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {
    text-transform: uppercase;
    /*letter-spacing: 0.1em;*/
  transition-timing-function: ease;
 -webkit-transition-timing-function: ease;
 -o-transition-timing-function: ease;
 -moz-transition-timing-function: ease;
  transition-duration: 0.5s;
  font-weight: normal;
  font-size: 1rem;
}
.sp-megamenu-parent > li > a:hover {
    color: #fff;
}
.sp-megamenu-parent > li.active > a {
  color: #fff;
}
.sp-megamenu-parent > li.active > a:hover {
  color: #fff;
}
/* Sovrascrive lo stato hover del parent quando ti sposti sui figli */
.sp-megamenu-parent > li.sp-has-child:hover > a,
.sp-megamenu-parent > li.sp-has-child.active > a,
.sp-megamenu-parent .sp-dropdown li.sp-has-child:hover > a {
    color: #fff !important;
}
/* FINE css voci di menu principale */
/* CSS SUBMENU MENU PRINCIPALE */
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: #444;
}
/* margini cambiati sul dropdown */
body.ltr .sp-megamenu-parent .sp-dropdown.sp-menu-center {
  margin-left: 70px;
  margin-top: -2px;
}
.sp-megamenu-parent .sp-mega-group > li > a {
  color: #fff;
  text-align: center;
  display: block;
  text-transform: uppercase !important;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
} 
.sp-megamenu-parent .sp-mega-group > li > a:hover {
  background-color: #F68D23;
  color: #fff !important;
  transition: .2s;
  border-radius: .25em;
  color: #1FA29F;
  text-decoration: none;
}
/* FINE CSS SUBMENU MENU PRINCIPALE */
/* css modulo loghi megamenu */
/* Sfondo del modulo e testo principale */
.custom-social-module {
  background-color: #444444;
  color: #ffffff;
  text-align: center;
  padding: 20px 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
/* Titolo con testo più piccolo */
.custom-social-module .social-title {
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 14px; /* Dimensione ridotta (il valore standard solitamente è 16px) */
}
/* Contenitore e spaziatura icone */
.custom-social-module .social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
/* Stile base dei link e delle icone */
.custom-social-module .social-icons a {
  color: #ffffff !important;
  font-size: 28px;
  transition: color 0.2s ease-in-out;
  text-decoration: none;
}
/* Effetto al passaggio del mouse (Hover) */
.custom-social-module .social-icons a:hover {
  color: #F68D23 !important;
}
/* FINE css modulo loghi megamenu */

/* ==========================================================================
   OFF CANVAS - OPTIMIZED FOR HELIX ULTIMATE / JOOMLA
   ========================================================================== */

/* 1. SFONDO E STRUTTURA PANNELLO */
.offcanvas-menu {
  color: #ffffff;
  padding-top: 10px;
  border-left: 2px solid #ffffff;

  background-image: 
    linear-gradient(180deg, rgba(10, 39, 70, 0.7) 0%, rgba(7, 28, 51, 0.7) 90%, rgba(5, 19, 34, 0.6) 100%),
    url('/images/thermae-sport-back-mobile-transparent.webp');
    
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 2. RESET LISTE */
.offcanvas-menu .offcanvas-inner ul,
.offcanvas-menu .offcanvas-inner ul.menu {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* 3. VOCI DI MENU PRINCIPALI (Livello 1) */
.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span {
  display: block;
  color: #ffffff !important;
  font-size: 15px;
  line-height: 15px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  margin-bottom: 5px;
  opacity: 0.7;
  border-left: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hover & Stato Attivo (Livello 1) */
.offcanvas-menu .offcanvas-inner ul.menu > li > a:hover,
.offcanvas-menu .offcanvas-inner ul.menu > li.active > a {
  opacity: 1 !important;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: #f68d23;
  transform: translateX(8px);
}

/* 4. SOTTOMENU & DROPDOWN (Livello 2) */
/* Visibilità sottomenu espanso e pulizia toggler */
.menu-parent .menu-child { display: block !important; }
.menu-parent .menu-toggler { display: none !important; }

/* Contenitore sottomenu */
.offcanvas-menu .offcanvas-inner ul.menu ul,
.offcanvas-menu .offcanvas-inner ul.menu .nav-child {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 4px 0 8px 0 !important;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.offcanvas-menu .offcanvas-inner ul.menu ul li {
  margin: 5px 0;
}

/* Link del sottomenu */
.offcanvas-menu .offcanvas-inner ul.menu > li > ul li a,
.offcanvas-menu .offcanvas-inner ul.menu .nav-child li a {
  display: block;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 16px;
  line-height: 23px;
  text-transform: none; /* Minuscolo per i sottomenu */
  text-decoration: none;
  padding: 8px 16px 8px 28px;
  border-left: 3px solid transparent;
  transition: all 0.25s ease-in-out;
}

/* Hover sottomenu */
.offcanvas-menu .offcanvas-inner ul.menu > li > ul li a:hover,
.offcanvas-menu .offcanvas-inner ul.menu .nav-child li a:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.06);
  border-left-color: rgba(246, 141, 35, 0.6);
  transform: translateX(4px);
}

/* Stato attivo sottomenu */
.offcanvas-menu .offcanvas-inner ul.menu > li > ul li.active > a,
.offcanvas-menu .offcanvas-inner ul.menu .nav-child li.active > a {
  color: #ffffff !important;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: #f68d23 !important;
  transform: translateX(4px);
}

/* 5. ICONE E FRECCE TOGGLER */
.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent > a > .menu-toggler,  
.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent > .menu-separator > .menu-toggler,
.offcanvas-menu .offcanvas-inner ul.menu > li.menu-parent > .nav-header > .menu-toggler {
  color: #ffffff;
}

/* 6. ANIMAZIONE IN CASCATA (STAGGER EFFECT) */
.offcanvas-menu .offcanvas-inner ul.menu > li {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Stato visibile (apertura) raggruppato */
:is(.offcanvas-menu.active, .offcanvas-menu.show, body.offcanvas-active .offcanvas-menu) .offcanvas-inner ul.menu > li {
  opacity: 1;
  transform: translateY(0);
}

/* Delay progressivo voci */
:is(.offcanvas-menu.active, .offcanvas-menu.show, body.offcanvas-active .offcanvas-menu) .offcanvas-inner ul.menu > li:nth-child(1) { transition-delay: 0.10s; }
:is(.offcanvas-menu.active, .offcanvas-menu.show, body.offcanvas-active .offcanvas-menu) .offcanvas-inner ul.menu > li:nth-child(2) { transition-delay: 0.15s; }
:is(.offcanvas-menu.active, .offcanvas-menu.show, body.offcanvas-active .offcanvas-menu) .offcanvas-inner ul.menu > li:nth-child(3) { transition-delay: 0.20s; }
:is(.offcanvas-menu.active, .offcanvas-menu.show, body.offcanvas-active .offcanvas-menu) .offcanvas-inner ul.menu > li:nth-child(4) { transition-delay: 0.25s; }
:is(.offcanvas-menu.active, .offcanvas-menu.show, body.offcanvas-active .offcanvas-menu) .offcanvas-inner ul.menu > li:nth-child(5) { transition-delay: 0.30s; }
:is(.offcanvas-menu.active, .offcanvas-menu.show, body.offcanvas-active .offcanvas-menu) .offcanvas-inner ul.menu > li:nth-child(6) { transition-delay: 0.35s; }

/* 7. BURGER ICON */
.burger-icon {
  width: 30px;
}

.burger-icon > span,
.offcanvas-active .burger-icon > span,
#modal-menu-toggler.active .burger-icon > span {
  height: 3px;
  background-color: #ffffff;
}

@media (max-width: 575px) {
  #offcanvas-toggler {
    height: 60px;
  }
  }
/* ==========================================================================
   FINE OFF CANVAS - OPTIMIZED FOR HELIX ULTIMATE / JOOMLA
   ========================================================================== */
/* inserisce border-top su tre moduli */
#mod-custom115, #mod-custom119, #mod-custom120 {
  border-top: solid 2px #fff !important;
}
/* CSS SCROLL UP */
.sp-scroll-up {
  background: #F68D23;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  font-size: 20px;
  border-radius: .25em;
}
.sp-scroll-up:hover:hover {
  background: #eb7907;
}
@media (max-width: 480px) {
  .sp-scroll-up {
    width: 36px !important;
    height: 36px !important;
    line-height: 37px !important;
  }
}
/* FINE CSS SCROLL UP */
/* ==========================================================================
   TIPOGRAFIA FLUIDA (Ricalibrata su base Body = 14px per Raleway)
   ========================================================================== */

/* 1. Base (14px) e Fluidità */
body {
  font-size: 0.875rem; /* 14px esatti */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Titoli Fluidi */

/* H1: Da ~24px (1.5rem) a 28px (1.75rem) */
h1, .h1,
.sp-page-title-heading,
.article-details .article-header h1 {
  font-size: clamp(1.5rem, 1.4rem + 0.5vw, 1.75rem) !important; /* Raggiunge 28px esatti su desktop */
  font-weight: 400 !important; /* Regular */
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

/* H2: Da ~16.1px (1.00625rem) a ~18.2px (1.1375rem) */
h2, .h2 {
  font-size: clamp(1.00625rem, 0.967rem + 0.2vw, 1.1375rem);
  font-weight: 400; /* Regular */
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

/* Variante H2 Uppercase */
h2.h2-uppercase,
.h2.h2-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* H3: Da ~14.7px (0.91875rem) a ~16.1px (1.00625rem) */
h3, .h3 {
  font-size: clamp(0.91875rem, 0.892rem + 0.13vw, 1.00625rem);
  font-weight: 400; /* Regular */
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

/* H4: Da 14px (0.875rem) a ~14.7px (0.91875rem) */
h4, .h4 {
  font-size: clamp(0.875rem, 0.862rem + 0.06vw, 0.91875rem);
  font-weight: 400; /* Regular */
  line-height: 1.4;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

/* 3. Paragrafi, Grassetto ed Elementi Utilità */
p {
  margin-bottom: 1.1rem;
}

/* Grassetto 600 bilanciato per Raleway */
strong, b {
  font-weight: 600; 
}

/* Lead (Testo introduttivo di risalto leggero): Da ~14.7px a ~15.4px */
.lead {
  font-size: clamp(0.91875rem, 0.898rem + 0.1vw, 0.9625rem);
  line-height: 1.55;
  font-weight: 400;
}

/* Small / Note a piè pagina: Da ~11.2px a ~12.2px */
small, .small {
  font-size: clamp(0.7rem, 0.675rem + 0.12vw, 0.765rem);
}

ul, ol {
  margin-bottom: 1.1rem;
}

/* ==========================================================================
   FINE TIPOGRAFIA FLUIDA
   ========================================================================== */
/* css H1 solo per estetica */
h1::before {
  content: "";
  display: inline-block;
  
  /* Usa 1em per adattarsi all'altezza del testo dell'H1 */
  width: 1em;
  height: 1em;
  
  background-image: url('/images/thermae-sport-asd.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  
  /* Un margined in em per mantenere le proporzioni */
  margin-right: 0.3em;
  
  /* Alignment raffinato */
  vertical-align: -0.2em; /* Oppure vertical-align: middle; */
}
/* FINE css H1 solo per estetica */
/* SP EASY IMAGE GALLERY */
/* Layout Griglia SP Easy Image Gallery */
/* Desktop (da 992px in su): 4 colonne per riga */
@media (min-width: 992px) {
  .speasyimagegallery-gallery .speasyimagegallery-row > div {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
  }
}
/* Tablet (da 576px a 991px): 3 colonne per riga */
@media (min-width: 576px) and (max-width: 991px) {
  .speasyimagegallery-gallery .speasyimagegallery-row > div {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
  }
}
/* Smartphone / Mobile (sotto i 575px): 2 colonne per riga */
@media (max-width: 575px) {
  .speasyimagegallery-gallery .speasyimagegallery-row > div {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}
/* css bottone torna a galleria inserito in overdrive dafaul.php */
.speasyimagegallery-back-btn .btn-outline-primary {
  background-color: #F68D23;
  color: white;
  border: solid 1px #F68D23;
  font-size: .8rem;
}
.speasyimagegallery-back-btn .btn-outline-primary:hover {
  background-color: #f67b23;
  border: solid 1px #f67b23;
}
/* FINE SP EASY IMAGE GALLERY */
/* CSS MODAL SEARCH */
/* --- Overlay Cerca Full-Screen Minimal con Trasparenza --- */

/* Sfondo scuro semitrasparente (70% opacità) con sfocatura glassmorphism */
.search-modal-fullscreen .modal-content {
    background-color: rgba(10, 39, 70, .60) !important; 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Pulsante di chiusura (X) in alto a destra */
.search-modal-fullscreen .btn-close {
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.8;
}
.search-modal-fullscreen .btn-close:hover {
    transform: rotate(90deg) scale(1.1);
    opacity: 1;
}

/* --- Layout del Form di Ricerca Full-Screen --- */

.search-modal-fullscreen .search-modal-wrapper form {
    margin: 0;
    width: 100%;
}

.search-modal-fullscreen .search-modal-wrapper .input-group,
.search-modal-fullscreen .search-modal-wrapper .form-inline,
.search-modal-fullscreen .search-modal-wrapper .mod-search__form {
    display: flex !important;
    align-items: center;
    gap: 12px;
}

/* Campo di testo gigante e minimale */
.search-modal-fullscreen .search-modal-wrapper input[type="text"],
.search-modal-fullscreen .search-modal-wrapper input[type="search"],
.search-modal-fullscreen .search-modal-wrapper .form-control {
    width: 100% !important;
    height: 64px !important;
    font-size: 1.4rem !important;
    padding: 12px 24px !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
}

/* Placeholder chiaro */
.search-modal-fullscreen .search-modal-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Effetto Focus sul Campo di Ricerca */
.search-modal-fullscreen .search-modal-wrapper input[type="text"]:focus,
.search-modal-fullscreen .search-modal-wrapper input[type="search"]:focus,
.search-modal-fullscreen .search-modal-wrapper .form-control:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25) !important;
}

/* Bottone di Invio Cerca */
.search-modal-fullscreen .search-modal-wrapper button,
.search-modal-fullscreen .search-modal-wrapper input[type="submit"],
.search-modal-fullscreen .search-modal-wrapper .btn {
    height: 64px !important;
    padding: 0 32px !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.search-modal-fullscreen .search-modal-wrapper button:hover,
.search-modal-fullscreen .search-modal-wrapper input[type="submit"]:hover,
.search-modal-fullscreen .search-modal-wrapper .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3) !important;
}
/* FINE MODAL SEARCH */
/* css per la pagina risultati di ricerca */
.com-finder>*+*,
.com-finder__results>*+* {
  margin-top: 0;
}
/* classe per la pagina risultati di ricerca */
.searchpage #sp-footer-custom {
  padding-bottom: 20px;
}
/* css testo/logo in visualizzazione mobile header custom */
.textlogo {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff !important;
    border-left: 3px solid #F68D23;
    padding-left: 10px;
    line-height: 1.1;
    transition: all 0.3s ease;
}

/* Effetto al tap/hover */
.textlogo:hover,
.textlogo:focus,
.textlogo:active {
    color: #F68D23 !important;
    border-left-color: #ffffff;
}
/* == CSS BANNER COOKIE E BOTTONE A SINISTRA DI COOKIEYES == */
.cookiecustombutton {
  text-align: center;
  border-bottom: solid 1px lightgray;
  padding-bottom: 20px
}
.cookiecustombutton a {
  border: solid 1px #1863dc;
  padding: 5px;
  background-color: #1863dc;
  color: white !important;
  border-radius: 2px;
}
.cookiecustombutton a:hover {
filter: brightness(.9);
}

.cky-btn-revisit-wrapper {
  border-radius: .25em;
}
.cky-revisit-bottom-left {
  bottom: 30px !important;
  left: 15px !important;
}

