@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

/* Reset */
body, html{overflow-x: hidden; scroll-behavior: smooth; font-family: "Comfortaa", serif;
 line-height: 1.2; font-size: 16px; color: #000; box-sizing: border-box;margin: 0;padding: 0;}*,*:before,*:after{ box-sizing: border-box; }h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0 0 1rem 0;padding: 0;}ol,ul{padding-left: 20px;line-height: 1.5;}img{height: auto;}h1{font-size: 4rem;} h2{font-size: 3rem;} h3{font-size: 2rem;} h4{font-size: 1rem;} h5{font-size: 0.8rem;} h6{font-size: 0.6rem;}a{text-decoration:none}

[id]{ scroll-margin-top:200px; }

/* ! Grid System */
.grid { margin: 0 auto; padding: 0 15px; display: flex; flex-flow: row; flex-wrap: wrap; z-index: 2;}
.grid-swiper { margin: 0 auto; padding: 0 15px; width: 100%; display: flex; flex-flow: row; flex-wrap: wrap;}
.grid--center{justify-content: center;}
.col{ flex: 1;}

.wrapper{width: 100%;padding: 0 3%;overflow: hidden; position: relative;}

/* Stile di base: wrapper nascosto e spostato in basso */
.wrapper {
  opacity: 0;                   /* completamente trasparente */
  transform: translateY(20px);  /* spostato di 20px in basso */
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Stile quando viene aggiunta la classe .load */
.wrapper.load {
  opacity: 1;                   /* completamente visibile */
  transform: translateY(0);     /* posizione iniziale */
}

/* Pulsanti fitro */
.ufg-filter-container .filter-group button {
    border-radius: 50px;
}

.fg-load-more button {
    background-color: #75a1cc !important;
    border-radius: 50px;
}


[class*='col-'] { position: relative;padding: 0 15px;}

.col-20{ width: 20%; }
.col-25{ width: 25%; }
.col-30{ width: 30%; }
.col-33{ width: 33.33%; }
.col-40{ width: 40%; }
.col-50{ width: 50%; }
.col-60{ width: 60%; }
.col-70{ width: 70%; }
.col-80{ width: 80%; }
.col-85{ width: 85%; }
.col-90{ width: 90%; }
.col-100{ width: 100%; }

@media (max-width: 991px) {
  .tab-20 { width: 20%; }
  .tab-25 { width: 25%; }
  .tab-33 { width: 33.33%; }
  .tab-50 { width: 50%; }
  .tab-100 { width: 100%; }
}

@media (max-width: 768px) {
  [class*='col-'] { width: 100%;}
  .sma-20 { width: 20%; }
  .sma-25 { width: 25%; }
  .sma-33 { width: 33.33%; }
  .sma-50 { width: 50%; }
  .sma-100 { width: 100%; }
}

.alignwide {
  margin: auto;
  max-width: 1200px;
  width: 100%;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  position: relative;
}


/* ! Helpers  */
.mt-0{margin-top: 0 }
.mt-1{margin-top: 10px}
.mt-2{margin-top: 20px}
.mt-3{margin-top: 40px}
.mt-4{margin-top: 100px }
.mt-5{margin-top: 200px }

.mb-0{margin-bottom: 0}
.mb-1{margin-bottom: 10px}
.mb-2{margin-bottom: 20px}
.mb-3{margin-bottom: 40px}
.mb-4{margin-bottom: 100px}

.p-0{padding: 0}
.p-1{padding: 10px}
.p-2{padding: 20px}
.p-3{padding: 40px}
.p-4{padding: 100px}

.pt-1{padding-top: 10px;}
.pt-3{padding-top: 20px;}
.pt-3{padding-top: 40px;}
.pt-4{padding-top: 15vh;}

.pb-1{padding-bottom: 10px;}
.pb-2{padding-bottom: 20px;}
.pb-3{padding-bottom: 40px;}
.pb-4{padding-bottom: 15vh;}


.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.img-res { width: 100%; height: auto; margin-bottom: 20px;vertical-align: middle;}
.img-round { border-radius:50%; }
.z-index {position: relative; z-index: 999;}

.wp-social-link a {
	background: #3f76ac;
    border-radius: 50%;
}

h1 {
    color: #fff;
    opacity: 1;
    font-size: 60px;
    font-weight: 500;
    letter-spacing: -0.025em;
    transition: 0.5s;
  }

h2 {
    font-size: 30px;
}

h3 {
    font-size: 20px;
}

p {
    font-size: 18px;
}

/* Menu */
:root { --menu-bg: #F4FBFF; --menu-color: #303FC8; }

main {position: relative; max-width: 1320px; margin: auto;}

nav {
	color: #303FC8;
}

.custom-logo {width: 120px;}

.nav-logo          { font-size: 30px; color: #fff; width: 120px; }
.nav-logo.scrolled {
    filter: invert(1) grayscale(100%) contrast(100%);
    width: 60px;
}

/* ! Navigation menu  */

.sticky-anchor-menu {
  position: -webkit-sticky; /* supporto per Safari */
  position: sticky;
  top: 0;         /* attacca il menu al top della pagina */
  z-index: 9999;  /* assicura che rimanga sopra altri elementi */
  width: 100%;    /* garantisce che occupi tutta la larghezza disponibile */
  background: #fff; /* esempio: sfondo bianco per evidenziare il menu */
}




header {
      position: fixed;
      width: 100%;
      top: 0;
      right: 0;
      z-index: 1000;
      transition: background-color 0.3s ease; /* per un effetto di transizione morbida */
    }
    /* Stile dell’header di base */
    header {
      background: transparent;
    }
    /* Stile dell’header quando scorre oltre una certa soglia */
    header.scrolled {
      background-color: #fff; /* il colore di sfondo che desideri */
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* opzionale, aggiunge un’ombra sotto l’header */
    }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  transition: all 0.5s ease;
  width: 100%;
  margin: auto;
}
.navbar__menu {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
@media screen and (max-width: 1024px) {
  .navbar__menu {
    position: absolute;
	background: white;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    padding: 2rem 1rem;
    transition: all 0.5s ease;
  }
  .navbar__menu.right-open {
    right: 0;
  }
}
.navbar__list {
  display: flex;
  justify-content: right;
  flex-grow: 1;
  gap: 2rem;
  list-style-type: none;
  margin: 0;
}
@media screen and (max-width: 1024px) {
  .navbar__list {
    flex-direction: column;
    flex-grow: 0;
  }
}

.navbar__list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: all 0.5s ease;
  color: #383d5c;
  
  /* Aggiunto per l'elemento pseudo */
  position: relative;
}

.navbar__list li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px; /* spessore della linea */
  background-color: white;
  transition: width 0.3s ease; /* durata e tipo di transizione */
}

/* Effetto in hover: la larghezza passa al 100% */
.navbar__list li a:hover::after {
  width: 100%;
}

header.scrolled .navbar__list li a {
  color: black;
}


.navbar__list li .arrow {
  transition: 0.3s ease;
  mix-blend-mode: difference;
}
.navbar__list li .arrow.up {
  transform: rotate(180deg);
}
.navbar__list-drop {
  display: inline-block;
  position: relative;
}
.navbar__list-drop-menu {
  display: none;
  position: absolute;
  width: max-content;
  margin-top: 1rem;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.122);
  z-index: 999;
}

@media screen and (max-width: 1024px) {
  .navbar__list-drop-menu {
    position: inherit;
    background-color: transparent;
    box-shadow: none;
    padding: 0.5rem 1rem;
  }
}

.navbar__list-drop-menu li a {color: black;}

.navbar__list-drop-menu.open {
  display: flex;
}
.navbar__list-drop-menu.features {
  right: 0;
}
.navbar__list-drop-menu.company {
  left: 0;
  width: max-content;
}
.navbar__buttons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style-type: none;
}
@media screen and (max-width: 1024px) {
  .navbar__buttons {
    width: 100%;
    flex-direction: column;
  }
}
.navbar__buttons a {
    color: black;
    font-weight: 500;
    transition: 0.3s ease;
    list-style-type: none;
    background: white;
    padding: 10px 15px;
}
.navbar__buttons a:hover {
  color: var(--theme-dark-color);
}
.navbar__buttons-register, .navbar__buttons-login {
  width: 100%;
  font-weight: 500;
  color: #073ee3;
  padding: 0.8rem 1.5rem;
  border: 2px #073ee3;
  border-radius: 1rem;
  transition: 0.3s ease;
}
.navbar__buttons-register:hover {
  border: 2px solid var(--theme-dark-color);
  color: var(--theme-dark-color);
}
.navbar .menu {
  display: none;
  float: left;
  transition: all 275ms ease;
  cursor: pointer;
}
@media screen and (max-width: 1024px) {
  .navbar .menu {
    display: block;
  }
}
.navbar .menu span {
  display: block;
  width: 22px;
  height: 4px;
  background: #000000;
  margin-bottom: 2px;
  border-radius: 1px;
  transition: all 275ms ease;
}
.navbar .menu.active {
  transform: rotate(-90deg);
}
.navbar .menu.active .bar1 {
  transform: rotate(0deg) translateY(6px);
}
.navbar .menu.active .bar2 {
  opacity: 0;
}
.navbar .menu.active .bar3 {
  transform: rotate(-90deg) translateX(5px);
}

