:root{
--bordeaux:#6B0F1A;
--black:#0F0F10;
--dark:#181818;
--white:#FFFFFF;
--glass:#FFFFFF20;
}

*{margin:0;padding:0;box-sizing:border-box;}

body{
  background:var(--black);
  color:var(--white);
  font-family:'Inter',sans-serif;
  overflow-x:hidden;
  width: 100%;
}

body.preloading {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

html{
  scroll-behavior:smooth;
}

/* ===============================
   CAMPAGNA IMPRESE ITALIANE
================================= */

#campagna .counter {
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10;
}

#campagna{
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0f0f10 0%, #000000 100%);
}

/* linea elegante */
#campagna::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:120px;
  height:2px;
  background:var(--bordeaux);
  opacity:0.6;
}

/* titolo */
#campagna .section-title{
  color:rgba(108, 19, 19, 0.71);
  letter-spacing:1px;
}

/* testo */
#campagna p{
  color:rgba(255,255,255,0.6);
  line-height:1.7;
}

/* COUNTERS */
#campagna .counter{
  font-size:3rem;
  font-family:'Montserrat';
  font-weight:800;
  color:rgba(108, 19, 19, 0.71);
  transition:0.4s ease;
  position: relative;
}

/* glow bordeaux sotto numero */
#campagna .counter::after{
  content:"";
  position:absolute;
  bottom:-8px;
  left:50%;
  transform:translateX(-50%);
  width:30px;
  height:2px;
  background:var(--bordeaux);
  opacity:0.5;
  transition:0.4s ease;
}

/* descrizione sotto */
#campagna .counter + p{
  font-size:0.9rem;
  letter-spacing:1px;
  text-transform:uppercase;
  color:rgba(255,255,255,0.5);
}

/* hover elegante */
#campagna .col-md-4:hover .counter{
  color:#ffffff;
  transform:translateY(-3px);
}

#campagna .col-md-4:hover .counter::after{
  width:60px;
  opacity:0.9;
}

/* micro glow */
#campagna .col-md-4{
  transition:0.3s ease;
}

#campagna .col-md-4:hover{
  transform:translateY(-5px);
}

/* spacing */
#campagna .row{
  margin-top:40px;
}

/* Particle */
#particleCanvas{
  position:fixed;
  top:0;left:0;
  width:100%;
  height:100%;
  z-index:-1;
}

/* Cursor */
.cursor{
  position:fixed;
  width:8px;height:8px;
  background:var(--bordeaux);
  border-radius:50%;
  pointer-events:none;
  z-index:99999;
  transform:translate(-50%,-50%);
}

.cursor-follower{
  position:fixed;
  width:30px;height:30px;
  border:1px solid var(--bordeaux);
  border-radius:50%;
  pointer-events:none;
  z-index:99998;
  transform:translate(-50%,-50%);
  transition:.15s ease;
}

.cursor,
.cursor-follower{
 will-change: transform;
}

@media(max-width:1023px){
 .cursor,.cursor-follower{display:none;}
}

/* Preloader */
#preloader{
  position:fixed;
  inset:0;
  background:var(--black);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:100000;
  overflow-y: hidden;
}

.loader-wrapper{
  width:100%;
  max-width:auto;
  text-align:center;
}

.loader-bar{
  width:100%;
  height:3px;
  background:rgba(255,255,255,0.1);
  overflow:hidden;
  margin-bottom:20px;
}

.loader-progress{
  width:0%;
  height:100%;
  background:var(--bordeaux);
  opacity: 0.6;
}

.loader-number{
  font-size:0.9rem;
  opacity:0.6;
  margin-bottom:25px;
}

.loader-brand{
  font-family:'Montserrat';
  font-size:1rem;
  opacity:0;
  color:rgba(255,255,255,0.5);
  transform:translateY(20px);
  padding-bottom: 20px;
}

/* Hero */
#hero{
  min-height: calc(var(--vh) * 100);
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

#hero3d{
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
}

.hero-content{
  position:relative;
  z-index:5;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding-top:30px;
}

#heroText{
  font-family:'Montserrat';
  font-size:8rem;
  letter-spacing:15px;
}

.char{
  opacity:0;
  display:inline-block;
}

.hero-subtitle{
  display:block;
  font-size:0.2em;
  letter-spacing:33px;
  transform:translateY(-15px);
}

.hero-sub{
  margin-top:15px;
  font-size: 1.8em;
  opacity:0;
  transform:translateY(40px) scale(0.6);
  filter:blur(6px);
}

#scrollDown{
  margin-top:40px;
  width:55px;
  height:55px;
  border-radius:50%;
  background:transparent;
  border:1.5px solid var(--white);
  color:var(--white);
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transform:translateY(20px);
  transition:0.3s ease;
}

