  :root {
    --bg: #1e2124;
    --bg2: #252830;
    --bg3: #2d3139;
    --cyan: #00c8e8;
    --cyan2: #00a0c0;
    --cyan-glow: rgba(0,200,232,0.18);
    --white: #f0f4f8;
    --muted: #8b9aaa;
    --border: rgba(0,200,232,0.18);
    --radius: 12px;
    --font-head: 'Sora', sans-serif;
    --font-mono: 'Space Mono', monospace;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--bg); color: var(--white); font-family: var(--font-head); overflow-x: hidden; }
  body::before {
    content: ''; position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: .4;
  }
/* --- NAVIGAZIONE PRINCIPALE --- */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: 110px;
    background: rgba(30, 33, 36, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    flex: 0 0 250px;
    display: flex;
    align-items: center;
    z-index: 1002;
}

.nav-logo img {
    height: 200px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.nav-logo img:hover {
    transform: translateY(-50%) scale(1.05);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--cyan); }

.nav-cta-wrapper {
    flex: 0 0 250px;
    display: flex;
    justify-content: flex-end;
}

.nav-cta {
    background: var(--cyan);
    color: var(--bg);
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* --- HAMBURGER --- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
    border-radius: 2px;
}

/* --- MOBILE MENU (TENDINA) --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(30, 33, 36, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-logo img {
    height: 100px;
    margin-bottom: 2rem;
}

.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .nav-links, .nav-cta-wrapper { display: none; }
    .hamburger { display: flex; }
    .nav-logo img { height: 120px; } /* Logo un po' più piccolo su tablet/mobile */
}
.nav-logo img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px var(--cyan));
}
  .nav-logo span { color: var(--cyan); }
  .nav-links { display: flex; gap: 2rem; list-style: none; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; letter-spacing: .04em; transition: color .2s; }
  .nav-links a:hover { color: var(--cyan); }
  .nav-cta { background: var(--cyan); color: var(--bg); padding: .55rem 1.4rem; border-radius: 6px; font-weight: 700; font-size: .9rem; text-decoration: none; transition: background .2s, transform .15s; }
  .nav-cta:hover { background: var(--cyan2); transform: translateY(-1px); }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
  .hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: all .3s; }
  /* --- STILE TENDINA MOBILE --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(30, 33, 36, 0.98); /* Sfondo scuro coerente con il brand */
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

/* Quando il menu ha la classe .open (aggiunta via JS) */
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

/* Logo centrale nel menu mobile */
.mobile-logo img {
    height: 200px; /* Dimensione ridotta rispetto al desktop per mobile */
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--cyan-glow));
}

/* Link all'interno della tendina */
.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--cyan);
}

