@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Work+Sans:wght@300;400;500;600;700;800&display=swap');

:root{
  --font-display: 'Orbitron', Arial, sans-serif;
  --font-text: 'Work Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-text);
    background-color: #000;
    color: #fff;
    scroll-behavior: smooth;
}
html { background: #000; }

/* il body resta trasparente così si vede il canvas dietro */
body { background: transparent; }

/* Matrix background */
#matrix-bg{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;              /* dietro a tutto */
  pointer-events: none;     /* non blocca click */
  opacity: 0.35;            /* effetto soft, non invasivo */
}

/* Accessibilità / performance: se l’utente preferisce meno animazioni */
@media (prefers-reduced-motion: reduce){
  #matrix-bg{ display:none; }
  body{ background:#000; }
}

.menu-toggle { display: none; }

.testo-azzurro{
    color: #00ffff;
    text-nashadow: 0 0 5px #0ff, 0 0 10px #0ff;
}

a { color: #00ffff; text-decoration: none; }
a:hover { text-decoration: underline; }

.logo-container { display: flex; align-items: center; gap: 10px; }

.logo-small {
    height: 40px;
    transition: all 0.3s ease;
}

.slogan {
    font-size: 1.2rem;
    color: #00ffff;
    font-weight: 600;
    white-space: nowrap;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin: 0.5em 0;
}

.subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1em;
}

.logo {
    max-width: 150px;
    margin-bottom: 1em;
}

.btn {
    display: inline-block;
    padding: 0.7em 1.2em;
    border: 1px solid #00ffff;
    color: #00ffff;
    border-radius: 8px;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #00ffff;
    color: #000;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: #00ffff;
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    background: #00cccc;
    border-color: #00cccc;
    color: #000;
}

.btn-ghost {
    background: transparent;
    color: #00ffff;
}

.btn-ghost:hover {
    background: rgba(0, 255, 255, 0.08);
    color: #00ffff;
    border-color: #00ffff;
}
.btn-black{
    background-color: #000;
}
.navbar {
    position: sticky;
    top: 0px;
    background-color: #111;
    text-align: center;
    padding: 0.5em;
    z-index: 1000;
}

.navbar::after {
    content: "";
    display: block;
    height: 2px;
    width: 100%;
    background: #00ffff;
    box-shadow: 0 0 6px #00ffff;
    margin-top: 6px;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.navbar a {
    font-family: var(--font-display);
    color: white;
    font-weight: bold;
}

/* Pill “Soluzioni” in navbar */
.menu-pill {
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(0, 255, 255, 0.65);
    border-radius: 999px;
    color: #00ffff !important;
    box-shadow: 0 0 0 rgba(0,255,255,0);
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.menu-pill:hover {
    background: rgba(0, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.18);
    transform: translateY(-1px);
    text-decoration: none;
}

.menu-pill-support {
    white-space: nowrap;
}

.support-access-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2rem 0 2.5rem;
    padding: 1.5rem;
    background: rgba(17, 17, 17, 0.92);
    border: 1px solid rgba(0, 255, 255, 0.22);
    border-radius: 16px;
    box-shadow: 0 0 18px rgba(0, 255, 255, 0.08);
}

.support-access-box h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.support-access-box p {
    margin: 0;
}

.support-access-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cta-support {
    min-width: 230px;
}

.section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.section p {
    font-family: var(--font-text);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 1.5em;
}

.section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1em;
    text-align: center;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: transparent;
    font-size: 0.9rem;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.logo-small {
    width: 40px;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s;
}
.navbar.scrolled .logo-small { opacity: 1; }

html { scroll-behavior: smooth; }
.center-text { text-align: center; }

.servizi-grid {
    flex-wrap: wrap;
    justify-content: center;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.servizio-card {
    background-color: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    flex: 1 1 280px;
    max-width: 350px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 rgba(255,255,255,0);
}

.servizio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.servizio-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: icon-pulse 2s infinite;
    color: #00ffff;
}

.servizio-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #00ffff;
}

.servizio-card ul {
    list-style: none;
    padding-left: 1rem;
    font-family: var(--font-text);
    font-size: 18px;
    line-height: 1.7;
    font-weight: 400;
}

.servizio-card ul li::before {
    content: "✔️";
    position: absolute;
    left: 0;
    color: #00ffff;
}

.servizi-cta {
    margin-top: 3rem;
    text-align: center;
}

.servizi-cta .btn { padding: 1rem 2rem; font-size: 1rem; }

/* BOX SOLUZIONI (nuovo) */
.soluzioni-box {
    margin-top: 2.5rem;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background: #000;
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
}

.soluzioni-box h3 {
    font-family: var(--font-display);
    margin: 0 0 0.4rem 0;
}

.soluzioni-box p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.92;
}

.soluzioni-box-left {
    flex: 1 1 auto;
    min-width: 240px;
}