#scrollDown:hover{
  background:var(--glass);
  color:var(--white);
  transform:translateY(15px);
}

#scrollDown{
  will-change: transform, opacity;
}

/* ===============================
   PHILOSOPHY VISUAL LINES
================================= */
.section-dark{
  padding:0;
  background:#000;
}

.philosophy-section{
  position:relative;
  overflow:hidden;
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}

.lines-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:1;
}

.line{
  position:absolute;
  width:5px;
  height:150%;
  background:linear-gradient(
    to bottom,
    rgba(107,15,26,0.6),
    rgba(107,15,26,0.05)
  );
  top:-28%;
  transform:rotate(45deg);
  clip-path: inset(0 0 100% 0);
}

.philosophy-content{
  position:relative;
  z-index:5;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.philosophy-content p{
  color:rgba(255,255,255,0.5);
}

/* testo inizialmente nascosto */
.philosophy-title{
  font-size:3rem;
  font-family:'Montserrat';
  margin-bottom:20px;
  line-height:1.2;
  color:rgba(255,255,255,0.7);
}

.philosophy-title,
.philosophy-text-1{
  opacity:0;
  transform:translateY(40px);
  color:rgba(255,255,255,0.7);
}

.philosophy-text-1{
    font-size:1.2rem;
    text-transform: uppercase;
}

.philosophy-text-2{
  font-size:1.6rem;
  opacity:0;
  transform:translateY(20px);
  padding: 0px 20px;
}

.philosophy-section hr{
  width:100%;
  height:1px;
  background:rgba(255,255,255,0.6);
  border:none;
  margin:10px auto;
}

.scroll-section-btn{
  margin-top:80px;
  width:55px;
  height:55px;
  border-radius:50%;
  background:transparent;
  border:1.5px solid var(--white);
  color:var(--white);
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transform:translateY(20px);
  transition:0.3s ease;
}

.scroll-section-btn:hover{
  background:var(--glass);
  color:var(--white);
  transform:translateY(15px);
}

.scroll-section-btn{
  will-change: transform, opacity;
}

/* Sections */
.section-title{
  font-size:3rem;
  font-family:'Montserrat';
  margin-bottom:20px;
  line-height:1.2;
  color:rgba(255,255,255,0.7);
}

/* Services */
.services-section{
  position:relative;
  overflow:hidden;
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  padding: 80px 0px 90px 0px;
}

.services-section p{
  color:rgba(255,255,255,0.5);
}

.services-section hr{
  width:20%;
  height:1px;
  background:rgba(255,255,255,0.6);
  border:none;
  margin:10px auto 60px;
}

.services-section .section-title{
  color:rgba(255,255,255,0.7);
}

.service-card{
  position:relative;
  padding:40px 30px;
  background:rgba(0,0,0,0.7);
  border:1px solid rgba(255,255,255,0.04);
  overflow:hidden;
  min-height:220px;
  max-height:220px;
  display:flex;
  align-items:flex-end;
  transition:all 0.5s cubic-bezier(.4,0,.2,1);
}

.service-inner{
  width:100%;
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

/* BLOCCO TITOLO NORMALIZZATO */
.service-title{
  font-family:'Montserrat';
  font-size:1.5rem;
  letter-spacing:1px;
  margin:0;
  color:rgba(255,255,255,0.4);
  min-height:3.2em; /* spazio per 2 righe */
  display:flex;
  align-items:flex-end; /* sempre ancorato in basso */
  transition:transform 0.2s cubic-bezier(.4,0,.2,1);
}

.service-desc{
  font-size:0.9rem;
  margin-top:10px;
  margin-bottom: 0px!important;
  line-height:1.6;
  opacity:0;
  transform:translateY(15px);
  transition:opacity 0.4s ease, transform 0.4s ease;
  color:rgba(255,255,255,0.6);
  max-height:0;
  overflow:hidden;
}

.service-number{
  position:absolute;
  top:25px;
  right:30px;
  font-size:3.5rem;
  font-family:'Montserrat';
  font-weight:800;
  color:rgba(255,255,255,0.1);
  transition:0.4s ease;
}

/* linea sottile elegante */
.service-card::after{
  content:"";
  position:absolute;
  left:30px;
  bottom:20px;
  width:0%;
  height:1px;
  background:var(--bordeaux);
  transition:0.5s ease;
}

/* ===== HOVER BOUTIQUE ===== */
.service-card:hover{
  transform:translateY(-4px);
  border-color:rgba(107,15,26,0.2);
}

.service-card:hover .service-title{
  color:rgba(135, 30, 30, 0.7);
  transform:translateY(-10px);
}

.service-card:hover .service-desc{
  opacity:1;
  transform:translateY(0);
  max-height:200px;
}

.service-card:hover .service-number{
  color:rgba(107,15,26,0.4);
}

.service-card:hover::after{
  width:100%;
}

.services-scroll-btn{
  margin:60px auto 80px auto;
  display:flex;
  opacity: 0.5;
}

@media(max-width:1023px){
  .services-scroll-btn{
    display:none!important;
    opacity:0;
  }
}

/* ===============================
   METHOD SECTION
================================= */
.method-section{
  position:relative;
  min-height: calc(var(--vh) * 100);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.method-section .section-title {
  margin-bottom: 40px;
}

.method-section p{
  color:rgba(255,255,255,0.5);
}

.method-section hr{
  width:20%;
  height:1px;
  background:rgba(255,255,255,0.6);
  border:none;
  margin:10px auto 10px;
}

/* Titolo fisso in alto */
.method-header{
  position:absolute;
  top:80px;
  width:100%;
  text-align:center;
  z-index:10;
}

.method-title{
  color:rgba(255,255,255,0.7);
}

/* Wrapper centrale */
.method-wrapper{
  position:relative;
  width:100%;
  max-width:900px;
  text-align:center;
}

.method-step{
  will-change: transform, opacity;
  position:absolute;
  width:100%;
  opacity:0;
  transform:scale(0.9);
}

.method-step h3{
  font-family:'Montserrat';
  font-size:2.8rem;
  color:var(--white);
}

.method-step p{
  margin-top:25px;
  font-size:1.2rem;
  color:rgba(255,255,255,0.6);
  padding: 0px 20px;
}

/* Numero gigante dietro */
.method-step::before{
  content:attr(data-step);
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-size:18rem;
  font-family:'Montserrat';
  font-weight:800;
  color:rgba(107,15,26,0.4);
  z-index:-1;
}

/* Highlight finale */
.method-highlight{
  margin-top:20px;
  font-size:1.4rem;
  letter-spacing:1px;
  color:var(--white);
  font-weight:600;
}

.final-step span {
  font-size: 1.8rem;
  color:rgba(255,255,255,0.6);
}

/* CTA */
.cta-section{
  padding:150px 0;
  background:linear-gradient(135deg,#6B0F1A80,#1A1A1C80);
  height: calc(var(--vh) * 100);
}

.cta-section hr{
  width:20%;
  height:1px;
  background:rgba(255,255,255,0.6);
  border:none;
  margin:60px auto 10px auto;
}

.cta-section p{
  font-size: 2.2rem;
  color:rgba(255,255,255,0.4);
}

.custom-btn{
  background:white;
  color:black;
  padding:12px 35px;
  border:none;
  font-weight:400;
  transition:.3s ease;
  border:1px solid white;
}

.custom-btn:hover{
  background:rgba(0,0,0,0.4);
  color:white;
  border:1px solid white;
}

/* Modal */
body.modal-open-custom{
  overflow:hidden;
}

.contact-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100000;
}

.contact-modal.active{
  display:flex;
}

.contact-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(8px);
}

.contact-box{
  position:relative;
  background:rgba(0,0,0,0.9);
  padding:30px;
  width:100%;
  max-width:460px;
  border:1px solid rgba(255,255,255,0.08);
  z-index:10;
}

.contact-box h3{
  font-family:'Montserrat';
  margin-bottom:10px;
  opacity: 0.6;
}

.contact-box small{
  opacity: 0.6;
}

.form-group{
  margin-bottom:10px;
}

.form-row{
  display:flex;
  gap:5px;
}

input{
  width:100%;
  padding:6px;
  background:#1a1a1c;
  border:1px solid rgba(255,255,255,0.1);
  color:white;
}

.close-modal{
  position:absolute;
  top:20px;
  right:20px;
  cursor:pointer;
  opacity:0.5;
}

.close-modal:hover{
  opacity:1;
}

#contactForm span {
  font-size: 0.7rem;
}

.form-check-custom{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:15px;
  font-size:0.9rem;
  color:rgba(255,255,255,0.7);
}

.form-check-custom input{
  margin-top:4px;
  width:16px;
  height:16px;
  accent-color:#6B0F1A;
}

.form-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:30px;
}

