/* GENERALE */
body {
    background-color: rgb(16, 16, 16);
    color: #fff;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

h1{
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    margin-top: 80px;
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: #ffffff;

}

h2{
    color: rgb(80,224,10);
    text-align: center;
    margin: 100px 40px;
    text-transform: uppercase;
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(2rem, 4.5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    color: #ffffff;
}

/* h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: rgb(80,224,10);
    margin: 10px auto 0;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 100px;
} */

h4 {
    color: rgb(80,224,10);
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    margin-bottom: 10px;
    text-align: center;
}

h5 {
    font-size: clamp(1rem, 3vw, 1.25rem);
  }
  

h6 {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
  }

p {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}
a{
    color: #fff !important;
}

p, a, i, li, span {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
  }

/* Media Queries - GENERALE */

@media (max-width: 768px) {
    body {
      background-color: #101010;
      color: white;
      font-family: Arial, sans-serif;
      padding: 10px; 
    }
  
    h1 {
      margin-top: 40px; 
      text-align: center; 
    }
  
    h2 {
      text-align: center; 
      margin-bottom: 20px;
    }
  
    h3 {
      margin-bottom: 15px; 
      text-align: center; 
    }
  
    p {
      text-align: center; 
    }
}  

/* NAVBAR */

.uk-navbar-container {
    background-color: rgb(16, 16, 16) !important;
    color: white;
    transition: background-color 0.3s ease, padding 0.3s ease; 
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 10px 0;
}

.uk-container{
    margin-right: 10px;
}

.custom-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; 
    z-index: 9999; 
    background-color: rgb(16, 16, 16); 
    animation: uk-animation-slide-top 0.3s ease-in-out;
    margin-top: 0 !important; 
}

.uk-navbar-container {
    max-width: 100%;
    margin: 0 auto;
}

.custom-sticky.uk-sticky-fixed {
    width: 100% !important; 
}

.uk-navbar-container.uk-navbar-sticky {
    background-color: rgba(33, 34, 33, 0.8); 
}

.uk-navbar-item.uk-logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.uk-navbar-nav > li > a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 18px; 
    display: block;
    transition: background-color 0.3s ease, transform 0.2s ease; 
    min-height: 0px;
}

.uk-navbar-nav > li > a:hover {
    background-color: #50e00a;
    border-radius: 5px; 
    transform: scale(1.05);
}

.uk-offcanvas-bar {
    background-color: rgb(16, 16, 16);
    padding: 20px; 
}

.uk-nav-default > li > a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 18px; 
    display: block;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.uk-nav-default > li > a:hover {
    background-color: #50e00a;
    border-radius: 5px;
    transform: scale(1.05);
}

.uk-navbar-dropdown{
    width: 200px;
    padding: 25px;
    background: rgb(16, 16, 16);
    color: #ffffff;
}

.uk-navbar-dropdown-nav > li > a {
    margin-top: 10px;
    position: relative;
    display: inline-block;
}

.uk-navbar-dropdown-nav > li > a:hover::after {
    content: '';
    display: block;
    width: 6.5rem;
    height: 3px;
    background-color: rgb(80, 224, 10);
    margin: 5px auto 0; 
    position: absolute;
    bottom: 0; 
    left: 0; 
    right: 0; 
    transition: width 0.3s ease, margin 0.3s ease;
}

.uk-nav-sub > li{
    margin-left: 20px;
}

@media (max-width: 768px) {
    .uk-navbar-right {
        display: none; 
    }  

    .custom-toggle svg {
        width: 30px;
        height: 30px;
    }
    
    .custom-toggle {
        padding: 0.5rem;
    }
    
    .custom-toggle:hover svg {
        stroke: rgb(80, 224, 10); 
    }

    .uk-navbar-toggle {
        display: block;
    }
}



/* WELCOME */
.hero-section {
    position: relative;
    background-image: url('../img/hero_cover.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Overlay sfumato */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(16, 16, 16, 0) 0%,
        rgba(16, 16, 16, 0.198) 50%,
        rgba(16, 16, 16, 0.423) 60%,
        rgba(16, 16, 16, 0.721) 70%,
        rgba(16, 16, 16, 0.804) 80%,
        rgba(16, 16, 16, 0.939) 90%,
        #000000 100%
    );
    z-index: 1;
}

