/* =========================================
   RESET BASE
========================================== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{

  font-family:'Oswald', sans-serif;

  background:black;

  color:white;

  overflow-x:hidden;
}

/* =========================================
   NAVBAR
========================================== */

.nav{

  position:fixed;

  top:0;
  left:0;

  width:100%;

  padding:22px 0;

  display:flex;

  justify-content:center;

  gap:35px;

  background:rgba(0,0,0,0.1);

  transition:0.4s ease;

  z-index:1000;
}

.nav.scrolled{

  background:rgba(0,0,0,0.92);

  backdrop-filter:blur(8px);

  box-shadow:0 5px 20px rgba(0,0,0,0.8);
}

.nav a{

  color:white;

  text-decoration:none;

  letter-spacing:2px;

  font-size:1rem;

  transition:0.3s;
}

.nav a:hover{

  color:#8fbc6d;

  text-shadow:0 0 10px #8fbc6d;
}

/* =========================================
   LOGHI
========================================== */

.corner-logo{

  position:fixed;

  top:10px;

  width:120px;
  height:120px;

  border-radius:50%;

  z-index:2000;

  box-shadow:
    0 0 15px rgba(0,0,0,0.9),
    0 0 25px rgba(0,0,0,0.6);

  transition:0.4s ease;
}

.corner-logo:hover{

  transform:scale(1.05);
}

.logo-left{
  left:25px;
}

.logo-right{
  right:25px;
}

/* =========================================
   HERO
========================================== */

.hero{

  position:relative;

  min-height:100vh;

  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.82)),
    url('https://caosoftair.it/background.jpg');

  background-size:cover;
  background-position:center;

  background-attachment:fixed;

  overflow:hidden;

  display:flex;
  flex-direction:column;
}

/* =========================================
   FUMO
========================================== */

.smoke{

  position:absolute;

  inset:0;

  background:url('www.caosoftair.it/Smoke.gif');

  background-size:cover;

  background-position:center;

  opacity:0.18;

  z-index:1;

  pointer-events:none;
}

/* =========================================
   PARTICELLE
========================================== */

.particles{

  position:absolute;

  inset:0;

  overflow:hidden;

  z-index:1;
}

.particle{

  position:absolute;

  width:3px;
  height:3px;

  background:white;

  border-radius:50%;

  opacity:0.2;

  animation:floatParticle linear infinite;
}

@keyframes floatParticle{

  from{
    transform:translateY(100vh);
  }

  to{
    transform:translateY(-100px);
  }

}

/* =========================================
   HERO CONTENT
========================================== */

.hero-wrapper{

  position:relative;

  z-index:5;

  width:100%;

  display:flex;
  flex-direction:column;
  align-items:center;

  padding-top:160px;
}

.hero-content{

  text-align:center;

  margin-bottom:40px;
}

.hero h1{

  font-family:'Black Ops One', cursive;

  font-size:6rem;

  letter-spacing:12px;

  color:#ececec;

  text-shadow:
    0 0 10px rgba(0,0,0,0.9),
    0 0 25px rgba(0,0,0,1),
    0 0 40px rgba(0,0,0,1);
}

.hero h2{

  margin-top:15px;

  font-size:1.2rem;

  letter-spacing:5px;

  color:#d0d0d0;
}

.hero p{

  margin-top:35px;

  font-size:1.5rem;

  font-style:italic;

  color:#ededed;
}

/* =========================================
   OPERATORI
========================================== */

.operators{

  position:relative;

  width:100%;

  display:flex;

  justify-content:center;

  z-index:3;

  transition:opacity 0.4s ease;
}

.operators img{

  width:460px;

  max-width:65vw;

  opacity:0.95;

  animation:operatorsRise 2s ease;
}

@keyframes operatorsRise{

  from{

    transform:translateY(250px);

    opacity:0;
  }

  to{

    transform:translateY(0);

    opacity:0.95;
  }

}

/* =========================================
   SECTION
========================================== */

.section{

  padding:20px 20px;

  text-align:center;

  background:#090909;

  border-top:1px solid rgba(255,255,255,0.05);
}

.section h2{

  font-family:'Black Ops One', cursive;

  font-size:3rem;

  margin-bottom:40px;

  letter-spacing:5px;
}

.section p{

  max-width:950px;

  margin:auto;

  line-height:2;

  font-size:1.1rem;

  color:#d0d0d0;
}

/* =========================================
   CARDS
========================================== */

.cards{

  margin-top:50px;

  display:grid;

  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));

  gap:30px;

  max-width:1200px;

  margin-left:auto;
  margin-right:auto;
}

.card{

  background:#111;

  padding:35px;

  border-radius:12px;

  border:1px solid rgba(255,255,255,0.05);

  transition:0.4s ease;
}

