html {
  scroll-behavior: smooth;
}

body {
    font-family:'Inter',sans-serif;
    font-weight:400;
}

section {
  padding: 70px 0;
}

h1 { font-size: clamp(2.35rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.35vw, 3.6rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.175rem); }
h5 { font-size: clamp(1rem, 1.5vw, 1.1rem); }
h6 { font-size: clamp(0.9rem, 1.5vw, 1rem); }
p { font-size: clamp(0.9rem, 1.5vw, 1rem);}
a {
  text-decoration: none;
  color: inherit;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero {
  height: 800px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(10, 10, 221, 0.35), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(35, 85, 247, 0.315), transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(43, 80, 182, 0.521), transparent 40%),
    linear-gradient(
      135deg,
      #050816,
      #0b1026,
      #140b2d,
      #1d103f
    );

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: white;

  padding: 120px 20px;
}
/* NAVBAR */


.top-bar{
    width:100%;
    background:#111827;
    overflow:hidden;
}

.container-fluid{
    background-color: #8b133c;
    border-bottom: 2px solid #ff6600;
    justify-content: center !important;
    min-height: 65px;
    display: flex;
    align-items: center;
}
.custom-navbar {
  display:flex;
  flex-direction:column;
  background: transparent;
  padding: 0;
  z-index: 1000;
  transition: 0.4s ease;
}

.custom-navbar .navbar-brand {
  color: white;
  font-size: 1.5rem;
   
  left: 0;
  padding:25px;
}

.custom-navbar .nav-link {
  color: rgba(255,255,255);
 
  margin-left: 20px;
  transition: 0.3s;
}

.custom-navbar .nav-link:hover {
  color: white;
}

.custom-navbar.scrolled .navbar-brand,
.custom-navbar.scrolled .navbar-collapse {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

/* CTA sempre visibile */

.custom-navbar .navbar-brand,
.custom-navbar .navbar-collapse {
  transition: 0.4s ease;
}

/* bottone */

.custom-navbar.scrolled .navbar-cta {
  position: fixed;
  top: 20px;
  right: 60px;
  z-index: 2000;
}
.nav-item:hover{
  transform: scale(1.1);
}
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.nav-center {
  gap: 35px;
}

.about-text{
  
  line-height: 1.5;
}

.about-title{
    margin-bottom: 15px;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #111827;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
    .numeri {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #f97316;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
    position: relative;
  
}

.numeri::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 5px;
    background: #f97316;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease;
}

.numeri:hover::after {
    transform: scaleX(1);
}
.virgolette{
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: #f97316;
    margin-bottom: 0px;
  
     line-height: 1;
}
    .footer-top{
      margin-bottom:30px;
    }
    .f-logo{
      font-family:'Syne',sans-serif;
      font-weight:800;
      font-size:1.2rem;
      color:#fff;
      margin-bottom:10px;
      text-shadow:0px 0px 4px #572b0c;
    }
    .f-logo span{
      color:#f97316
    }
    .f-tagline{
      font-size:0.82rem;
      color:rgba(255,255,255,0.65);
      max-width:220px;
      line-height:1.6
    }
    .f-col h5{
      font-size: 0.9rem;
      margin-bottom: 14px;
    
    }
    .f-col a,h6{
      display:block;
      font-size:0.82rem;
      color:rgba(255,255,255,0.65);
      text-decoration:none;
      margin-bottom:9px;
      transition:color .2s
    }
    .f-col a:hover{
      color:#fff
    }

 /*FOOTER*/
.footer{
  background: #8b133c;
  color: rgba(255,255,255,0.85);
  padding: 30px 30px 5px 30px;
  border-top: 1px solid rgba(39, 2, 172, 0.397);
}

.footer h5 {
  color: white;
  font-weight: 700;
}

.footer-text {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  justify-content: end;
  gap: 25px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  transition: 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  opacity: 0.55;
  font-size: 0.82rem;
}

/* MOBILE */

   @media (max-width: 991px) {

    .section-divider {
      margin: 10px auto !important;
    }
    .custom-navbar {
    background: #0b164beb;
    backdrop-filter: blur(12px);
    
  }

  .navbar-collapse {
    position: fixed;
    left: -280px;
    width: 280px;
    height: 100vh;

    margin-top: 0;
    padding: 24px 24px 24px 24px;

    background: #8b133c;
    border-radius: 0;
    box-shadow: -20px 0 50px rgba(0,0,0,0.35);

    display: block !important;
    transition: left 0.35s ease;
    z-index: 2000;
  }

  .navbar-collapse.show {
    left: 0;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 10px;
  }

  .custom-navbar .nav-link {
    color: white !important;
    font-weight: 700;
    padding: 14px 16px;
    border-radius: 12px;
    margin-left: 0;
  }

  .custom-navbar .nav-link:hover {
    background: #fff7ed;
    color: #f97316 !important;
  }

  .navbar-toggler {
    position: relative;
    z-index: 3000;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgb(255 255 255 / 32%);
  }

  .navbar-toggler-icon {
    filter: brightness(0) invert(1);
  }

}

@media (max-width: 768px) {
    .steps-wrap {
        grid-template-columns: 1fr !important;
    }

    .steps-wrap::before {
        display: none;
    }
    
    .step{
      margin-top: 20px;
    }
    .footer-toggle {
        width: 100%;
        background: transparent;
        border: 0;
        color: inherit;
        font-weight: 600;
        padding: 14px 0;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,0.2);
      }

/* ruota la freccetta quando apriamo menu footer*/
.footer-toggle[aria-expanded="true"] span {
    transform: rotate(-90deg);
}

.footer-toggle span {
    transition: transform .3s ease;
  }


  .demo-form-wrapper {
    padding: 16px;
  }

  .demo-form-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }

}