/* utilities */
.footer{
  background:none;
  margin-top:-74px;
  font-size: 0.7rem;
  opacity: 0.4;
}

#backToTop{
  position:fixed;
  right:30px;
  bottom:30px;
  width:45px;
  height:45px;
  border-radius:50%;
  border:none;
  background:var(--bordeaux);
  color:white;
  font-size:18px;
  cursor:pointer;
  opacity:0.4;
  visibility:hidden;
  transition:0.3s ease;
  z-index:9999;
}

#backToTop.show{
  opacity:0.4;
  visibility:visible;
}

@media (hover: hover) and (pointer: fine) {
  #backToTop:hover{
    opacity:0.4;
    background:white;
    color:var(--black);
  }
}

.nav-link{
  position:relative;
  transition:color .3s ease;
}

.nav-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0%;
  height:2px;
  background:var(--bordeaux);
  transition:width .4s cubic-bezier(.4,0,.2,1);
}

.nav-link.active::after{
  width:100%;
}

/* COOKIE BANNER */
.btn-link {
  color:var(--bordeaux);
}

.btn-link:hover {
  color:var(--white);
}

.cookie-banner{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(6px);
  border-top:1px solid rgba(255,255,255,0.08);
  padding:20px;
  z-index:99999;
  display:none;
}

