/*
 Theme Name:   Understrap Child
 Theme URI:    https://understrap.com
 Description:  Understrap Child Theme
 Author:       the Understrap Contributors
 Author URI:   https://github.com/understrap/understrap-child/graphs/contributors
 Template:     understrap
 Version:      1.2.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/


:root {
    /*  Palette di colori principali */
    --primary: #281D4E; /* Colore principale (blu Bootstrap) */
    --secondary: #433283; /* Colore secondario */

}
::selection {
    background-color:#3a2a76; /* Colore di sfondo della selezione */
    color: #ffffff; /* Colore del testo selezionato */
}

/* Per compatibilità con Mozilla Firefox */
::-moz-selection {
    background-color: #3a2a76;
    color: #ffffff;
}


/*CAROUSEL */

.splide__slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.splide-card {
  text-decoration: none;
  height: 100%;
}

.splide__arrow svg {
  fill: #fff;
 
}
.splide__pagination__page.is-active {
  background: #281d4e;
}
.splide-card .post-date {
  font-size: 12px;
  color: #999;
}

/*splide effect*/

#splide-post-carousel .splide__arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#splide-post-carousel:hover .splide__arrows {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}




/* Regola immagine solo da desktop */
@media (min-width: 992px) {
  .splide-card .post-thumbnail {
      height: 130px;
      overflow: hidden;
  }
  .splide-card .post-thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
  }
}

/* Allinea immagine e testo in alto */
.splide-card .row {
  align-items: flex-start !important;
}

/* Troncamento del titolo a 3 righe con ellipsis */
.splide-card h5 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  position: relative;
  cursor: pointer;
  font-weight: 600 !important;


}
.tooltip-primary .tooltip-inner {
  background-color: #281d4e;
  color: #fff;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
}

.tooltip-primary .tooltip-arrow::before {
  border-top-color: #281d4e !important;
}

.splide-card .description {
  display: -webkit-box;
  -webkit-line-clamp: 2;    /* Mostra massimo 3 righe */
  -webkit-box-orient: vertical;
  overflow: hidden;

  height: calc(1.2em * 3);  /* 1.2em per riga * 3 righe */
  line-height: 1.2em;
}

/*Video*/


.elementor-background-video-hosted.loaded {
    opacity: 1;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.video-placeholder.hidden {
    display: none !important;
}


/* Scala tipografica con font-size e line-height proporzionali */
.elementor-element h1, h1, .fs-1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem) !important; /* 68px */
    line-height: clamp(3rem, 7vw, 6rem) !important; /* Interlinea proporzionata */
}

.elementor-element h2, h2, .fs-2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem) !important; /* 44px su desktop */
    line-height: clamp(2.25rem, 4.5vw, 3.5rem) !important;
}

.elementor-element h3, h3, .fs-3 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important; /* 36px */
    line-height: clamp(2rem, 4vw, 3.2rem) !important;
}

.elementor-element h4, h4, .fs-4 {
    font-size: clamp(1.25rem, 3vw, 2rem) !important; /* 32px */
    line-height: clamp(1.75rem, 3.8vw, 2.8rem) !important;
}

.elementor-element h5, h5, .fs-5 {
    font-size: clamp(1rem, 2.5vw, 1.75rem) !important; /* 28px */
    line-height: clamp(1.5rem, 3.5vw, 2.5rem) !important;
}

.elementor-element h6, h6, .fs-6 {
    font-size: clamp(0.875rem, 2vw, 1.5rem) !important; /* 24px */
    line-height: clamp(1.25rem, 3vw, 2rem) !important;
}




small {
    font-size: clamp(0.8rem, 1.5vw, 0.8rem) !important; /* 12.8px */
    line-height: clamp(1rem, 1.8vw, 1.4rem) !important; /* Interlinea proporzionata */
}

.extra-small {
    font-size: clamp(0.64rem, 1vw, 0.64rem) !important; /* 10.24px */
    line-height: clamp(0.9rem, 1.5vw, 1.2rem) !important;
}