/* Contenuto sopra l'overlay */
.hero-content {
    position: relative;
    z-index: 2;
    top: 45vh;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.logo-img {
    max-width: 26rem;
    height: auto;
    margin-bottom: 0.5rem;
}

#hero-text{
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0px;

}

/* Responsive */
@media screen and (max-width: 768px) {
    body{
        padding: 10px 0px;
    }

    .hero-section {
        background-size: 130% auto;  
        background-repeat: no-repeat;
        background-position: center top;
        height: auto;
        margin-top: 4rem; 
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            to bottom,
            rgba(16, 16, 16, 0) 0%,
            rgba(16, 16, 16, 0.047) 25%,
            rgba(16, 16, 16, 0.125) 30%,
            rgba(16, 16, 16, 0.277) 43%,
            rgba(16, 16, 16, 0.563) 45%,
            rgba(16, 16, 16, 0.795) 50%,
            rgba(16, 16, 16, 0.941) 55%,
            #000000 100%
        );
        z-index: 1;
    }

    .hero-content {
        top: auto;
        transform: none;
        padding: 2rem 1rem;
    }

    .logo-img {
        width: 100%;
        max-width: 90%;
        height: auto;
        margin-top: 14rem;
    }

    #hero-text {
        font-size: 1.4rem;
        text-align: center;
        padding-bottom: 1rem;
        margin: 0;
    }
}

/* Pulsante "Scopri di più" */
.scopri {
    text-align: center;
    margin-top: 10vh;
}

.scopri-link {
    background-color: #2a2a2a56;
    color: #ffffff;
    padding: 1em;
    text-decoration: none;
    font-weight: bold;
    border: #50e00a 1px solid;
    border-radius: 10px;
    display: inline-block; 
    text-align: center;
    max-width: 90%;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem); 
    line-height: 1.8; 
    white-space: normal; 
    word-wrap: break-word; 
    min-width: 200px;
}

.scopri-link:hover {
    color: rgb(80, 224, 10) !important;
    background-color: white;
}

.scopri-link span {
    display: block;
    width: 100%;
}

/* Ottimizzazione per schermi piccoli */
@media screen and (max-width: 480px) {
    .scopri-link {
        font-size: 16px; 
        padding: 0.8em;
    }
}

/* SERVIZI */
.why-section {
    background-color: rgb(16, 16, 16);
    padding: 5vh 2vw;
    border-radius: 10px;
    max-width: 100%;
    margin: auto;
    box-sizing: border-box;
}

.why-section .container {
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

.why-section h2 {
    margin-bottom: 20px;
}

.why-section h3 {
    margin-bottom: 40px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
    margin-top: 10vh;
    justify-content: center; 
    align-items: stretch;
}

.feature {
    background-color: #202122;
    padding: 6vh 2vw 3vh 2vw;
    border-radius: 10px;
    flex: 1 1 calc(22% - 2vw); 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: center;         
    hyphens: auto;               
    overflow-wrap: break-word;   
    word-break: break-word; 
    box-sizing: border-box;
    margin-bottom: 20px; 
    box-shadow: 0 12px 20px rgb(0, 0, 0), 0 14px 28px rgb(0, 0, 0); 
}

/* .feature:hover {
    transform: scale(1.05);
} */

.feature .icon i {
    margin-bottom: 1em;
    margin-top: 1em;
}

.feature h4 {
    font-weight: bold;
    color: #fff;
    margin: 1.5vh 0;
}

.feature h4::after {
    content: '';
    display: block;
    width: 150px;
    height: 2px;
    background-color: rgb(80,224,10);
    margin: 10px auto 0;
}

.feature p {
    color: #ccc;
    line-height: 1.6;
    margin-top: 2vh;
    padding: 10px;
}

/* Media Queries - SERVIZI */
@media (max-width: 1024px) {
    .features-grid {
        gap: 2vw;
    }

    .feature {
        flex: 1 1 calc(45% - 2vw); /* Due colonne */
        max-width: none;
        text-align: justify;
        text-justify: inter-word;
        text-align-last: center;         
        hyphens: auto;               
        overflow-wrap: break-word;   
        word-break: break-word; 
    }

    .feature .icon i {
        margin-bottom: 0.5em;
        margin-top: 0.5em;
    }
}

@media (max-width: 768px) {
    .why-section {
        padding: 5vh 2vw; 
    }

    .features-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7vh;
        width: 100%;
    }

    .feature {
        width: 90%;
        max-width: 500px;
        padding: 3vh 3vw; 
    }

    .feature .icon i {
        margin-bottom: 1em;
        margin-top: 1em;
    }

    .feature h4 {
        margin: 1.5vh auto;
    }

    .feature p {
        line-height: 1.5;
        margin-top: 1.5vh;
        text-align: justify;
        text-justify: inter-word;
        text-align-last: center;         
        hyphens: auto;               
        overflow-wrap: break-word;   
        word-break: break-word;
    }
}

