  @font-face {
    font-family: 'urbanist';
    src: url('../fonts/Urbanist.otf'); /* IE9 Compat Modes */ 
    src: url('../fonts/Urbanist.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/Urbanist.woff') format('woff'), /* Pretty Modern Browsers */
         url('../fonts/Urbanist.ttf')  format('truetype'); /* Safari, Android, iOS */
    font-display: swap;     
  }
  
  *, *::before, *::after { box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;}
  body {
    position:relative;
    margin: 0;        
    font-size: 1rem;     
    background-color: white;
    color:var(--cl-txt);
    width:100%;        
    font-family: var(--font-normal);     
    overflow-x: hidden;
    cursor:default;
    transition: background 1s ease-in-out;
}

html {scroll-behavior: smooth; scroll-padding-top: 80px; max-width:100%; overflow-x: hidden; }
img { max-width: 100%; }
:root {   
  --cl-txt: #282828;  
  --green: #4A7C6D;
  --green-l: #69A090;
  --antracite: #2F3337;   
  --antracite-l: #4A4E52;
  --bianco-sporco: #FAF9F6;
  --boxshadowBOX: -1px -1px 4px rgb(184, 184, 184), 1px 1px 4px rgb(184, 184, 184);
  --font-normal: 'urbanist', sans-serif; 
  --clborder: #afbbd4;
  --shadow-nav: 0 2px 6px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.45);
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bianco-sporco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

#preloader.fade-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Triangolo container */
.triangle-container {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Triangolo con rotazione e crescita */
.preloader-triangle {
    width: 100%;
    height: 100%;
    position: relative;
    transform: rotate(-180deg) scale(0.5);
    animation: triangleRotateGrow 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}


@keyframes triangleRotateGrow {
    0% {
        transform: rotate(-180deg) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

/* Triangolo shape con fill progressivo */
.triangle-shape {
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-bottom: 60px solid transparent;
    position: relative;
    animation: triangleFill 0.8s ease forwards 0.6s;
}

@keyframes triangleFill {
    to {
        border-bottom-color: #4A7C6D;
    }
}

/* Contorno interno gradient */
.triangle-shape::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -33px;
    width: 0;
    height: 0;
    border-left: 33px solid transparent;
    border-right: 33px solid transparent;
    border-bottom: 56px solid #69A090;
}

/* Nome SINTESI */
.preloader-name {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--antracite);
}

.preloader-name span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterAppear 0.3s ease forwards;
}

.preloader-name span:nth-child(1) { animation-delay: 0.6s; }
.preloader-name span:nth-child(2) { animation-delay: 0.68s; }
.preloader-name span:nth-child(3) { animation-delay: 0.76s; }
.preloader-name span:nth-child(4) { animation-delay: 0.84s; }
.preloader-name span:nth-child(5) { animation-delay: 0.92s; }
.preloader-name span:nth-child(6) { animation-delay: 1s; }
.preloader-name span:nth-child(7) { animation-delay: 1.08s; }

@keyframes letterAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tagline */
.preloader-tagline {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--green);
    opacity: 0;
    transform: translateY(20px);
    animation: taglineAppear 0.5s ease forwards 1.5s;
}

@keyframes taglineAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skip button */
.skip-preloader {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.skip-preloader:hover {
    color: #69A090;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .triangle-container {
        width: 55px;
        height: 55px;
    }
    
    .triangle-shape {
        border-left: 27.5px solid transparent;
        border-right: 27.5px solid transparent;
        border-bottom: 48px solid transparent;
    }
    
    .triangle-shape::before {
        left: -26px;
        border-left: 26px solid transparent;
        border-right: 26px solid transparent;
        border-bottom: 45px solid #69A090;
    }
    
    .preloader-name {
        font-size: 2.5rem;
    }
    
    .preloader-tagline {
        font-size: 1rem;
        text-align: center;
        padding: 0 2rem;
    }
    
    .skip-preloader {
        bottom: 2rem;
        right: 2rem;
        font-size: 0.85rem;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bianco-sporco);
    color: var(--antracite);
    padding: 0.5rem 5%;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);   
}

.navbar.scrolled { box-shadow: var(--shadow-nav);}

.navbar-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.logo {text-decoration:none; color:var(--bianco-sporco); }
.logo-img {width:150px;}