/* Header */
.header-jumbotron { height: 70vh; min-height:400px }
.header-jumbotron h1 {color: #fff !important; font-weight: 600 !important; position: relative; z-index: 2}
.header-jumbotron h2 {color: #fff !important; text-align: left; position: relative; z-index: 2; line-height: 40px; font-weight: 500 !important;}

body{font-family: "Poppins", sans-serif !important; color: #3E4C66}

h1,h2,h3, h4, h5, h6{color:#281D4E; font-family: "Poppins"; font-weight: 600 !important}

.page-title {
  overflow: hidden;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}

.page-subtitle {
  opacity: 0;
  transform: translateY(20px);
}
/* Centra solo il titolo delle pagine singole dei post del blog */
.single-post .page-title {
    text-align: center;
    width: 100%;
    display: block;
    justify-content: center;
}
.single-post .entry-subtitle {
    text-align: center;
    width: 100%;
    display: block;
}


/* HERO - Contenitore principale */
.header-jumbotron {
    position: relative;
    overflow: hidden;
}
.effect-container {
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    height: auto;
    z-index: 1; /* Sta sotto al titolo */
}

/* Logo nascosto sotto l'effetto */
.logo-svg {
    width: 100vh;
    height: auto;
    position: absolute;
    z-index: 1;
    top: -20px;
    right: 0px;
    filter: brightness(1) contrast(1);
}

.hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at var(--x) var(--y), rgba(40, 29, 78, 0) 20%, rgba(40, 29, 78, 0.95) 50%);
    pointer-events: none; /* Il mouse passa attraverso */
    transition: background 0.1s ease-out;
}



/* NAV MENU TOP*/
#wrapper-navbar{position: fixed;
  z-index: 9999;
  width: 100vw !important; background: transparent !important}
.wp-block-navigation__submenu-icon svg{color:#fff !important}

.offcanvas-body #main-menu{gap:32px;}

/* Rendi il selettore e i suoi elementi della lista a larghezza automatica */

/* Stile base per il link del selettore */
.wpml-ls-legacy-dropdown a span {
  vertical-align: top;
}
.wpml-ls-sidebars-right-top-menu{margin-right:8px; font-size:16px}
.wpml-ls-sidebars-right-top-menu,
.wpml-ls-item-toggle,.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle,
.wpml-ls-sidebars-right-top-menu ul,
.wpml-ls-sidebars-right-top-menu li,
.wpml-ls-sidebars-right-top-menu a {
    height: 100% !important;
    display: flex !important;
    align-items: center;
}


.wpml-ls-sidebars-right-top-menu a {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  outline: none !important;
}

/* Stile per il link al passaggio del mouse */
.wpml-ls-sidebars-right-top-menu a:hover {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
}



.wpml-ls-sidebars-right-top-menu,
.wpml-ls-sidebars-right-top-menu ul,
.wpml-ls-sidebars-right-top-menu li,
.wpml-ls-sidebars-right-top-menu a {
    width: auto !important;
    display: inline-block !important;
}

.right-top-menu {
  width: auto !important;
  flex: 0 0 auto !important;
  display: inline-block !important;
}

.right-top-menu .wp-block-button__link, #main-menu .nav-link{color:white; font-size:16px;font-weight: 500;}
.navbar{padding:16px 0 16px 0}
.dropdown-item, .dropdown-item  a{font-size:16px !important;}
.top-right-button .wp-block-button__link{transition: background-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);border: solid 1px #fff !important;}
.top-right-button .wp-block-button__link:hover{background: #fff !important; color:var(--primary) !important; border-color:  #fff !important;  }
.offcanvas-header {width: 100vw !important}
.offcanvas, .offcanvas{max-width: 100vw !important}
.offcanvas-header .btn-close{display: none}

#main-menu {
  position: relative !important;

}
#main-menu li {
  transition: opacity 0.3s ease;
  opacity: 1;
}

/* Voci non hover diventano opache */
#main-menu li.dim {
  opacity: 0.5;
}