/* TEAM */
.collaborators {
    padding: 40px 20px;
    margin-bottom: 40px;
}

.flip-cards {
    display: flex; 
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    padding: 20px;
    margin: 0 auto;
    max-width: 80%;
}

.flip-card {
    flex: 0 1 20vw;
    height: 50vh;
    width: 50vw;
    perspective: 1000px;
}


.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.1s;
    transform-style: preserve-3d;
    transform-origin: center;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0px;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.flip-card-back {
    background-color: white;
    transform: rotateY(180deg);
    color: #000000 !important;
}

@media screen and (max-width: 768px) {
    .collaborators {
        padding: 0;
        margin-bottom: 10px;
    }

    .flip-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px; 
        width: 100%;
    }

    .flip-card {
        flex: 0 1 calc(50% - 10px); 
        height: auto;
        aspect-ratio: 3 / 4; 
        border-radius: 8px; 
        box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }

    .flip-card-front img {
        border-radius: 8px;
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }
}

@media screen and (max-width: 550px){
    .flip-card-back h5{
      font-size: 0.850rem;  
    }
    
    .flip-card-back p{
        font-size: 0.650rem;
    }
}

/* FOTO REALTA' */
.swiper-container {
    width: 80%;
    height: auto;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.foto-box img {
    width: 100%;
    padding-bottom: 20px; 
}

.swiper-button-prev, 
.swiper-button-next {
    color: #50e00a;
    font-size: 3rem;
}

.swiper-pagination-bullets {
    bottom: 0px !important;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
}

.swiper-pagination-bullet {
    background-color: #ffffff;
    width: 15px;
    height: 15px;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #50e00a;
}

/* Media Queries - REALTA' */
@media (max-width: 768px) {
    .swiper-container {
        height: 60vh;
    }

    .swiper-button-prev, .swiper-button-next {
        font-size: 1.5rem;
    }

    .swiper-pagination-bullets {
        bottom: 5px;
        gap: 5px;
    }

    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }
}

/* CONTATTO WHATSAPP */
/* .whatsapp-section {
    background-color: rgb(16,16,16);
    padding: 40px;
    text-align: center;
    margin-top: 20vh;
    margin-bottom: 10vh;
}

.whatsapp-container {
    max-width: 60vw;
    max-height: 50vh;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 80px;
    margin-top: 100px;
    margin-bottom: 50px;
}

.whatsapp-container p {
    color: #000000;
    margin-bottom: 5vh;
}

.whatsapp-btn {
    display: inline-block;
    padding: 15px 25px;
    margin-top: 20px;
    background-color: rgb(80, 224, 10); 
    color: white;
    border-radius: 8px;
    border: 2px solid transparent; 
    transition: background-color 0.3s ease, transform 0.3s ease, border 0.3s ease; 
}

.whatsapp-btn:hover {
    background-color: rgb(255, 255, 255); 
    color: #3fb006; 
    border: 2px solid #3fb006; 
    transform: scale(1.05); 
}


.whatsapp-btn i {
    margin-right: 10px;
} */


/* Cookie */

.as-oil-content-overlayl{
    background-color: #202122;
    color: #ffffff;
    max-width: 50%;
}

/* Foto pre footer */

#pre-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

#pre-footer img {
    width: 100%;
    height: auto; 
    max-width: 100%;
    object-fit: contain; 
}

/* FOOTER */

footer {
    margin-top: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto; /* centra il footer */
}

.uk-card {
    background-color: rgb(16, 16, 16);
    padding: 10px;
}

footer .footer-info p {
    color: #dbd9d9;
    line-height: 2;
    text-align: left;
    font-size: clamp(0.5rem, 2.5vw, 0.875rem);
}

#ppiva{
    margin-bottom: 2px;
}

#piva{
    font-size: clamp(0.5rem, 2.5vw, 0.7rem);
    text-align: left;
    margin-left: 2rem;
    margin-top: 0;
}

footer .footer-info p i {
    margin-right: 10px;
    color: rgb(80, 224, 10);
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
}

