/********** Template CSS **********/
@import url("fonts.css");

:root {
    --primary: #348E38;
    --secondary: #525368;
    --light: #E8F5E9;
    --dark: #0F4229;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

h1,
.h1,
h2,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
.h3,
h4,
.h4,
.fw-medium {
    font-weight: 600 !important;
}

h5,
.h5,
h6,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 80px
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 24px;
    font-weight: 500;
    outline: none;
    background-color: #00000000;
    cursor: pointer;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}
.nav-link:hover{
    background-color: #000000b4;
    transition: .5s;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
.nav-link:hover h2{
    color: white;
    transition: .5s;
}
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 66, 41, .6);
    z-index: 1;
}
.carousel-caption:hover{
    background: rgb(0 0 0 / 60%);
    transition: .5s;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-inner{
    max-height: 1000px !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 3rem;
    background-color: var(--primary);
    border: 10px solid var(--primary);
}

#header-carousel .carousel-item {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 800px;
    overflow: hidden;
}

#header-carousel .carousel-item > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#header-carousel p{
    font-family: "Satoshi-bold", sans-serif !important;
    letter-spacing: -1.5px !important;
    font-weight: bold;
}

.page-header {
    background: linear-gradient(rgba(15, 66, 41, .6), rgba(15, 66, 41, .6)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** Top Feature ***/
@media (min-width: 991.98px) {
    .top-feature {
        position: relative;
        margin-top: -80px;
        z-index: 1;
    }
}


/*** Facts & Quote ***/
.facts,
.quote {
    background: rgba(15, 66, 41, .6);
}


/*** Service ***/
.service-item {
    position: relative;
    text-align: center;
}

.service-item .service-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
}

.service-item .service-img img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    object-fit: cover;
    transform: scale(1.2);
    transition: .3s;
    z-index: -1;
}

.service-item:hover .service-img img {
    transform: scale(1);
}

.service-item .service-text {
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .3s;
}

.service-item:hover .service-text {
    background: rgba(15, 66, 41, .6);
}

.service-item .service-text h4,
.service-item .service-text p {
    transition: .3;
}

.service-item:hover .service-text h4 {
    color: #FFFFFF;
}

.service-item:hover .service-text p {
    color: var(--light);
}

.service-item .service-text .btn-square {
    width: 100px;
    height: 100px;
    background: transparent;
    transition: .5s;
}

.service-item:hover .service-text .btn-square {
    background: var(--light);
}

.service-item .service-text .btn {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    background: var(--light);
    white-space: nowrap;
    overflow: hidden;
    transition: .3s;
}

.service-item:hover .service-text .btn {
    width: 112px;
}


/*** Project Portfolio ***/
#portfolio-flters {
    display: inline-block;
    background: var(--light);
    padding: 10px 15px;
}

#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--dark);
    border-color: var(--dark);
}

.portfolio-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-inner::before,
.portfolio-inner::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(15, 66, 41, .6);
    transition: .5s;
}

.portfolio-inner::after {
    left: auto;
    right: 0;
}

.portfolio-inner:hover::before,
.portfolio-inner:hover::after {
    width: 50%;
}

.portfolio-inner .portfolio-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.portfolio-inner:hover .portfolio-text {
    transition-delay: .3s;
    opacity: 1;
}

.portfolio-inner .portfolio-text .btn {
    background: var(--light);
    color: var(--primary);
}

.portfolio-inner .portfolio-text .btn:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.team-item .team-text {
    margin-left: 20px;
    position: absolute;
    width: calc(100% - 45px);
    left: -100%;
    bottom: 45px;
    padding: 1.5rem;
    background: #ffffffd1;
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: .5s;
}

.img-fluid{
    border-radius:20px;
}

.team-item:hover .team-text {
    left: 0;
    opacity: 1;
}

.team-item:hover .etichette_soci {
    right: 30px;
    opacity: 1;
}
.team-item:hover .etichette_soci.presidente {
    left: 30px !important;
}

.team-item .team-social .btn {
    background: var(--light);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-img .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
    z-index: 3;
    opacity: 0;
}

.team-item:hover .team-img .team-social {
    transition-delay: .3s;
    opacity: 1;
}


/*** Testimonial ***/

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--light);
    border-radius: 4px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    color: var(--light);
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: var(--light);
    background: #072A19;
}

.copyright a {
    color: #FFFFFF;
}