.nav-icon-5 {
  position: absolute; /* Oppure fixed, dipende dal layout */

  z-index: 99999;
}

.nav-icon-5 {
  width: 35px;
  height: 30px;
  margin: 10px;
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.nav-icon-5 span {
  background-color: #fff;
  position: absolute;
  border-radius: 2px;
  transition: .3s cubic-bezier(.8, .5, .2, 1.4);
  width: 100%;
  height: 4px;
  transition-duration: 500ms;
}

.nav-icon-5 span:nth-child(1) {
  top: 0px;
  left: 0px;
}

.nav-icon-5 span:nth-child(2) {
  top: 13px;
  left: 0px;
  opacity: 1;
}

.nav-icon-5 span:nth-child(3) {
  bottom: 0px;
  left: 0px;
}

/* Effetto hover */
.nav-icon-5:not(.open):hover span:nth-child(1) {
  transform: rotate(-3deg) scaleY(1.1);
}

.nav-icon-5:not(.open):hover span:nth-child(2) {
  transform: rotate(3deg) scaleY(1.1);
}

.nav-icon-5:not(.open):hover span:nth-child(3) {
  transform: rotate(-4deg) scaleY(1.1);
}

/* Animazione apertura */
.nav-icon-5.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 13px;
}

.nav-icon-5.open span:nth-child(2) {
  opacity: 0;
}

.nav-icon-5.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 13px;
}

/* Stili per la linea mobile */
.menu-indicator {
  position: absolute;
   bottom: 0;
   left: 0;
   height: 2px;          /* Spessore della linea */
   background-color: #fff; /* Colore della linea, personalizza come preferisci */
   width: 0;
   transition: left 0.3s ease, width 0.3s ease;
   pointer-events: none;
}


/* CARD  NEWS */
/* Stile generale della card */
.custom-card, .splide-card {
    background-color: #f5f5fa; /* Sfondo grigio chiaro */
    border-radius: 8px; /* Bordi arrotondati */
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
border:solid 1px transparent;
}
.custom-card{padding: 20px;}

.custom-card:hover{border:solid 1px var(--primary) !important}

/* Stile dell'immagine */
.card-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Rimuove lo stile di default del link */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Riduce la dimensione del titolo */
.card-content h2 {
    font-size: 24px;
    margin-top: 15px;
        transition: transform 0.2s ease-in-out;
}
.calendar-icon{width: 15px;}


/* Stile base dell'header */
#wrapper-navbar {
    position: fixed;
    top: 0;
    left: 0;
    
       max-width: 100vw !important;
    width: 100%;
    background: rgba(255, 255, 255, 0); /* Inizialmente trasparente */
  transition: clip-path 0.5s ease-in-out, background 0.3s ease-in-out;
    box-shadow: none;
    z-index: 1000;
}


.single img{border-radius: 8px;}

/* Effetto scroll: riduzione header e colore bianco */
#wrapper-navbar.scrolled {
    background: var(--primary) !important; /* Sfondo pieno */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#main-nav {
    max-width: 100vw !important;
 
    margin: 0 auto;
}

/* Torna trasparente quando è in cima */
#wrapper-navbar.top {
    background: rgba(255, 255, 255, 0); /* Ritorna trasparente */
    box-shadow: none;
}

/* Effetto per il logo */
#wrapper-navbar .navbar-brand img {
    transition: all 0.3s ease-in-out;
    transform: translate(0px, -4px);
}



/* Effetto per la navigazione */
#wrapper-navbar .navbar-nav {
    transition: padding 0.3s ease-in-out;
}



/* Effetto solo su desktop */
@media (max-width: 1024px) {

}