/* formattazione bottoni*/
.btn-demo{
  font-weight: 600;
  box-shadow: 0px 1px 9px 0px #281202a1;
  background-color: #ff6600;
  color: white;
}
.btn-demo:hover{
  background-color: #f97316;
  color: white;
}
.btn-info{
   box-shadow: 0px 1px 9px 0px #281202a1;
  background-color: #009eff;
  color: white;
}
.btn-info:hover{
   box-shadow: 0px 1px 9px 0px #281202a1;
  color: white;
}

.feat-pill {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    color: #f97316;
    background: #fff7ed;
    padding: 3px 9px;
    border-radius: 4px;
    text-align: center;
}

.demo-form-wrapper{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.7);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.demo-form-wrapper.active{
    display:flex;
}

   
.demo-form-content{
     width: min(700px, 90vw);
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 30px;
    border-radius: 2px;
    position: relative;
}

.close-btn{
    color: #ff6500;
    background: transparent;
    border: none;
    position:absolute;
    top:2px;
    right:2px;
}
/* Lista vantaggi scorrevole */
/*scorri lista*/
@keyframes tickerMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.lista-vantaggi {
    font-size: 1rem;
    border-top: 2px solid #8b133c;
    border-bottom: 2px solid #8b133c;
    background: #f8f9fa;
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.scorri-lista {
  display: inline-flex;
  animation: tickerMove 80s linear infinite;
}
    
.ticker-item {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#8b133c;
  padding:0 32px;
   }
.ticker-item span {
  color:rgb(39, 51, 114);
    }

 /* STEPS */
    .steps-wrap{
      display:grid;
      grid-template-columns:repeat(3,1fr);
      gap:0;margin-top:56px;position:relative
    }
    .steps-wrap::before{
      content:'';
      position:absolute;
      top:32px;
      left:calc(16.6% + 16px);
      right:calc(16.6% + 16px);
      height:1.5px;
      background:linear-gradient(90deg,#f97316,#fed7aa,#f97316);
      z-index:0
    }
    .step{
      display:flex;
      flex-direction:column;
      align-items:center;
      padding:0 24px;
      position:relative;
      z-index:1
    }
    .step-num{
      width:64px;
      height:64px;
      border-radius:50%;
      background:#f97316;
      color:#fff;
      font-family:'Syne',sans-serif;
      font-weight:800;
      font-size:1.4rem;
      display:flex;
      align-items:center;
      justify-content:center;
      margin-bottom:24px;
      position:relative
    }
    .step-num::after{
      content:'';
      position:absolute;
      inset:-5px;
      border-radius:50%;
      border:1.5px solid rgba(249,115,22,0.25);
      animation:stepRing 2s ease-in-out infinite
    }
    .step:nth-child(2) .step-num::after{
      animation-delay:.4s
    }
    .step:nth-child(3) .step-num::after{
      animation-delay:.8s
    }
    @keyframes stepRing{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.15);opacity:0.3}}
    .step-title{
      font-family:'Syne',sans-serif;
      font-weight:700;
      font-size:1.05rem;
      color:#111827;
      margin-bottom:10px
    }
    .step-desc{
      text-align: center;
      flex: 1;
      color:#797c82;
      line-height:1.55;
      max-width:220px
    }
    
#storyCarousel .carousel-inner {
  overflow: hidden;
}
    /* Section */
   
    /* MY-BRAIN — */
   
    /*  CASE STUDY  */
    .case-section{
      padding:70px 0px;
    }

    .check-panel {
    padding: 34px;
    border: 1px solid rgba(28, 91, 173, .18);
    border-radius: 18px;
    background: linear-gradient(145deg, #f8fbff, #fff);
    box-shadow: 0 18px 55px rgba(28, 91, 173, .09);
}
    .check-list{
      display:flex;
      flex-direction:column;
      gap:12px
    }
    .check-item{
      display:flex;
     
      gap:11px;
      font-size:0.9rem; 
      color: #797c82;}
    .check-dot{  
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f97316;
    border: 1px solid #f97316;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    flex-shrink: 0;
    }
    
    .carousel-item p{
      color: white;
    }

    .card{
      color: aliceblue;
      background-color: transparent;
    }

    /* Carosello */

#loghiCarousel .carousel-item {
    height: 100px;
}
#loghiCarousel .carousel-inner {
    border-bottom: 5px solid #f97316;
    border-top: 5px solid #f97316;
}
#loghiCarousel .row {
    height: 100%;
    display: flex;
    align-items: center;
}