.card:hover{

  transform:translateY(-8px);

  border-color:#8fbc6d;

  box-shadow:0 0 25px rgba(143,188,109,0.15);
}

.card h3{

  margin-bottom:20px;

  color:#8fbc6d;

  font-size:1.5rem;
}

.card p{

  font-size:1rem;

  line-height:1.8;
}

/* =========================================
   GALLERY
========================================== */

.gallery{

  margin-top:60px;

  display:grid;

  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));

  gap:25px;

  max-width:1200px;

  margin-left:auto;
  margin-right:auto;
}

.gallery img{

  width:100%;

  height:320px;

  object-fit:cover;

  border-radius:10px;

  border:2px solid rgba(255,255,255,0.08);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border 0.4s ease;

  box-shadow:0 0 20px rgba(0,0,0,0.6);

  cursor:pointer;
}

.gallery img:hover{

  transform:scale(1.06);

  border-color:#8fbc6d;

  box-shadow:
    0 0 25px rgba(143,188,109,0.35),
    0 0 50px rgba(143,188,109,0.15);
}

/* =========================================
   LIGHTBOX
========================================== */

.lightbox{

  position:fixed;

  inset:0;

  background:rgba(0,0,0,0.92);

  display:flex;

  justify-content:center;
  align-items:center;

  opacity:0;

  visibility:hidden;

  transition:0.4s ease;

  z-index:5000;
}

.lightbox.active{

  opacity:1;

  visibility:visible;
}

.lightbox img{

  max-width:90%;

  max-height:85vh;

  border-radius:12px;

  border:3px solid rgba(255,255,255,0.15);

  box-shadow:
    0 0 30px rgba(0,0,0,0.9),
    0 0 60px rgba(143,188,109,0.15);

  animation:zoomIn 0.4s ease;
}

@keyframes zoomIn{

  from{

    transform:scale(0.8);

    opacity:0;
  }

  to{

    transform:scale(1);

    opacity:1;
  }

}

.close-lightbox{

  position:absolute;

  top:25px;
  right:35px;

  font-size:3rem;

  color:white;

  cursor:pointer;

  transition:0.3s ease;
}

.close-lightbox:hover{

  color:#8fbc6d;

  transform:scale(1.1);
}

/* =========================================
   BUTTON
========================================== */

.btn{

  display:inline-block;

  margin-top:40px;

  padding:15px 40px;

  background:#89b86b;

  color:black;

  text-decoration:none;

  font-weight:bold;

  letter-spacing:3px;

  border-radius:4px;

  transition:0.3s ease;
}

.btn:hover{

  transform:scale(1.08);

  background:#b9ef92;

  box-shadow:0 0 30px rgba(137,184,107,0.8);
}

/* =========================================
   FOOTER
========================================== */

footer{

  padding:30px;

  text-align:center;

  background:black;

  color:#777;
}

/* =========================================
   RESPONSIVE
========================================== */

@media(max-width:768px){

  .nav{

    gap:12px;

    padding:18px 10px;

    flex-wrap:wrap;
  }

  .nav a{

    font-size:0.72rem;
  }

  .corner-logo{

    width:50px;
    height:50px;

    top:12px;
  }

  .logo-left{
    left:10px;
  }

  .logo-right{
    right:10px;
  }

  .hero{

    background-attachment:scroll;
  }

  .hero-wrapper{

    padding-top:120px;

    padding-left:15px;
    padding-right:15px;
  }

  .hero h1{

    font-size:2.8rem;

    line-height:1.1;

    letter-spacing:3px;
  }

  .hero h2{

    font-size:0.8rem;

    letter-spacing:2px;
  }

  .hero p{

    font-size:0.95rem;

    padding:0 15px;
  }

  .operators img{

    width:280px;

    max-width:88vw;
  }

  .section{

    padding:20px 20px;
  }

  .section h2{

    font-size:2rem;
  }

  .gallery{

    grid-template-columns:1fr;
  }

  .gallery img{

    height:240px;
  }

  .close-lightbox{

    top:15px;
    right:20px;

    font-size:2.4rem;
  }

}

/* =========================================
   GALLERY PAGE
========================================== */

.gallery-header{

  position:relative;

  min-height:55vh;

  display:flex;

  justify-content:center;
  align-items:center;

  text-align:center;

  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.82)),
    url('https://caosoftair.it/background.jpg');

  background-size:cover;
  background-position:center;

  overflow:hidden;
}

.gallery-header-content{

  position:relative;

  z-index:5;
}

.gallery-header h1{

  font-family:'Black Ops One', cursive;

  font-size:5rem;

  letter-spacing:8px;

  text-shadow:
    0 0 20px rgba(0,0,0,0.9),
    0 0 40px rgba(0,0,0,1);
}