.cookie-banner p {
  font-family:'Montserrat';
  font-size:0.8rem;
  margin-bottom: 0px;
}

.cookie-banner.show{
  display:block;
}

.cookie-content{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.cookie-actions{
  display:flex;
  gap:10px;
}

.cookie-actions .small{
  padding:6px 14px;
  font-size:0.8rem;
}

.cookie-scroll h5{
  margin-top:25px;
  font-family:'Montserrat';
  font-size:1rem;
  color:rgba(255,255,255,0.8);
}

.cookie-scroll hr{
  border:none;
  height:1px;
  background:rgba(255,255,255,0.1);
  margin:20px 0;
}

/* CODICE ETICO MODAL */
.codice-modal {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  display: flex;
}

.codice-modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* COOKIE MODAL */
.cookie-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100000;
}

.cookie-modal.active{
  display:flex;
}

.cookie-overlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(8px);
}

.cookie-box{
  position:relative;
  width:100%;
  max-width:600px;
  background:#0f0f10;
  border:1px solid rgba(255,255,255,0.08);
  padding: 30px 16px 30px 30px;
  z-index:10;
}

.cookie-scroll{
  max-height:300px;
  overflow-y:auto;
  margin-top:20px;
  font-size:0.9rem;
  color:rgba(255,255,255,0.6);
}

.close-cookie-modal{
  position:absolute;
  top:20px;
  right:20px;
  cursor:pointer;
  opacity:0.5;
}

.close-cookie-modal:hover{
  opacity:1;
}

/* alert mail */
.custom-toast{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%) scale(0.1);
  background:rgba(0,0,0,0.92);
  border:1px solid rgba(255,255,255,0.08);
  padding:22px 40px;
  color:white;
  font-size:0.95rem;
  letter-spacing:0.5px;
  opacity:0;
  transition:0.35s ease;
  z-index:1040; /* sotto modali, sopra contenuto */
  backdrop-filter:blur(10px);
  text-align:center;
  max-width:90%;
}

.custom-toast.show{
  opacity:1;
  transform:translate(-50%, -50%) scale(1);
}

.custom-toast.success{
  border:1px solid rgba(107,15,26,0.5);
}

.custom-toast.error{
  border:1px solid rgba(255,77,77,0.6);
}

/* Responsive */
@media(max-width:389px){

  .service-card{
    min-height: 270px;
    max-height: 270px;
  }
}

@media(min-width:1010px){

  .service-card{
    min-height: 260px!important;
    max-height: 260px!important;
  }
}

@media(max-width:768px){

  .service-card{
    max-height: ;
  }

  #heroText{
    font-size:4rem;
    letter-spacing: 1px;
  }
  .hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 20px;
  }
  .section-title{
    font-size:2rem;
  }

  .cursor: display: none;

  .cookie-content{
    flex-direction:column;
    align-items:flex-start;
    gap:20px;
  }

  .cookie-banner{
    padding:25px 20px;
  }

  .cookie-content p{
    font-size:0.95rem;
    line-height:1.6;
  }

  .cookie-actions{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:12px;
  }

  .cookie-actions button{
    width:100%;
  }

  .cookie-actions .btn-link{
    text-align:left;
    padding-left:0;
  }

}

.navbar-nav-padding {
  padding: 20px!important;
}

@media (max-width: 991px){

  .navbar-nav-padding {
    padding: 0!important;
  }

  .navbar-nav-padding-mobile {
    padding: 20px!important;
  }

  .navbar-collapse{
    background: rgba(15,15,16,0.95);
    backdrop-filter: blur(12px);
    padding: 60px 0px 20px 0px;
    margin-top: -80px;
    z-index: -1;
  }

  .navbar-nav{
    align-items: center;
  }

  .nav-link{
    margin-left: 0;
    padding: 12px 0;
    font-size: 1.2rem;
  }

  .method-section hr {
    margin: 20px auto 10px;
  }

  .method-wrapper {
    margin-top: -190px;
  }

  .philosophy-section {
    min-height: 930px!important;
  }

}