#loghiCarousel .col-md-3 {
    display: flex;
    justify-content: center;
    align-items: center;
}

#loghiCarousel img {
    max-height: 55px;
    max-width: 100%;
    object-fit: contain;
}

p {
  color:#797c82;
}

.section-divider{
    width: 15px;
    height: 8px;
    background: #f97416;
    border-radius: 100px;
    margin: 50px auto;
   
}

#storyCarousel .carousel-indicators button {
    width: 15px;
    height: 8px;
    background: #d1d5db;
    border: none;
    border-radius: 100px;
}

#storyCarousel .carousel-indicators .active {
    background: #009eff;
}

#storyCarousel .carousel-indicators {
    position: static;
    margin-top: 30px;
    margin-bottom: 0;
}

#storyCarousel .carousel-item {
min-height: 260px;
transition: opacity 1.4s ease-in-out !important;
}

#storyCarousel .carousel-item h2,
#storyCarousel .carousel-item h4 {
max-width: 1100px;
margin-left: auto;
margin-right: auto;
}


.lang-flag {
    color:white;
}


.footer-certifications {
    margin-top: 20px;
}

.footer-certifications img {
    max-width: 80px;
    height: auto;
}

.agid-logo {
    margin-bottom: 10px;
}

.agid-logo img {
    max-width: 120px;
    height: auto;
}

.iso-logos {
    display: flex;
    gap: 10px;
    align-items: center;
}

.iso-logos img {
    height: 40px;
    width: auto;
}

@supports (-moz-appearance: none) {

    body {
        font-family: 'Inter', Arial, sans-serif !important;
    }

    #storyCarousel .carousel-item h2,
    #storyCarousel .carousel-item h3,
    #storyCarousel .carousel-item h4,
    .flip-card-front h3 {
        font-family: 'Inter', Arial, sans-serif !important;
        font-weight: 700 !important;
    }

    #storyCarousel .carousel-item h4 {
        font-weight: 400 !important;
    }
}




.fixed-card {
    padding: 30px 26px;
    text-align: left;
    align-content: initial;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 12px 35px rgba(28, 91, 173, .06);
}

.card-funzionalita {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    text-align: left;
    align-content: center;
    background: #ffffff;
    border: 2px solid #f97316;
    border-radius: 12px;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .35s ease, color .35s ease;
}
.card-funzionalita::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -75%;
    width: 45%;
    height: 140%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .12) 25%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, .12) 75%, transparent 100%);
    transform: skewX(-33deg);
    transition: left .9s cubic-bezier(.22, 1, .36, 1);
    z-index: 1;
    pointer-events: none;
}

.card-funzionalita:hover {
    transform: translateY(-8px);
    border-color: #ff6600;
    box-shadow: 0 20px 45px rgba(249, 115, 22, .22), 0 8px 18px rgba(255, 102, 0, .14);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 14px;
    background: rgba(0, 158, 255, .1);
    font-size: 1.65rem;
}

.card-funzionalita .feature-icon {
    background: rgba(249, 115, 22, .12);
    color: #f97316;
    transition: background-color .35s ease, color .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease;
}

.card-funzionalita:hover .feature-icon {
    background: #ffffff;
    color: #f97316;
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 10px 25px rgba(87, 43, 12, .18);
}

.card-funzionalita::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff6600 0%, #f97316 55%, #ff9c57 100%);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
    z-index: 0;
    pointer-events: none;
}
.card-funzionalita:hover::after {
    transform: scaleX(1);
}

.card-funzionalita:hover::before {
    left: 135%;
}

.card-funzionalita:hover h4, .card-funzionalita:hover p {
    color: #ffffff;
}

.card-funzionalita h4 {
    color: #f97316;
    font-weight: 900;
    transition: color .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.card-funzionalita > * {
    position: relative;
    z-index: 2;
}

.lang-selector {
    color: #fff;
    background: transparent;
    border: 0;
    font-weight: 500;
    padding: 6px 8px;
}

.lang-selector:hover,
.lang-selector:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-selector::after {
    margin-left: 6px;
}

.dropdown-menu {
    min-width: 40px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 8px 14px;
}
				
			.btn-podcast{
				     border: 1px solid #ffffff45;
     POSITION: relative; 
    TOP: 75%; 
    box-shadow: inset 1px 1px 17px 1px #e5c4fd;
    BACKGROUND: #1d2c6e; 
    COLOR: WHITE;}
	
	.btn-podcast:hover{
	box-shadow: inset 1px 1px 17px 7px #e5c4fd;
    color: var(--bs-btn-hover-color);
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
	
	}

@media (max-width: 767px) {
  .btn-podcast {
    margin-top: 16px;
  }
}