.soluzioni-box-right {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.form-contatti {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-contatti label { font-weight: bold; margin-top: 1rem; }

.form-contatti input,
.form-contatti textarea {
    padding: 0.75rem;
    background-color: #111;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

.form-contatti input:focus,
.form-contatti textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 5px #00ffff66;
}

.form-contatti .btn {
    margin-top: 1rem;
    background-color: #00ffff;
    color: #000;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.form-contatti .btn:hover { background-color: #00cccc; }

.menu li { padding: 1rem; border-top: 1px solid #333; }
/* Card form contatti */
.form-contatti {
    background: #000;                 /* nero pieno */
    border: 1px solid #00ffff;        /* azzurro brand */
    border-radius: 16px;              /* spigoli arrotondati */
    padding: 30px 28px;
    max-width: 700px;
    margin: 30px auto 0 auto;
    position: relative;
    z-index: 2;                       /* sopra il matrix */
    box-shadow: 0 0 25px rgba(0,255,255,0.15);
}
.form-contatti input,
.form-contatti textarea {
    background: #0a0a0a;
    border: 1px solid rgba(0,255,255,0.35);
    border-radius: 8px;
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
}

.form-contatti input:focus,
.form-contatti textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 2px rgba(0,255,255,0.15);
}
.form-title {
    text-align: center;
    color: #00ffff;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 25px;
}
.form-contatti label {
    color: #ddd;
}

.form-contatti a {
    color: #00ffff;
}

@keyframes icon-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.servizio-card ul li {
    font-family: var(--font-text);
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.navbar .slogan {
    font-family: var(--font-display);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.4s ease;
}
.navbar.scrolled .slogan {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (min-width: 769px) {
  .menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: transparent;
    gap: 2rem;
    padding: 0;
  }

  .menu-toggle { display: none; }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: #00ffff;
    }

    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        display: none!important;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        gap: 1rem;
        padding: 1rem 0;
    }

    .menu.active { display: flex!important; }

    .soluzioni-box {
        flex-direction: column;
        align-items: flex-start;

    }

    .soluzioni-box-right {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-family: var(--font-display); font-size: 2rem; }
    .subtitle { font-family: var(--font-display); font-size: 1rem; }
    .section { padding: 2rem 1rem; }
    .servizio-card { padding: 1.5rem; }
}

.logo { animation: logo-bounce 2s ease-out; }
@keyframes logo-bounce {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* === COOKIE BANNER & MODAL === */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.96);
    color: #fff;
    padding: 15px 20px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.7);
    font-size: 0.9rem;
}



.cookie-banner-text { line-height: 1.4; }

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Pulsanti tutti della stessa larghezza */
.cookie-btn {
    flex: 1 1 0;
    text-align: center;
    border: 1px solid #00ffff;
    background: transparent;
    color: #00ffff;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.cookie-btn.primary {
    background: #00ffff;
    color: #000;
    font-weight: 600;
}

.cookie-btn:hover {
    background: #00ffff;
    color: #000;
}

.cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    display: none;
}

.cookie-modal-content {
    background: #080808;
    color: #fff;
    padding: 20px 24px;
    border-radius: 8px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
}

.cookie-modal-content h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.cookie-modal-section {
    margin-top: 15px;
    border-top: 1px solid #222;
    padding-top: 10px;
}

.cookie-modal-section label { font-weight: 600; }

.cookie-modal-description {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 3px;
}

.cookie-modal-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.section-cta{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.quote-float{
  position: fixed;
  right: 20px;
  bottom: 84px; /* sopra WhatsApp */
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #00ffff;
  background: rgba(0,0,0,0.85);
  color: #00ffff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, background 0.25s, border-color 0.25s;
}

.quote-float:hover{
  background: #00ffff;
  color: #000;
  transform: translateY(-1px);
  text-decoration: none;
}
.form-title{
  margin: 0 0 6px 0;
  font-size: 1.6rem;
  color: #00ffff;
  text-align: center;
}

.form-subtitle{
  margin: 0 0 18px 0;
  font-size: 0.95rem;
  color: #cfcfcf;
  text-align: center;
  line-height: 1.5;
}
.form-note{
  margin-top: 8px;
  font-size: 0.75rem;
  color: #9a9a9a;
  text-align: center;
}
.optional-field{
  margin: 10px 0 14px 0;
  padding: 10px 12px;
  border: 1px solid rgba(0,255,255,0.25);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.optional-field summary{
  cursor: pointer;
  color: #cfcfcf;
  font-weight: 700;
  margin-bottom: 10px;
}
.eyebrow {
  margin: 0 0 0.7rem;
  color: #cfcfcf;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-content {
  max-width: 980px;
  margin: 0 auto;
}

.hero-content h1 {
  line-height: 1.15;
}

.hero .subtitle {
  max-width: 820px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  color: #e5e5e5;
}

.hero-payoff {
  font-family: var(--font-display);
  color: #00ffff;
  font-size: 1rem;
  margin: 0.5rem 0 0;
  opacity: 0.9;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 2rem;
}

.tech-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(0,255,255,0.35);
  border-radius: 999px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0,255,255,0.08);
}

.tech-section p {
  color: #ddd;
}
@media (max-width: 480px){
  .quote-float{
    right: 14px;
    bottom: 78px;
    padding: 11px 14px;
  }
}

@media (max-width: 520px){
  .section-cta .btn{
    width: 100%;
    text-align: center;
  }
}
.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Layout banner su schermi più grandi */
@media (min-width: 700px) {
    .cookie-banner-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-right: 230px;
    }
}

@media (max-width: 699px) {
    .cookie-banner-inner {
        padding-right: 0;
    }

    .cookie-banner-buttons {
        justify-content: center;
    }
}

/* ===== CTA HERO ===== */
.hero-actions{
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-btn{
  font-size: 1.05rem;
  padding: 0.85em 1.4em;
  box-shadow: 0 0 18px rgba(0,255,255,0.18);
}

/* ===== WhatsApp floating button ===== */
.whatsapp-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #00ffff;
  background: #00ffff;
  color: #000;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, background 0.25s, border-color 0.25s;
}
.whatsapp-float i{
  font-size: 20px;
  line-height: 1;
}
.whatsapp-float:hover{
  background: #00cccc;
  border-color: #00cccc;
  transform: translateY(-1px);
  text-decoration: none;
}
@media (max-width: 480px){
  .whatsapp-float{
    right: 14px;
    bottom: 140px;
    padding: 11px 14px;
  }
  .whatsapp-label{ display:none; }
}