footer h4 {
    color: rgb(255, 255, 255);
    margin-top: 5px;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

footer .footer-p {
    margin-left: 0.5rem;
}

.footer-li a{
    text-align: left !important;
    padding: none !important;
    margin-left: 2.5rem;
    font-size: clamp(0.6rem, 2.5vw, 0.8rem);
}

.uk-nav > li {
    min-width: 200px; 
    display: block;
}

footer .footer-social h4 {
    color: rgb(255, 255, 255);
    margin-left: 20px;
    text-align: center;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

footer .footer-social {
    text-align: center;
}

footer .footer-social .social-icons {
    margin-top: 30px;
    margin-left: 20px;
}

footer .footer-social .social-icons i {
    color: rgb(80, 224, 10);
}

footer .footer-social a {
    color: white;
    margin: 10px;
    text-decoration: none;
    transition: color 0.3s;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

footer .footer-social a:hover {
    color: rgb(80, 224, 10);
}

footer .footer-menu {
    align-items: left; 
    justify-content: left; 
}

footer .footer-menu {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    padding: 15px 0;
    color: #f8f8f8;
}

.footer-copyright > p{
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
}

footer > .uk-child-width-1-2[uk-grid] {
    display: flex;
    flex-wrap: wrap;
}

footer > .uk-child-width-1-2[uk-grid] > div:nth-child(1) {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    flex-wrap: wrap;
}

footer > .uk-child-width-1-2[uk-grid] > div:nth-child(2) {
    flex: 0 0 40%;
    max-width: 40%;
}

footer > .uk-child-width-1-2[uk-grid] > div:nth-child(1) > div {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 767px) {

    footer {
      margin: 0 auto;       
      max-width: 90%;
      padding: 0 1rem;
    }

    footer > .uk-child-width-1-2[uk-grid] {
      display: block !important; 
      margin-left: 0 !important; 
      margin-right: 0 !important;
    }
 
    footer > .uk-child-width-1-2[uk-grid] > div:nth-child(1) {
      width: 100%;
      max-width: 600px;               
      margin: 0 auto 1rem;            
      display: flex;                  
      flex-wrap: wrap;
      justify-content: center;
      gap: 1rem;                      
      padding-left: 0 !important; 
      padding-right: 0 !important;
    }
 
    footer > .uk-child-width-1-2[uk-grid] > div:nth-child(1) > div {
      flex: 0 0 calc(50% - 0.5rem);
      max-width: calc(50% - 0.5rem);
      text-align: left;
      padding: 0 !important;       
    }
  
    footer > .uk-child-width-1-2[uk-grid] > div:nth-child(2) {
        width: 100%;
        max-width: 600px;              
        margin: 0 auto;                
        display: flex;                 
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-left: 0 !important; 
        padding-right: 0 !important;
      }

    .uk-nav > li {
      min-width: auto !important; 
    }
  
    .uk-card {
      padding: 5px;
    }
  
    footer h4 {
      font-size: 0.8rem; 
      margin: 0.5rem 0;
    }

    footer .footer-info {
        margin-top: 0.4rem;
    }

    footer .footer-info p {
        text-align: left !important;
        display: block;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin: 0.5rem 0;
        overflow-wrap: break-word;
    }             
  
    footer .footer-info p i {
      font-size: 0.75rem;
      margin-right: 5px;
      text-align: left !important;
    }
    
    #piva {
        justify-content: flex-start;
        font-size: clamp(0.350rem, 2.5vw, 0.450rem);
        text-align: left;
        margin-left: 1rem;
    }      

    .footer-li a {
      font-size: 0.65rem;
      margin-left: 0.5rem;
    }

    footer .footer-social .social-icons {
        margin-top: 30px;
        margin-left: 0;
    }
  
    footer .footer-social a {
      font-size: 0.8rem;
      margin: 5px;
    }
  
    footer .footer-info img {
      max-width: 100%;
      margin-bottom: 1rem;
      display: block;
    }
  
    footer .footer-social h4 {
      font-size: 1.5rem;
      margin: 0;
      text-align: center;
    }
    
    .footer-copyright {
      font-size: 0.6rem; 
      padding: 10px 0;
      text-align: center;
    }
  }
  

/* BACK ON TOP */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #50e00a;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1;
}

#back-to-top:hover {
    background-color: rgb(19, 65, 19);
}

body.scrolled .navbar {
    background-color: rgba(0, 0, 0, 0.8);
}