.copyright a:hover {
    color: var(--primary);
}
.tag_cloud{
    background: linear-gradient(0deg,rgb(14,75,131) 0%,rgb(34,42,63) 50%,rgb(2,0,36) 100%);
    color: white;
    border-radius: 20px;
    margin-left: 20px;
    margin-right: 20px;
}
.tagcloud--item{
    cursor: pointer;
    font-size: x-large;
    padding: 5px;
}
.tagcloud--item:hover{
    background-color: #c9c9c9;
    border: 1px solid #333;
    border-radius: 2px;
}
.tag_cloud h1{
    position: relative;
    margin-right: 20px;
    float: right;
    color: white;
}
#chartdiv {
  position: relative;
    top: -500px;
    float: right;
    width: 100%;
    height: 500px;
    max-width: 30%;
}
li.nav-item{
    margin: 10px 20px;
}
div.servizi, div.inner_description{
    min-height: 550px;
}
li.nav-item:has(button.active), div.servizi{
    background-image: url(/images/IMG-9276.jpg);
    border-radius: 20px;
    margin: 10px 20px;
    background-repeat: no-repeat;
  }
  .servizi.grandi_imprese{
    background-image: url(/images/pexels-pixabay-51947.jpg);
  }

  .servizi.enti_pubblici{
    background-image: url(/images/pexels-photo-990016.jpg);
  }

  .servizi.accademia{
    background-image: url(/images/pexels-tom-fisk-2278543.jpg);
  }

  button.nav-link > h2{
    font-family: "Satoshi-bold", sans-serif;
    letter-spacing: -1.5px;
  }
  button.nav-link.active > h2{
    color: white;
  }
  .nav-link:hover,
  div.inner_description{
    background-color: #00000099;
  }
div.inner_description:hover {
    background-color: #000000d6;
    transition: .5s;
}
  div.inner_description{
    padding: 20px;
    margin: -8px -8px;
    border-radius: 20px 0px 0px 20px;
  }
  @media (min-width: 992px) {
    div.inner_description{
        margin-left: -8px;
        margin-right: auto;
        max-width: 50%;
        display: inline-flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
        align-content: space-between;
        max-width: 50%;
        top: -2px;
        position: relative;
        margin-bottom: -2px;
    }
  }
  div.servizi{
    min-height: 550px;
    color: white;
    background-size: cover;
    background-position-y: center;
  }
  .top-feature h4{
    font-size: 26px;
    font-family: "Satoshi-bold";
    letter-spacing: -1px;
  }
  body{
    font-family: "Satoshi-regular", sans-serif !important;
  }
  div.riquadri{
    min-height: 160px;
    border-radius: 20px;
    color: white;
  }
  div.riquadri h4.palloni_titolo{
    color:white;
  }
  div.riquadri-zoo{
    background-image: url(/images/pexels-tom-fisk-9374408.jpg);
    background-size: cover;
  }
  div.riquadri-pianificazione{
    background-image: url(/images/pexels-tom-fisk-2468399.jpg);
    background-size: cover;
  }
  div.riquadri-tech{
    background-image: url(/images/pexels-jeshootscom-442589.jpg);
    background-size: cover;
  }
  h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    font-family: "Satoshi-bold", sans-serif !important;
    letter-spacing: -1.5px !important;
  }
.nav-tabs {
    border-bottom: none !important;
}
.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    border: #00000000 !important;
    background-color: #00000000 !important;
}
.agrizapp-logo{
    font-family: "Museo Sans Rounded 900" !important;
    font-size: xxx-large !important;
}
.carousel-caption a{
    border-radius: 20px;
}
.servizi-intro{
    margin-left: 20px;
    margin-right: 20px;
}
.bg-dark {
    background: linear-gradient(-90deg, #9ebd13 0%, #008552 100%) !important;
}
h2 svg{
    height: 40px;
    width: 40px;
}
svg.meno{
    display: none;
}
nav-link svg.meno{
    display: none;
}
nav-link:hover svg.meno{
    display: none;
}
nav-link:hover svg.piu{
    display:inline;
    margin-bottom: 5px;
}
li.nav-item:has(button.active) svg.meno{
    display:inline;
    margin-bottom: 5px;
}
#myTab .nav-link, #myTab .nav-link:hover{
    margin-bottom: -12px;
}
#myTab .nav-link:hover{
    max-height: 55px;
}
#myTab .nav-link:hover svg{
    margin-bottom: 6px;
}
li.nav-item:has(button.active) svg.piu{
    display:none;
}

div.bg-opaco{
    background-color:#0063ff2b;
}
div.bg-opaco:hover{
    background-color: #000000d6;
    transition: .5s;
}
div.bg-opaco:hover div.palloni_didascalia{
    height: 24px;
    opacity: 1;
    -webkit-transition: height,opacity 0.5s;
    -moz-transition: height,opacity 0.5s;
     -ms-transition: height,opacity 0.5s;
      -o-transition: height,opacity 0.5s;
         transition: height,opacity 0.5s;
}
div.palloni_didascalia{
    height: 0px;
    opacity: 0;
    -webkit-transition: height,opacity 0.5s;
    -moz-transition: height,opacity 0.5s;
     -ms-transition: height,opacity 0.5s;
      -o-transition: height,opacity 0.5s;
         transition: height,opacity 0.5s;
}
@media (min-width: 992px) {
    div.inner_keyword{
        display: inline-flex;
        margin-left: auto;
        margin-right: -8px;
        max-width: 45%;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        align-content: space-between;
        flex-wrap: nowrap;
    }
  }