.nav-links a {
    color: var(--antracite);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--green-l);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--antracite);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: var(--antracite);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;    
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 3rem 5%;
}
.mobile-menu .nav-link-m {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.5rem 0;
}

.mobile-menu .mobile-menu-content ul {
    list-style: none;
    padding-left:0;
}

.mobile-menu .mobile-menu-content > ul > li {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu .mobile-menu-content > ul > li > .nav-link-m {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.5rem 0;
    display: block;
    transition: all 0.3s ease;
}

.mobile-menu .mobile-menu-content > ul > li > .nav-link-m:hover {
    color: var(--green-l);
    transform: translateX(10px);
}

/* Mobile Dropdown Servizi */
.mobile-servizi-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.mobile-servizi-toggle {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.mobile-servizi-toggle:hover {
    color: var(--green-l);
}

.mobile-servizi-toggle .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mobile-servizi-toggle.active .arrow {
    transform: rotate(180deg);
}

.mobile-servizi-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-servizi-content.active {
    max-height: 800px;
}

.mobile-servizi-title {
    color: var(--green-l);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-servizi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
}

.mobile-servizi-column h4 {
    color: var(--green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.mobile-servizi-column ul {
    list-style: none;
}

.mobile-servizi-column ul li {
    margin-bottom: 0.5rem;
}

.mobile-servizi-column ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    display: block;
    transition: all 0.2s ease;
}

.mobile-servizi-column ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.dropdown { position: relative;}
.dropdown-content {
    position: absolute;
    top: calc(100% + 1.5rem);    
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--antracite);
    min-width: 650px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;   
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr;}

.dropdown-column {
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;  
}

.dropdown-column:first-child { background: var(--green);border-right: 3px solid var(--antracite);}

.dropdown-column:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.dropdown-column:last-child {background: white;}

.dropdown-column:hover { transform: scale(1.02);}

.dropdown-column h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid;  
}

.dropdown-column:first-child h4 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.dropdown-column:last-child h4 {
    color: var(--antracite);
    border-bottom-color: var(--green);
}

.dropdown-list {list-style: none; padding-left:0; }
.dropdown-list li {
    margin-bottom: 0.5rem;
    transform: translateX(0);
    transition: transform 0.2s ease;    
}

.dropdown-list li a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-column:first-child .dropdown-list li a {color: rgba(255, 255, 255, 0.9);}
.dropdown-column:first-child .dropdown-list li a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    border-left-color: white;
    transform: translateX(8px);
}

.dropdown-column:last-child .dropdown-list li a { color: var(--antracite);}
.dropdown-column:last-child .dropdown-list li a:hover {
    color: var(--green);
    background: var(--bianco-sporco);
    border-left-color: var(--green);
    transform: translateX(8px);
}

@media (max-width:890px) {
    .nav-links { display: none;}
    .hamburger { display: flex;}
    .dropdown-content { display: none !important;}
    .navbar {padding:5px 1em;}
}



/* Nuovi Button Effects */
.btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Urbanist', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    cursor:pointer;
}

/* Primary Button - Effetto slide from left */
.btn-primary {
    background: var(--green);
    color: white;
    border: 2px solid var(--green);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--green-l);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before { left: 0;}
.btn-primary:hover { border-color: var(--green-l);}

/* Secondary Button - Effetto fill from bottom */
.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: white;
    transition: height 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::after { height: 100%;}
.btn-secondary:hover { color: var(--antracite);}

@media (max-width:800px) {
    .btn { padding: 1.3rem; font-size:1rem;}
}


