@font-face {
  font-family: 'N-GAGE';
  src: url('N-GAGE.ttf') format('truetype');
}

:root {
  --black: #000000;
  --dark: #0a0a0a;
  --mid: #141414;
  --neon-blue: #1fb8ff;
  --neon-purple: #6a3bff;
  --glass-dark: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text-main: #ffffff;
  --text-muted: #cfcfcf;
}

/* GALLERIA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(31, 184, 255, 0.45);
}

/* LIGHTBOX */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

#lightbox-img {
  max-width: 80%;
  max-height: 70vh;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(31, 184, 255, 0.6);
}

#lightbox-desc {
  margin-top: 20px;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
}

/* BOTTONI NAVIGAZIONE */
#prevBtn,
#nextBtn {
  position: fixed;
  top: 50%;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px;
}

#prevBtn {
  left: 40px;
}

#nextBtn {
  right: 40px;
}

#prevBtn:hover,
#nextBtn:hover {
  color: var(--neon-blue);
}

/* CHIUDI */
#closeBtn {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
}

#closeBtn:hover {
  color: var(--neon-blue);
}


/* HERO PICCOLO */
.small-hero {
  padding-top: 120px;
  padding-bottom: 60px;
}

/* MAPPA */
.map-container {
  margin-top: 40px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.25);
}

/* =========================
   SELECT FUTURISTICI
========================= */

.contact-form select {
  width: 100%;
  padding: 14px 45px 14px 15px;

  background: rgba(15, 15, 25, 0.9);
  color: #ffffff;

  border: 1px solid rgba(0, 234, 255, 0.25);
  border-radius: 12px;

  font-size: 15px;
  font-family: 'Inter', sans-serif;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition: all 0.3s ease;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='%23ffffff' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
}

/* Hover */

.contact-form select:hover {
  border-color: #00eaff;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.35);
}

/* Focus */

.contact-form select:focus {
  outline: none;
  border-color: #00eaff;
  box-shadow:
    0 0 10px rgba(0, 234, 255, 0.5),
    0 0 20px rgba(0, 234, 255, 0.25);
}

/* Opzioni menu */

.contact-form select option {
  background: #0f172a;
  color: #ffffff;
  padding: 10px;
}

/* Compatibilità Microsoft Edge */

.contact-form select::-ms-expand {
  display: none;
}


/* LINK DENTRO BUTTON */
.btn-primary a {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  font: inherit;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.8);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  width: 100%;
  border: 0;
}

/* BODY */
body {
  font-family: "Inter", sans-serif;
  background: var(--black);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* SFONDO GIF */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("neon-header.gif") center/cover no-repeat;
  opacity: 0.22;
  filter: blur(3px) brightness(1.35) contrast(1.25) saturate(1.45);
  z-index: -3;
}

/* GRID BACKGROUND */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(#ffffff11 1px, transparent 1px),
    linear-gradient(90deg, #ffffff11 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -2;
}

/* PARTICELLE */
.particles {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(31, 184, 255, 0.35) 2px, transparent 0);
  background-size: 120px 120px;
  mix-blend-mode: screen;
  opacity: 0.25;
  animation: moveParticles 18s linear infinite;
  z-index: -1;
}

@keyframes moveParticles {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-40px, -40px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* HEADER */
header {
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: url("neon-header.gif") center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(1px);
  z-index: -1;
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(31, 184, 255, 0.45), transparent 75%);
  pointer-events: none;
  z-index: -1;
}

header>* {
  position: relative;
  z-index: 2;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  height: 70px;
  filter: drop-shadow(0 0 22px #1fb8ff);
}

.logo-text {
  font-family: 'N-GAGE', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 14px rgba(31, 184, 255, 0.9);
}

.hero h1,
.section-title {
  font-family: 'N-GAGE', sans-serif;
}


/* NAV */
nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  box-shadow: 0 0 8px var(--neon-blue);
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--text-main);
}

nav a:hover::after {
  width: 100%;
}

/* BUTTON */
.btn-primary {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--neon-blue);
  background: radial-gradient(circle at top left, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(31, 184, 255, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(31, 184, 255, 0.9);
}

/* MAIN */
main {
  padding: 40px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 70px;
}

.hero-text h1 {
  font-family: "N-GAGE", sans-serif;
  font-size: 2.8rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(31, 184, 255, 0.7);
}

.hero-text p {
  max-width: 520px;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-visual {
  padding: 24px;
  border-radius: 24px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
}

/* SEZIONI */
section {
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
  color: var(--text-main);
}

/* CARDS */
.services-grid,
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card-glass {
  border-radius: 20px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  padding: 18px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--neon-blue);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CONTATTI */
.contact-info strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-info ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
  font: inherit;
}

.contact-info a:hover {
  color: #1fb8ff;
  text-shadow: 0 0 8px #1fb8ff;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

.contact-card {
  border-radius: 20px;
  background: var(--glass-dark);
  border: 1px solid var(--glass-border);
  padding: 18px;
  backdrop-filter: blur(18px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.field input,
.field textarea {
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
}

/* FOOTER */
footer {
  padding: 20px 60px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* MOBILE */
/* ==========================
   MOBILE RESPONSIVE
========================== */
.hamburger {
  display: none;
  color: white;
  cursor: pointer;
  font-size: 30px;
}

@media(max-width:900px) {

  .hamburger {
    display: block;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    margin-top: 15px;
    background: #111;
    border-radius: 15px;
  }

  nav ul.show {
    display: flex;
  }

  header {
    flex-wrap: wrap;
  }

  header .btn-primary {
    display: none;
  }
}

@media screen and (max-width: 900px) {

  header {
    padding: 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }

  .logo {
    flex: 1;
    min-width: 0;
  }

  .logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo img {
    height: 50px;
  }

  .logo-text {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    width: 100%;
    margin-top: 15px;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 15px;
    padding: 20px;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    text-align: center;
  }

  .btn-primary {
    width: 100%;
    margin-top: 15px;
  }

  main {
    padding: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
  }

  .hero-text p {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .hero-visual {
    width: 100%;
  }

  .section-title {
    font-size: 1.1rem;
    line-height: 1.4;
  }

  .services-grid,
  .solutions-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .card-glass {
    padding: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info li {
    align-items: flex-start;
    word-break: break-word;
  }

  footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 25px 15px;
  }

  footer ul {
    flex-direction: column;
    gap: 10px;
  }

  .map-container iframe {
    height: 250px;
  }

  .whatsapp-float {
    width: 55px;
    height: 55px;
    font-size: 28px;
  }

  #lightbox-img {
    max-width: 95%;
    max-height: 60vh;
  }

  #prevBtn,
  #nextBtn {
    font-size: 2rem;
  }

  #prevBtn {
    left: 10px;
  }

  #nextBtn {
    right: 10px;
  }
}

.g-recaptcha {
  margin-top: 20px;
  margin-bottom: 20px;
}

@media (max-width:768px) {

  nav ul.show {
    display: flex;
    flex-direction: column;
  }

}



header {
  width: 100%;
  max-width: 100%;
}

nav {
  min-width: 0;
}

@media(max-width:900px) {

  header .btn-primary {
    display: none;
  }

}