/* --- CONFIGURAZIONE GENERALE --- */
:root {
    color-scheme: light only !important;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color-scheme: light !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}


/* --- NAVBAR: FIX LOGO E DIMENSIONI --- */
nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid #eee;
    height: 70px !important; /* Forza l'altezza della barra */
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* QUESTO DEVE FUNZIONARE PER FORZA */
.nav-logo {
    height: 45px !important; /* Forza l'altezza su PC */
    width: auto !important;
    max-width: 150px !important; /* Evita che si allarghi troppo */
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* FIX MOBILE */
@media (max-width: 600px) {
    nav { height: 60px !important; }
    .nav-logo { height: 30px !important; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 0.65rem; }
}

/* --- REINSERIMENTO INFO CONTATTI --- */
.contact-footer-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
}

/* --- SEZIONE CONTATTI DARK TECH --- */
#contatti {
    background: #0a0f1a; /* Lo stesso blu scuro della tecnologia */
    padding: 100px 0;
    color: #ffffff; /* Testo principale bianco */
}

.contact-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
}


/* FORZATURA TOTALE TESTO BIANCO */
.form-control, 
input, 
textarea, 
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    color: #ffffff !important; /* Forza il testo in bianco */
    -webkit-text-fill-color: #ffffff !important; /* Specifico per browser basati su Chrome */
    background-color: transparent !important; /* Evita lo sfondo bianco dell'autofill */
    transition: background-color 5000s ease-in-out 0s; /* Trucco per mantenere lo sfondo scuro */
}

.form-control {
    width: 100%;
    padding: 15px 5px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: inherit;
}

/* Colore del placeholder (il testo suggerito) */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1;
}

.form-control:focus {
    outline: none;
    border-bottom-color: #667eea;
}

.btn-send {
    margin-top: 20px;
    width: 100%;
    padding: 18px;
    background: #667eea; /* Blu acceso per il tasto */
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}

.contact-footer-info {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.6); /* Info telefono in grigio chiaro */
    font-size: 0.9rem;
}
/* --- SEZIONI COMUNI --- */
section {
    min-height: 100vh;
    padding: 5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* --- HOME / HERO --- */
#home {
    background: #EFEDE6;
    color: white;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: #EFEDE6;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    background: #414641;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    background: #343834;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* --- SERVIZI --- */
#main {
    background: white;
    color: #333;
}

.main-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- CONTATTI --- */
#contatti {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item a {
    color: #74b9ff;
    text-decoration: none;
}

/* --- ANIMAZIONI --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-logo { max-width: 200px; }
    .hero-content h1 { font-size: 1.8rem; }
    .services-grid, .contact-info { grid-template-columns: 1fr; }
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}


/* --- SEZIONE SETTORI DARK TECH (ALTO CONTRASTO) --- */
#settori {
    background: #0a0f1a; /* Blu quasi nero per massimo contrasto */
    padding: 100px 0;
    color: #ffffff;
    overflow: hidden;
}

.vertical-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 50px;
}

.market-box {
    flex: 1;
    min-width: 320px;
    max-width: 380px;
    /* Sfondo leggermente più chiaro del fondo pagina per dare profondità */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 45px 35px;
    text-align: left;
    transition: all 0.4s ease;
}

.market-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea; /* Colore brand al passaggio del mouse */
    transform: translateY(-10px);
}

.market-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.market-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff; /* Bianco puro per il titolo */
}

.market-text {
    font-size: 1rem;
    color: #cbd5e1; /* Grigio chiarissimo, molto leggibile sul nero */
    line-height: 1.7;
    margin-bottom: 25px;
}

.market-link {
    color: #818cf8; /* Colore acceso per il link */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- SEZIONE TECNOLOGIA (HIGH-TECH LOOK) --- */
#tecnologia {
    background: #0a0f1a;
    padding: 120px 0;
    color: white;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.tech-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.tech-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Un cerchio luminoso che simula il segnale NFC/Blockchain */
.tech-sphere {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102,126,234,0.2) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(102,126,234,0.3);
    animation: pulse 4s infinite;
}

.tech-content {
    flex: 1.2;
    min-width: 300px;
}

.tech-item {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 3px solid #667eea;
    transition: all 0.3s;
}

.tech-item:hover {
    border-left-color: #ffffff;
    padding-left: 30px;
}

.tech-item h4 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-item p {
    color: #94a3b8;
    line-height: 1.6;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}