/* Home animated gradient effect**/

  #gradient-section {
    background-color: var(--primary);
    background-image:

      radial-gradient(at 88% 79%, #841AB1 0px, transparent 50%),
      radial-gradient(at 13% 9%, #ef3f00 0px, transparent 50%);
    background-size: 200% 200%;
    background-position: 0% 20%; /* Stato iniziale (come 0% nei keyframes) */
    /* Se vuoi puoi aggiungere una transizione, ma non serve con GSAP scrub */
  }


/* ELEMENTOR FIX*/
.swiper, .swiper-wrapper {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.swiper-wrapper {
    transform: translate3d(0px, 0px, 0px) !important; /* Resetta lo spostamento */
}



/* footer */

footer{color:#fff; font-size: 15px; line-height: 26px;}
.copyright{font-size: 14px;}
.copyright-widget p{margin: 0!important}
.copyright-border{border-top: solid 1px #1E143E }
.bord_bot_primary{border-bottom: solid 1px #1E143E }
 footer h5, footer h4, footer h3, footer h2, footer h1{font-weight: 600; color:#fff !important;}
footer ol, footer ul {
  padding-left: 0;
  list-style: none;
}

/* CF 7*/
footer .wpcf7-email{background: #1E143E !important;
  border: solid 1px #1E143E !important;
  color: white !important ;}
footer.wpcf7-list-item-label a{text-decoration: underline !important;}
footer .wpcf7-submit{background: white !important; color:var(--primary) !important; border: solid 1px #fff !important;}
footer .wpcf7-submit:hover{background:var(--secondary)!important; color:#fff !important; border: solid 1px #fff !important;}
footer .wpcf7-email::placeholder{color: white !important;}

.accetp-text{font-size: 14px !important;}

.form-check, .wpcf7-list-item, .wpcf7 .wpcf7-form p{margin: 0 !important; padding: 0px !important; }
.wpcf7-spinner{position: absolute;}

.wpcf7 {
    max-width: 100% !important;
}
.wpcf7 .wpcf7-form label, .wpcf7-not-valid-tip {
    width: 100%;
    font-size: 16px;
}


.footer-cnt h6{color: #fff !important; font-size: 16px !important; }
footer .wpcf7 {max-width: 100% !important;}
footer a{color: #fff !important; text-decoration: none; }
footer a:hover{text-decoration: underline;}


/* Gradients */
.mesh-bg{background-color:#2f2357 ;}


/* Stile della sezione di condivisione */
.post-share {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 2px solid #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-share span {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.share-btn {
    font-size: 20px;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

}

.share-btn i {
    color: white;
}


.share-btn:hover {
    opacity: 0.8;
}



/* media queries */
@media (max-width: 768px) {
  .menu-indicator,  .top-right-button .wp-block-button__link, .cnt-menu-header {
    display: none !important;
  }
.wp-image-628{width: 200px !important;}
.first-footer-widget .wp-block-columns{margin: 0px;}



.elementor-element h1, h1, .fs-1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem) !important; /* 68px */
  line-height: clamp(3rem, 7vw, 6rem) !important; /* Interlinea proporzionata */
}

.elementor-element h2, h2, .fs-2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem) !important; /* 44px su desktop */
  line-height: clamp(2.25rem, 4.5vw, 3.5rem) !important;
}

.elementor-element h3, h3, .fs-3 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important; /* 36px */
  line-height: clamp(2rem, 4vw, 3.2rem) !important;
}

.elementor-element h4, h4, .fs-4 {
  font-size: clamp(1.25rem, 3vw, 2rem) !important; /* 32px */
  line-height: clamp(1.75rem, 3.8vw, 2.8rem) !important;
}

.elementor-element h5, h5, .fs-5 {
  font-size: clamp(1rem, 2.5vw, 1.75rem) !important; /* 28px */
  line-height: clamp(1.5rem, 3.5vw, 2.5rem) !important;
}

.elementor-element h6, h6, .fs-6 {
  font-size: clamp(0.875rem, 2vw, 1.5rem) !important; /* 24px */
  line-height: clamp(1.25rem, 3vw, 2rem) !important;
}



}


.splide-card h5{  font-size: 22px !important; line-height:  32px !important;}