.gallery-header p{

  margin-top:25px;

  font-size:1.2rem;

  color:#d0d0d0;
}

.gallery-page{

  padding:120px 20px;

  background:#090909;
}

.gallery-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit, minmax(280px, 1fr));

  gap:25px;

  max-width:1400px;

  margin:auto;
}

.gallery-grid img{

  width:100%;

  height:320px;

  object-fit:cover;

  border-radius:10px;

  border:2px solid rgba(255,255,255,0.08);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border 0.4s ease;

  box-shadow:0 0 20px rgba(0,0,0,0.6);

  cursor:pointer;
}

.gallery-grid img:hover{

  transform:scale(1.05);

  border-color:#8fbc6d;

  box-shadow:
    0 0 25px rgba(143,188,109,0.35),
    0 0 50px rgba(143,188,109,0.15);
}

/* =========================================
   LIGHTBOX BUTTONS
========================================== */

.lightbox-btn{

  position:absolute;

  top:50%;

  transform:translateY(-50%);

  font-size:4rem;

  color:white;

  cursor:pointer;

  z-index:6000;

  user-select:none;

  transition:0.3s ease;

  padding:20px;
}

.lightbox-btn:hover{

  color:#8fbc6d;

  transform:translateY(-50%) scale(1.1);
}

.prev{
  left:20px;
}

.next{
  right:20px;
}

/* =========================================
   RESPONSIVE GALLERY
========================================== */

@media(max-width:768px){

  .gallery-header h1{

    font-size:2.8rem;

    letter-spacing:3px;
  }

  .gallery-header p{

    font-size:0.95rem;

    padding:0 20px;
  }

  .gallery-grid{

    grid-template-columns:1fr;
  }

  .gallery-grid img{

    height:240px;
  }

  .lightbox-btn{

    font-size:3rem;

    padding:10px;
  }

  .prev{
    left:5px;
  }

  .next{
    right:5px;
  }

}

/* =========================================
   OPERATOR CARDS
========================================== */

.operator-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit, minmax(320px, 1fr));

  gap:35px;

  max-width:1400px;

  margin:auto;
}

.operator-card{

  background:#111;

  border-radius:14px;

  overflow:hidden;

  border:1px solid rgba(255,255,255,0.05);

  transition:0.4s ease;

  box-shadow:
    0 0 25px rgba(0,0,0,0.5);
}

.operator-card:hover{

  transform:translateY(-8px);

  border-color:#8fbc6d;

  box-shadow:
    0 0 30px rgba(143,188,109,0.15);
}

.operator-card img{

  width:100%;

  height:380px;

  object-fit:cover;

  border-bottom:2px solid rgba(255,255,255,0.05);
}

.operator-info{

  padding:30px;
}

.operator-info h3{

  font-family:'Black Ops One', cursive;

  font-size:2rem;

  letter-spacing:3px;

  margin-bottom:10px;

  color:white;
}

.operator-role{

  display:inline-block;

  margin-bottom:25px;

  padding:8px 15px;

  background:#8fbc6d;

  color:black;

  font-weight:bold;

  border-radius:4px;

  letter-spacing:2px;

  font-size:0.85rem;
}

.operator-info ul{

  list-style:none;
}

.operator-info li{

  margin-bottom:14px;

  color:#d0d0d0;

  line-height:1.7;

  border-bottom:
  1px solid rgba(255,255,255,0.05);

  padding-bottom:10px;
}

/* =========================================
   RESPONSIVE OPERATOR CARDS
========================================== */

@media(max-width:768px){

  .operator-grid{

    grid-template-columns:1fr;
  }

  .operator-card img{

    height:300px;
  }

  .operator-info{

    padding:22px;
  }

  .operator-info h3{

    font-size:1.6rem;
  }
}


/* =========================================
   CONTACT PAGE
========================================== */

.contact-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit, minmax(350px, 1fr));

  gap:40px;

  max-width:1300px;

  margin:auto;
}

.contact-card{

  background:#111;

  padding:40px;

  border-radius:14px;

  border:1px solid rgba(255,255,255,0.05);

  transition:0.4s ease;
}

.contact-card:hover{

  transform:translateY(-6px);

  border-color:#8fbc6d;

  box-shadow:
    0 0 25px rgba(143,188,109,0.12);
}

.contact-card h3{

  font-family:'Black Ops One', cursive;

  margin-bottom:30px;

  letter-spacing:3px;

  font-size:1.8rem;
}

.contact-info{

  margin-bottom:20px;

  line-height:1.8;

  color:#d0d0d0;
}