.inner_keyword{
    padding: 20px;
    margin: -8px -8px;
    border-radius: 0px 20px 20px 0px;
}
.keyword{
    background-color: #ffffffb0;
    color: #303030;
    border-radius: 10px;
    padding: 5px 10px;
    margin: 5px 10px;
    font-size: inherit;
    -webkit-transition: font-size 0.5s;
    -moz-transition: font-size 0.5s;
     -ms-transition: font-size 0.5s;
      -o-transition: font-size 0.5s;
         transition: font-size 0.5s;
}
.keyword:hover{
    font-size: larger;
    background-color: #ffffffcf;
    -webkit-transition: font-size 0.5s;
    -moz-transition: font-size 0.5s;
     -ms-transition: font-size 0.5s;
      -o-transition: font-size 0.5s;
         transition: font-size 0.5s;
}
.etichette_soci{
    opacity: 0;
    transition: .5s;
    max-height: 33px;
    right: -100%;
    top: 30px;
    float: right;
    --border-bottom-width: 2px;
    --border-left-width: 2px;
    --border-right-width: 2px;
    --border-style: solid;
    --border-top-width: 2px;
    border-radius: 20px;
    display: block;
    padding: 4px 16px 0px 16px;
    position: absolute;
}
.presidente{
    float: right !important;
    left: -100% !important;
    right: unset !important;
    --border-color: #e2c3a5;
    background-color: #e2d1a5;
}
.consigliere_scientifico, .consigliera_scientifica, .consiglio_scientifico{
    --border-color: #a5e2d5;
    background-color: #ccfaef;
}
.cda{
    --border-color: #b3d2ff;
    background-color: #d2e9ff;
}
.etichette_soci p{
    color:rgb(13, 147, 131);
}
nav.navbar div.container{
    max-width: 100% !important;
    width: 100% !important;
}

p.vistock_spiegone{
    font-size: larger;
    border-radius: 20px;
    width: 95%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #e8e5e5;
    padding: 15px;
}
p.vistock_disclaimer{
    border-radius: 20px;
    width: 95%;
    background-color: rgba(255, 255, 255, 0.4);
    color: black;
    padding: 15px;
}
div.home-content-left{
    width: 45%;
    margin: 20px;
    float: left;
    text-align: center;
}
div.home-image-right{
    float: right;
    width: 40%;
    text-align: center;
}
input.vistock_mi_interessa{
    width: 100% !important;
    border-radius: 20px !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
    margin-left: -40px !important;
    font-size: x-large !important;
}
input.vistock_telefono{
    text-align: center !important;
    margin: -20px !important;
    border-radius: 20px !important;
    font-size: x-large !important;
}
img.img_thumb{
    max-width: 80px;
}


/*** Portfolio Section ***/
.portfolio-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a5c3a 100%);
}
.portfolio-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    transition: transform .3s, box-shadow .3s;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0,0,0,0.25);
}
.portfolio-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--light);
}
.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.portfolio-card:hover .portfolio-img-wrapper img {
    transform: scale(1.05);
}
.portfolio-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light) 0%, #c8e6c9 100%);
    font-size: 3rem;
    color: var(--primary);
}
.portfolio-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.badge-in-corso {
    background-color: #9ebd13;
    color: #fff;
}
.badge-terminato {
    background-color: var(--secondary);
    color: #fff;
}
.portfolio-card-body {
    padding: 20px;
}
.portfolio-card-title {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 10px;
}
.portfolio-card-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}
.portfolio-card-attivita {
    background: var(--light);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #444;
    line-height: 1.4;
}
.portfolio-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.portfolio-keyword {
    background: var(--light);
    color: var(--dark);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: background .3s;
}
.portfolio-keyword:hover {
    background: var(--primary);
    color: #fff;
}
.portfolio-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color .3s;
}
.portfolio-link:hover {
    color: var(--dark);
}
.portfolio-link i {
    margin-left: 4px;
    transition: margin-left .3s;
}
.portfolio-link:hover i {
    margin-left: 8px;
}

/* Portfolio Owl Carousel nav */
.portfolio-carousel .owl-nav {
    margin-top: 30px;
    text-align: center;
}
.portfolio-carousel .owl-nav button.owl-prev,
.portfolio-carousel .owl-nav button.owl-next {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
    font-size: 22px;
    margin: 0 8px;
    transition: background .3s;
}
.portfolio-carousel .owl-nav button.owl-prev:hover,
.portfolio-carousel .owl-nav button.owl-next:hover {
    background: rgba(255,255,255,0.35) !important;
}
.portfolio-carousel .owl-dots {
    text-align: center;
    margin-top: 20px;
}
.portfolio-carousel .owl-dots .owl-dot span {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: background .3s;
}
.portfolio-carousel .owl-dots .owl-dot.active span {
    background: #fff;
}

/* Clients ticker */
.clients-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 2rem;
}

.clients-track-wrapper {
    overflow: hidden;
    padding-bottom: 1rem;
}

.clients-track {
    display: flex;
    width: max-content;
    animation: clients-scroll 35s linear infinite;
}

.clients-track-wrapper:hover .clients-track {
    animation-play-state: paused;
}

@keyframes clients-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-item a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-logo-wrapper {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}


.client-name {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