/* Pulsante di chiusura (X) */
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
}
  .mobile-menu a { color: var(--white); text-decoration: none; font-size: 1.8rem; font-weight: 700; transition: color .2s; }
  .mobile-menu a:hover { color: var(--cyan); }
  .mobile-menu .close-btn { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }
  .hero { min-height: 100vh; display: flex; align-items: center; padding: 8rem 2rem 4rem; position: relative; overflow: hidden; }
  .hero-grid { position: absolute; inset: 0; opacity: .06; background-image: linear-gradient(var(--cyan) 1px, transparent 1px), linear-gradient(90deg, var(--cyan) 1px, transparent 1px); background-size: 60px 60px; }
  .hero-glow { position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(0,200,232,.12), transparent 70%); pointer-events: none; }
  .hero-inner { max-width: 1100px; margin: auto; position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  .hero-tag { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
  .hero-tag::before { content: ''; display: block; width: 30px; height: 1px; background: var(--cyan); }
  .hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.4rem; }
  .hero h1 em { font-style: normal; color: var(--cyan); }
  .hero p { font-size: 1.1rem; color: var(--muted); line-height: 1.75; max-width: 480px; margin-bottom: 2.4rem; }
  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary { background: var(--cyan); color: var(--bg); padding: .8rem 2rem; border-radius: 7px; font-weight: 700; font-size: .95rem; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: .5rem; }
  .btn-primary:hover { background: var(--cyan2); transform: translateY(-2px); }
  .btn-outline { border: 1px solid var(--border); color: var(--white); padding: .8rem 2rem; border-radius: 7px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: all .2s; display: inline-flex; align-items: center; gap: .5rem; }
  .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
  .hero-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 60px rgba(0,200,232,.08); animation: float 5s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
  .card-bar { background: var(--bg3); padding: .7rem 1rem; display: flex; align-items: center; gap: .5rem; }
  .dot { width: 10px; height: 10px; border-radius: 50%; }
  .dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
  .card-title { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-left: .5rem; }
  .card-code { padding: 1.4rem 1.6rem; font-family: var(--font-mono); font-size: .75rem; line-height: 1.9; }
  .c-comment { color: #546e85; } .c-key { color: #cf8bfb; } .c-str { color: #a8d8a0; } .c-fn { color: var(--cyan); } .c-num { color: #f7b76c; } .c-val { color: var(--white); }
  section { padding: 6rem 2rem; position: relative; }
  .section-inner { max-width: 1100px; margin: auto; }
  .section-tag { font-family: var(--font-mono); font-size: .75rem; color: var(--cyan); letter-spacing: .15em; text-transform: uppercase; margin-bottom: .8rem; }
  .section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 1rem; line-height: 1.15; }
  .section-sub { color: var(--muted); max-width: 560px; line-height: 1.7; margin-bottom: 3.5rem; }
  #servizi { background: var(--bg2); }
  .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; }
  .service-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform .25s, border-color .25s, box-shadow .25s; position: relative; overflow: hidden; }
  .service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--cyan-glow), transparent); opacity: 0; transition: opacity .3s; }
  .service-card:hover { transform: translateY(-5px); border-color: var(--cyan); box-shadow: 0 12px 40px rgba(0,200,232,.12); }
  .service-card:hover::before { opacity: 1; }
  .service-icon { width: 48px; height: 48px; background: var(--cyan-glow); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; font-size: 1.4rem; }
  .service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
  .service-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }
  .stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 2rem; margin-top: 4rem; text-align: center; }
  .stat-num { font-size: 2.8rem; font-weight: 800; color: var(--cyan); font-family: var(--font-mono); line-height: 1; }
  .stat-label { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  .about-img-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; position: relative; overflow: hidden; }
  .about-img-box::after { content: ''; position: absolute; top: -50%; right: -30%; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(0,200,232,.12), transparent 70%); }
  .avatar-initials { width: 100px; height: 100px; border-radius: 50%; background: var(--cyan); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; }
  .about-img-box h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .3rem; }
  .about-img-box .role { color: var(--cyan); font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; }
  .tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
  .tag { background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; padding: .3rem .8rem; font-family: var(--font-mono); font-size: .72rem; color: var(--cyan); }
  .about-text p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; }
  #appuntamento { background: var(--bg2); }
  .booking-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
  .booking-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
  .booking-info p { color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
  .contact-list { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
  .contact-list li { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; }
  .contact-list a { color: var(--cyan); text-decoration: none; }
  .booking-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
  .booking-form h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 2rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.2rem; }
  .form-group label { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
  .form-group input, .form-group select, .form-group textarea { background: var(--bg2); border: 1px solid var(--border); border-radius: 7px; color: var(--white); padding: .75rem 1rem; font-family: var(--font-head); font-size: .9rem; transition: border-color .2s, box-shadow .2s; outline: none; }
  .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,200,232,.12); }
  .form-group select option { background: var(--bg2); }
  .form-group textarea { resize: vertical; min-height: 100px; }
  .form-submit { background: var(--cyan); color: var(--bg); border: none; border-radius: 7px; padding: .9rem 2rem; font-family: var(--font-head); font-size: 1rem; font-weight: 700; cursor: pointer; width: 100%; transition: background .2s, transform .15s; display: flex; align-items: center; justify-content: center; gap: .5rem; }
  .form-submit:hover { background: var(--cyan2); transform: translateY(-1px); }
  .form-success { display: none; text-align: center; padding: 3rem 1rem; flex-direction: column; align-items: center; gap: 1rem; }
  .form-success .check { font-size: 3rem; color: var(--cyan); }
  .form-success h4 { font-size: 1.4rem; font-weight: 700; }
  .form-success p { color: var(--muted); }
  footer { background: var(--bg); border-top: 1px solid var(--border); padding: 3rem 2rem; text-align: center; }
  footer .f-logo { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
  footer .f-logo span { color: var(--cyan); }
  footer p { color: var(--muted); font-size: .85rem; }
  footer .f-links { display: flex; gap: 1.5rem; justify-content: center; margin: 1.2rem 0; }
  footer .f-links a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s; }
  footer .f-links a:hover { color: var(--cyan); }
  .reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; } .reveal-delay-3 { transition-delay: .3s; }
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; } .hero-card { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } .booking-wrap { grid-template-columns: 1fr; }
    .nav-links, .nav-cta { display: none; } .hamburger { display: flex; } .form-row { grid-template-columns: 1fr; }
  }
  @media (max-width: 500px) { nav { padding: 1rem; } section { padding: 4rem 1.2rem; } .hero { padding: 7rem 1.2rem 3rem; } .booking-form { padding: 1.5rem; } }

  /* --- STILE WIDGET WHATSAPP --- */
  .wa-widget-left {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
}

.wa-link {
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-link:hover {
    background-color: #128c7e;
    transform: scale(1.05);
    color: white;
}

.wa-link img {
    width: 25px;
    height: 25px;
    margin-right: 10px;
}

/* Bottone per chiudere il widget */
#wa-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

#wa-close:hover {
    background-color: #000;
}




.booking-form {
  width: 100%;
}

.booking-header {
  margin-bottom: 2rem;
}

.booking-header h3 {
  margin-bottom: 1rem;
}

.booking-header p {
  color: #a1a1aa;
  line-height: 1.6;
}

.agenda-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #09090b;
}

.agenda-wrapper iframe {
  display: block;
  width: 100%;
  min-height: 850px;
}



.map-wrapper {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
}

.map-text {
  margin-top: 1rem;
  color: #a1a1aa;
  line-height: 1.6;
}