.contact-form{

  display:flex;

  flex-direction:column;

  gap:20px;
}

.contact-form input,
.contact-form textarea{

  width:100%;

  padding:16px;

  background:#1a1a1a;

  border:1px solid rgba(255,255,255,0.08);

  border-radius:8px;

  color:white;

  font-family:'Oswald', sans-serif;

  font-size:1rem;

  transition:0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus{

  outline:none;

  border-color:#8fbc6d;

  box-shadow:
    0 0 10px rgba(143,188,109,0.2);
}

.contact-form textarea{

  min-height:180px;

  resize:vertical;
}

.whatsapp-btn{

  display:inline-flex;

  align-items:center;

  justify-content:center;

  gap:10px;

  margin-top:25px;

  padding:16px 30px;

  background:#25D366;

  color:white;

  text-decoration:none;

  font-weight:bold;

  border-radius:8px;

  transition:0.3s ease;
}

.whatsapp-btn:hover{

  transform:scale(1.05);

  box-shadow:
    0 0 25px rgba(37,211,102,0.4);
}

/* =========================================
   RESPONSIVE CONTACTS
========================================== */

@media(max-width:768px){

  .contact-grid{

    grid-template-columns:1fr;
  }

  .contact-card{

    padding:25px;
  }

}

/* =========================================
   FORM RESULT
========================================== */

#form-result{

  margin-top:20px;

  font-size:1rem;

  font-weight:bold;

  text-align:center;

  padding:14px;

  border-radius:8px;

  transition:0.3s ease;
}

.form-loading{

  background:#222;

  color:#ccc;

  border:1px solid rgba(255,255,255,0.08);
}

.form-success{

  background:rgba(46, 204, 113, 0.15);

  color:#7dffb0;

  border:1px solid rgba(46,204,113,0.3);
}

.form-error{

  background:rgba(231, 76, 60, 0.15);

  color:#ff9b90;

  border:1px solid rgba(231,76,60,0.3);
}

/* =========================================
   FORM STATUS
========================================== */

.form-success{

  margin-bottom:25px;

  padding:15px;

  border-radius:8px;

  background:rgba(46,204,113,0.15);

  border:1px solid rgba(46,204,113,0.3);

  color:#7dffb0;

  text-align:center;

  font-weight:bold;
}

.form-error{

  margin-bottom:25px;

  padding:15px;

  border-radius:8px;

  background:rgba(231,76,60,0.15);

  border:1px solid rgba(231,76,60,0.3);

  color:#ff9b90;

  text-align:center;
}

  /* =========================================
   WHATSAPP TEXTAREA
	========================================== */

.contact-textarea{

  width:100%;

  min-height:200px;
  
  margin-top:20px;

  padding:18px;

  background:#151515;

  color:white;

  border:
  1px solid rgba(255,255,255,0.08);

  border-radius:10px;

  font-family:'Oswald', sans-serif;

  font-size:1rem;

  line-height:1.6;

  resize:vertical;

  transition:0.3s ease;
}

.contact-textarea:focus{

  outline:none;

  border-color:#8fbc6d;

  box-shadow:
    0 0 15px rgba(143,188,109,0.2);
}

.contact-textarea::placeholder{

  color:#888;

  font-weight:bold;
}

/* =========================================
   EVENTS PAGE
========================================== */

.events-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit, minmax(320px, 1fr));

  gap:40px;

  max-width:1400px;

  margin:auto;

  margin-top:60px;
}

/* CARD */

.event-card{

  position:relative;

  overflow:hidden;

  border-radius:14px;

  background:#111;

  transition:0.4s ease;

  border:
  1px solid rgba(255,255,255,0.05);
}

.event-card:hover{

  transform:
  translateY(-8px);

  box-shadow:
  0 0 35px rgba(143,188,109,0.18);

  border-color:#8fbc6d;
}

/* IMG */

.event-image{

  width:100%;

  height:240px;

  object-fit:cover;

  transition:0.5s ease;
}

.event-card:hover .event-image{

  transform:scale(1.08);
}

/* CONTENT */

.event-content{

  padding:30px;
}

.event-type{

  color:#8fbc6d;

  font-size:0.9rem;

  letter-spacing:2px;

  margin-bottom:10px;
}

.event-title{

  font-family:'Black Ops One', cursive;

  font-size:2rem;

  margin-bottom:20px;

  letter-spacing:3px;
}

.event-info{

  line-height:1.8;

  color:#d0d0d0;

  margin-bottom:20px;
}

.event-description{

  color:#aaa;

  line-height:1.8;
}

/* RESPONSIVE */

@media(max-width:768px){

  .event-title{

    font-size:1.5rem;
  }

  .event-content{

    padding:22px;
  }

}