/* =========================================
   1. RESET & VARIABILI GLOBALI
   ========================================= */
:root {
    --bg-dark: #0a0a0a;       
    --text-main: #e0e0e0;     
    --text-muted: #a0a0a0;    
    --accent: #00ffea;        /* Verde/Ciano Neon */
    --accent-glow: rgba(0, 255, 234, 0.4);
    --font-main: 'Space Grotesk', sans-serif;
    --card-bg: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   2. UTILITY & TYPOGRAPHY
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Si adatta automaticamente */
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 { font-size: 2.5rem; margin-bottom: 20px; }

.highlight {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.overline {
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

/* =========================================
   3. HEADER & NAVIGAZIONE
   ========================================= */
.site-header {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}
.dot { color: var(--accent); }

.nav-link { 
    margin-right: 20px; 
    font-weight: 500; 
    font-size: 0.9rem; 
}
.nav-link:hover { color: var(--accent); }

/* =========================================
   4. UI ELEMENTS (Bottoni, Card, Tag)
   ========================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-small {
    border: 1px solid var(--text-muted);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 50px;
}
.btn-small:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-huge {
    padding: 18px 40px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1.2;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 234, 0.1);
}
.btn-huge:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 40px var(--accent-glow);
}

.btn-subtext {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 5px;
    font-weight: 400;
    text-transform: none;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    padding: 140px 0 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-grid-center {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Allinea il titolo principale a sinistra dentro l'area centrale del hero
   mantenendo gli altri elementi (subtitle, CTA) centrati. */
.hero-grid-center h1 {
    text-align: left;
}

.cta-wrapper-big {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* =========================================
   6. SEZIONE TRASFORMAZIONE (Problema -> Soluzione)
   ========================================= */
.transformation-section {
    padding: 100px 0;
    background: #0f0f0f;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.transformation-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transform-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr; /* 3 Colonne PC */
    align-items: stretch;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
}

/* Lato Sinistro */
.problem-side {
    padding: 40px;
    background: rgba(255, 50, 50, 0.02);
    border-right: 1px solid #2a2a2a;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.problem-side h4 { color: #ff5555; margin-bottom: 10px; font-size: 1.1rem; text-transform: uppercase; }
.problem-side p { color: #888; font-size: 0.95rem; }

/* Centro */
.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #444;
    font-size: 1.5rem;
}

/* Lato Destro */
.solution-side {
    padding: 40px;
    background: rgba(0, 255, 234, 0.02);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.solution-side h4 { color: var(--accent); margin-bottom: 10px; font-size: 1.1rem; text-transform: uppercase; }
.solution-side p { color: #fff; font-size: 1rem; }

/* =========================================
   7. VALUE PROPOSITION & CARDS
   ========================================= */
.value-proposition {
    padding: 100px 0;
    text-align: center;
}

.features-grid {
    display: grid;
    gap: 30px;
}
.three-col { grid-template-columns: repeat(3, 1fr); }

.feature-card.minimal {
    background: transparent;
    border: 1px solid #333;
    text-align: left;
    padding: 30px;
    border-radius: 10px;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #222;
}
.big-mail-link {
    display: block;
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 30px 0;
    color: var(--text-main);
}
.big-mail-link:hover { color: var(--accent); }

/* =========================================
   9. FODUS ONE (Pagina Prodotto) STYLES
   ========================================= */
.product-hero { height: 60vh; text-align: center; flex-direction: column; justify-content: center; }
.tag-pill { display: inline-block; background: var(--accent); color: #000; padding: 5px 10px; border-radius: 4px; font-weight: bold; margin-bottom: 20px; }
.module-block { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 100px; }
.module-block.reverse .module-text { order: 2; }
.module-block.reverse .module-visual { order: 1; }
.module-id { font-size: 4rem; font-weight: 700; color: rgba(255,255,255,0.05); display: block; line-height: 1; }
.fake-ui { width: 100%; height: 300px; background: #222; border: 1px solid #333; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #555; }
.feature-list li { margin-bottom: 10px; padding-left: 15px; position: relative; color: #ccc; }
.feature-list li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.specs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.spec-item { background: var(--card-bg); padding: 30px; border-radius: 10px; }


/* =========================================
   10. MOBILE & RESPONSIVE (IL CUORE DEL FIX)
   ========================================= */

@media (max-width: 900px) {
    /* Tablet/Mobile Breakpoint */
    
    /* Header più compatto */
    .nav-link { display: none; } /* Nascondiamo il link prodotto su mobile per spazio */
    
    /* Griglia Trasformazione (La parte che non andava) */
    .transform-item {
        grid-template-columns: 1fr; /* Diventa 1 sola colonna */
        text-align: center;
    }

    .problem-side {
        text-align: left;
        border-right: none;
        border-bottom: 1px solid #2a2a2a;
        padding: 30px 20px;
    }

    .solution-side {
        text-align: left;
        padding: 30px 20px;
    }

    .arrow-icon {
        padding: 18px 0;
        background: #222;
        border-top: 1px solid #2a2a2a;
        border-bottom: 1px solid #2a2a2a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
    }

    /* Ruota solo il simbolo, non il contenitore (previene overflow/sovrapposizioni) */
    .arrow-icon .arrow-symbol {
        display: inline-block;
        transform: rotate(90deg);
        line-height: 1;
    }

    /* Griglie Generali */
    .three-col, .module-block, .specs-grid {
        grid-template-columns: 1fr; /* Tutto a 1 colonna */
    }
    
    /* Fix Ordine Moduli Prodotto */
    .module-block.reverse .module-text { order: 1; }
    .module-block.reverse .module-visual { order: 2; }

    /* Padding ridotti */
    .hero { padding-top: 120px; }
    .section-header h2 { font-size: 2rem; }
    .transformation-section, .value-proposition { padding: 60px 0; }
}