.navbar-widget {display: none; width: 100%}

/* Navbar inizialmente trasparente */
#navbar {
  background-color: transparent;
  transition: background-color 0.3s ease; /* transizione fluida */
}

/* Navbar dopo lo scroll: sfondo bianco */
#navbar.scrolled {
  background-color: #fff; 
}

 /* Menu Button 5 */
        .menu-btn-5 {
            height: 32px;
            width: 40px;
            cursor: pointer;
        }
        
        .menu-btn-5 span:nth-child(1),
        .menu-btn-5 span:nth-child(1)::before,
        .menu-btn-5 span:nth-child(1)::after {
            background: #000;
            content: '';
            position: absolute;
            width: 40px;
            height: 2px;         
            margin-top: 13px; 

            -webkit-transition: .3s ease-in-out;
            -moz-transition: .3s ease-in-out;
            -o-transition: .3s ease-in-out;
            transition: .3s ease-in-out;
        }

        .menu-btn-5 span:nth-child(1)::before {
            margin-top:-12px;
            
            -webkit-transition: .3s ease-in-out .3s;
            -moz-transition: .3s ease-in-out .3s;
            -o-transition: .3s ease-in-out .3s;
            transition: .3s ease-in-out .3s;
        }

        .menu-btn-5 span:nth-child(1)::after {
            margin-top:12px;
            
            -webkit-transition: .3s ease-in-out .3s;
            -moz-transition: .3s ease-in-out .3s;
            -o-transition: .3s ease-in-out .3s;
            transition: .3s ease-in-out .3s;
        }

        .menu-btn-5 span:nth-child(2) {
            background: #000;
            content: '';
            position: absolute;
            width: 0px;
            height: 2px;         
            margin-top: 13px;
            
            -webkit-transform: rotate(-45deg);
            -moz-transform: rotate(-45deg);
            -o-transform: rotate(-45deg);
            transform: rotate(-45deg);

            -webkit-transition: .3s ease-in-out;
            -moz-transition: .3s ease-in-out;
            -o-transition: .3s ease-in-out;
            transition: .3s ease-in-out;
        }

        .menu-btn-5.active span:nth-child(1)::before,
        .menu-btn-5.active span:nth-child(1)::after {
            margin-top:0;
        }

        .menu-btn-5.active span:nth-child(1) {
            -webkit-transition: .5s ease-in-out .6s;
            -moz-transition: .5s ease-in-out .6s;
            -o-transition: .5s ease-in-out .6s;
            transition: .5s ease-in-out .5s;

            -webkit-transform:rotate(45deg);
            -moz-transform:rotate(45deg);
            -o-transform:rotate(45deg);
            transform:rotate(45deg);
        }

        .menu-btn-5.active span:nth-child(2) {
            width: 40px;
            
            -webkit-transition: .3s ease-in-out .8s;
            -moz-transition: .3s ease-in-out .8s;
            -o-transition: .3s ease-in-out .8s;
            transition: .3s ease-in-out .8s;
        }