/* Animazioni */
.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Transizione per tutti gli elementi interattivi */
a, button, .btn, .card, .step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer */
.footer {
    background: var(--antracite);
    color: white;
    padding: 5rem 5% 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo-footer {width:200px;}

.footer-col, .footer-brand {
    width:100%;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;    
}

.footer-logo-triangle {
    width: 32px;
    height: 32px;
    background: var(--green);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.footer-tagline {
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-contacts {
    margin-top: 1.5rem;
}

.footer-contacts p {
    margin-bottom: 0.5rem;
}

.footer-contacts a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-contacts a:hover {
    color: var(--green-l);
}

.footer h4 {
    margin-bottom: 1.5rem;
    color: var(--green-l);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer ul {
    list-style: none;
    padding-left:0;
}

.footer ul li {
    margin-bottom: 0.7rem;
}

.footer ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer ul li a:hover {
    color: var(--green-l);
}

/* Footer Bottom - Legal */
.footer-bottom {
    background: var(--antracite);
    margin-top:1px solid var(--bianco-sporco);
    padding: 2rem 5%;
}

.footer-bottom-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal .separator {
    color: rgba(255,255,255,0.3);
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--green-l);
}

.footer-credits {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-credits a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: var(--green-l);
}

@media (max-width: 1100px) {
.footer-logo {justify-content: center;}    
.footer-content {
    max-width:fit-content;
    grid-template-columns: 1fr;
    gap: 2rem;    
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    text-align:center;
}

.footer-bottom-content {
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1.5rem;
text-align:center;
}

.footer-legal {justify-content: center;}

}

/*stili generali */
.width100 {width:100%;}
.h100 {height:100vh;} 
.relative {position:relative;}
.wrap-flex {display:flex; }
.column {flex-direction:column;}
.wrap {flex-wrap: wrap;}
.center {align-items:center;justify-content: center;}
.flexwrap {flex-wrap: wrap;}
.spc_btw {justify-content: space-between;}
.justify-c {justify-content: center;}
.justify-r {justify-content: flex-end;}
.justify-s {justify-content: flex-start;}
.align-start {align-items:flex-start;}
.align-end {align-items:flex-end;}
.align-center {align-items:center;}
.fit {width:fit-content;}

.txt-c {text-align:center;}
.txt-r {text-align:right;}
.txt-l {text-align: left;}
.txt-j {text-align: justify;}
.txt-w {color:white;}
.line-h1-6 {line-height:1.6;}
.txt-green {color:var(--green);}
.uppercase {text-transform: uppercase;}
.underline {text-decoration: underline;}
.bold {font-weight:600;}

.pointer {cursor:pointer;}
.gap5 {gap:5px;}
.gap10 {gap:10px;}
.gap16 {gap:16px;}
.gap20 {gap:20px;}
.gap30 {gap:30px;}
.gap50 {gap:50px;}
.gap100 {gap:100px;}

.m0 {margin:0;}
.ml-auto {margin-left:auto;}
.mr-auto {margin-right:auto;}
.m-auto {margin: 0 auto;}
.m-block0 {margin-block: 0;} /* top e bottom */
.m-inline0 {margin-inline: 0;} /* left e right */
.mt0 {margin-top:0;}
.mt5 {margin-top:5px;}
.mt10 {margin-top:10px;}
.mt16 {margin-top:16px;}
.mt20 {margin-top:20px;}
.mt50 {margin-top:50px;}
.mt100 {margin-top:100px;}
.mb0 {margin-bottom:0;}
.mb3 {margin-bottom:3em;}
.mb5 {margin-bottom:5px;}
.mb10 {margin-bottom:10px;}
.mb16 {margin-bottom:16px;}
.mb20 {margin-bottom:20px;}
.mb50 {margin-bottom:50px;}
.mb100 {margin-bottom:100px;}

.p0 {padding:0;}
.p5 {padding: 5px;}
.p10 {padding:10px;}

.pt0 {padding-top:0;}
.pb0 {padding-bottom:0;}
.p-block0 {padding-block: 0;} /* top e bottom */
.p-inline0 {padding-inline: 0;} /* left e right */

.bradius {border-radius:var(--bradius);}

.link-gen {color:var(--green);}
.link-gen:hover {color:var(--cl-lightblue);}

.bg-green {background:var(--cl-blu);}
.bg-dark {background:var(--cl-txt);}
.bg-white {background:var(--bianco-sporco);}

.sticky {
  position:sticky;
  position: -webkit-sticky;
  position: -moz-sticky;
  position: -ms-sticky;
  position: -o-sticky;
}
.absolute {
  position:absolute;
  position: -webkit-absolute;
  position: -moz-absolute;
  position: -ms-absolute;
  position: -o-absolute;
}

.fixed {
  position:fixed;
  position: -webkit-fixed;
  position: -moz-fixed;
  position: -ms-fixed;
  position: -o-fixed;
}
.bkgr-image_cover {
  background-size: cover;
  -webkit-background-size:cover;
   -moz-background-size: cover;
   -o-background-size:cover;
  background-repeat: no-repeat;
  background-position: center;
  width:100%;
  height:100vh;
}