/* Pseudoelemento per la “linea” animata */
.header__menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px; /* spessore della linea */
  background-color: white;
  transition: width 0.3s ease; /* durata e tipo di transizione */
}

/* Effetto in hover: la larghezza passa al 100% */
.header__menu li a:hover::after {
  width: 100%;
}


@media (max-width: 768px) {
  .header__menu{   
    position: absolute; top:85px; right:0; background-color: white; width: 100%; height: 100vh;  
    overflow: hidden;transition: all 0.5s cubic-bezier(.215, .61, .355, 1); transform: translateX(101%);
  }

  .header__menu li{width: 100%;}
  .menu-open .header__menu{transform: translateX(0%);}

  .icon-hamburger{height: 50px;width: 40px;margin-left: 20px;padding-top: 5px;}
  .icon-hamburger span{height: 2px; width: 30px;background: var(--menu-color);position: relative;display: block;margin-top: 11px;transition: all 0.2s cubic-bezier(.215, .61, .355, 1);}
  
  .menu-open .icon-hamburger span:nth-child(1){transform: rotate(45deg) translateY(9px);}
  .menu-open .icon-hamburger span:nth-child(2){transform: rotate(-45deg) translateY(-9px);}

  .header__quick{display: flex; justify-content: flex-end; width: 50%;}

}


/* ! Hero section  */

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

nav a {
    color: #fff;
    font-size: 22px;
    text-align: left;
    font-weight: lighter;
}


.nav-items {
  display: block;
  gap: 2em;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: 3em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

footer p {
  color: #fff;
  font-size: 15px;
  font-weight: lighter;
}

.slider-counter {
  display: flex;
}

.slider-counter p,
.slider-counter > div {
  width: 24px;
  display: flex;
  justify-content: center;
}

.slider-counter p {
  opacity: 0.35;
}

.count {
  position: relative;
  height: 18px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.count p {
  position: absolute;
  transform: translateY(0px);
  font-size: 16px;
  line-height: 1;
  will-change: transform;
  opacity: 1;
}

.slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  will-change: clip-path;
}

.slide-bg-img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-color: rgba(0, 0, 0, 0.125);
}

.slide-main-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  height: 50%;
  z-index: 2;
}

.slide-main-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  will-change: clip-path;
}

.slide-copy {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  color: #fff;
  z-index: 2;
}

.slider-content {
	position: absolute;
	bottom: 20%;
	left: 25px;
	width: 50%;
  	padding: 3em;
	z-index: 999;
}

.slider-content h1 {color: white;}

.slider-content h2 {color: white; font-weight: 400;}

@media (max-width: 900px) {
  .slide-main-img {
    width: 75%;
  }

  .slide-copy {
    top: 60%;
    left: 60%;
  }
}

.fade-in {
  opacity: 0; /* Nascondiamo inizialmente */
  transform: translateY(50px);
}

/* Hero single */

.hero-single {
	display: flex;
	width: 100%;
	height: 50vh;
	align-items: center;
	justify-content: center;
	background: #75a1cc;
}

.hero-single h1 {
	color: white;
	font-size: 3rem;
}

.link-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
    text-decoration: none;
    color: #75a1cc;
    width: 100%;
    border-bottom: 1px solid #75a1cc;
    padding-bottom: 25px;
}

.link-back a:hover {
    text-decoration: underline;
}

.icon-back {
    flex-shrink: 0;    /* l’icona non si riduce mai */
}


.container-single {
	max-width: 1280px;
	margin: -50px auto 0 auto;
	padding: 25px;
	background: white;
	border-radius: 20px;
}

/* INDICE SCRITTI */

.scritti-elenco h2 {color: #75a1cc; margin-top: 80px;}

.scritti-toc {
	margin-bottom: 50px;
    border-bottom: 1px solid #75a1cc;
}

.scritti-estratto {padding-bottom: 30px;}

/* TOC in due colonne */
    .scritti-toc ul {
        list-style: none;
        padding-left: 0;
        column-count: 2;       /* due colonne */
        column-gap: 2rem;      /* spazio tra le colonne */
    }
    .scritti-toc li {
        margin: 1em 0;
        break-inside: avoid;   /* evita la divisione dei <li> tra colonne */
		color: red;
    }

.scritti-toc li a {
		color: #75a1cc;
		font-size: 15px;
    }

.scritti-toc li a:hover {
		color: #000;
		font-size: 15px;
    }


    /* Mobile: torna a una colonna */
    @media (max-width: 600px) {
        .scritti-toc ul { column-count: 1; }
    }

    .scritti-estratto p:last-child { margin-bottom: 0; }
    .scritti-more { text-decoration: underline; color: #75a1cc;}

/* Stile del pulsante "Return to Top" */
#topBtn {
    display: none; /* Il pulsante è nascosto inizialmente */
    position: fixed; /* Posizionato fisso in basso a destra */
    bottom: 60px;
    right: 20px;
    z-index: 99; /* Assicura che il pulsante si trovi sopra gli altri elementi */
    background-color: #3f76ac; /* Colore di sfondo */
    color: white; /* Colore del testo */
    border: none; /* Nessun bordo */
    padding: 10px;
    border-radius: 10px; /* Angoli arrotondati */
    cursor: pointer; /* Cambio del cursore al passaggio del mouse */
    font-size: 18px; /* Dimensione del testo */
}

#topBtn:hover {
    background-color: #555; /* Cambia il colore di sfondo al passaggio del mouse */
}

/* Stile dell'icona Font Awesome */
#topBtn i {
    font-size: 18px; /* Dimensione dell'icona */
}





/* Desktop */
@media only screen and (min-width: 992px) {
  /* Inserisci qui le tue regole CSS per desktop */
	
	.demo {display: none;}
	
}

/* Tablet in modalità landscape */
@media only screen and (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
  /* Inserisci qui le tue regole CSS per tablet in modalità landscape */
	
	.container {padding: 0 15px;}

}

/* Tablet in modalità portrait */
@media only screen and (min-width: 768px) and (max-width: 991px) and (orientation: portrait) {
  /* Inserisci qui le tue regole CSS per tablet in modalità portrait */
	
	.container {padding: 0 15px;}
}

/* Smartphone in modalità landscape */
@media only screen and (max-width: 767px) and (orientation: landscape) {
  /* Inserisci qui le tue regole CSS per smartphone in modalità landscape */
	
		.container {padding: 0 15px;}

}

/* Smartphone in modalità portrait */
@media only screen and (max-width: 767px) and (orientation: portrait) {
  /* Inserisci qui le tue regole CSS per smartphone in modalità portrait */
	
	.container {padding: 0 15px;}

	
}
