/* * DIGITAL MAGIX - TITANIUM HYBRID ENGINE 
 * Versione: 16.0 (Final Marketing Polish)
 */

:root {
    --primary: #10b981;       /* Verde Smeraldo */
    --primary-hover: #059669;
    --accent: #eab308;        /* Oro Premium */
    --bg-deep: #020617;       /* Nero-Blu Profondo */
    --bg-light: #ffffff;      /* Bianco */
    --bg-grey: #f8fafc;       /* Grigio Ghiaccio */
    --text-main: #ffffff;
    --text-dark: #0f172a;     /* Testo scuro */
    --text-muted: #94a3b8;    /* Testo secondario */
    --font-main: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%;
    background: rgba(2, 6, 23, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky; top: 0; z-index: 1000;
}
.logo a { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.menu a { color: #cbd5e1; margin-left: 25px; font-weight: 500; font-size: 0.95rem; }
.menu a:hover { color: #fff; }
.btn-nav {
    background: rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 50px;
    color: #fff !important; border: 1px solid rgba(255,255,255,0.2); font-weight: 600; font-size: 0.9rem;
}

/* --- SEZIONI --- */
.section-dark { 
    background: var(--bg-deep); color: #fff; padding: 100px 5%; 
    border-bottom: 1px solid #1e293b;
}
.section-light { 
    background: var(--bg-light); color: var(--text-dark); padding: 100px 5%; 
}
.section-alt {
    background: var(--bg-grey); color: var(--text-dark); padding: 100px 5%;
}
.container { max-width: 1200px; margin: 0 auto; width: 100%; }

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 40px; 
}

/* --- HERO --- */
.hero-product {
    padding: 130px 5% 100px; text-align: center;
    background: radial-gradient(circle at 50% 20%, #1e293b 0%, #020617 80%);
}
.tag {
    display: inline-block; padding: 6px 14px; border-radius: 30px;
    background: rgba(16, 185, 129, 0.1); color: var(--primary); border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 25px;
}
h1 { 
    font-size: clamp(2.2rem, 5vw, 3.8rem); 
    line-height: 1.15; margin-bottom: 25px; color: #fff; font-weight: 800;
}
.subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 50px; }

/* SLIDER */
.hero-slider-container {
    position: relative; height: 140px; overflow: hidden; margin: 0 auto 50px; max-width: 800px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    padding: 0 20px; display: flex; align-items: center; justify-content: center;
}
.hero-slide {
    position: absolute; width: 100%; text-align: center; opacity: 0; transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-slide.active { opacity: 1; transform: translateY(0); }
.slide-icon { font-size: 2rem; margin-bottom: 10px; display:block; }
.slide-title { font-weight: 800; color: #fff; font-size: 1.2rem; margin-bottom: 5px; text-transform:uppercase; }
.slide-desc { color: #cbd5e1; font-size: 1rem; }

/* --- BOTTONI --- */
.buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-main {
    background: var(--primary); color: #fff; padding: 16px 40px; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; border: none; cursor: pointer;
    font-size: 0.95rem; box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3); transition: 0.3s;
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5); }
.btn-outline {
    background: transparent; color: #fff; padding: 16px 40px; border-radius: 50px;
    font-weight: 700; border: 2px solid rgba(255,255,255,0.2); cursor: pointer; font-size: 0.95rem;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* --- DEMO --- */
.mockup-display { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-top: 60px; }
.phone-container { text-align: center; width: 280px; }
.phone-label { font-weight: 800; font-size: 0.8rem; margin-bottom: 15px; text-transform: uppercase; color: #555; }
.phone-frame {
    border: 12px solid #1e293b; border-radius: 35px; overflow: hidden;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.25); background: #000; aspect-ratio: 9/19;
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; }

/* TABS */
.tabs-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
    padding: 10px 25px; border-radius: 50px; background: #fff; border: 2px solid #e2e8f0; 
    color: #64748b; cursor: pointer; font-weight: 700; transition: 0.3s;
}
.tab-btn:hover, .tab-btn.active { background: #1e293b; color: #fff; border-color: #1e293b; }

/* --- FEATURES (LIGHT) --- */
.feature-box-light {
    background: #fff; padding: 30px; border-radius: 20px; 
    border: 1px solid #e5e7eb; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.feature-box-light:hover { transform: translateY(-5px); border-color: var(--primary); }
.icon-box { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.feature-box-light h3 { font-size: 1.3rem; margin-bottom: 10px; font-weight: 700; }

/* --- PREZZI (FIX SOVRAPPOSIZIONE) --- */
.card-price-dark {
    background: #0f172a; border: 1px solid #1e293b; padding: 40px; border-radius: 25px;
    display: flex; flex-direction: column; height: 100%; min-height: 500px; /* Altezza minima per evitare schiacciamento */
}
.card-premium { 
    border: 2px solid var(--accent); background: linear-gradient(160deg, #0f172a 0%, #2a2208 100%); 
    transform: scale(1.05); z-index: 10; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.price-header { margin-bottom: 20px; } /* Contenitore per separare titolo e prezzo */

/* Prezzo tagliato: Sistemato per non sovrapporsi */
.old-price-pop { 
    text-decoration: line-through; color: #ef4444; font-size: 1.4rem; 
    display: block; margin-bottom: 5px; opacity: 0.8; font-weight: 600; 
}
.current-price { font-size: 3.5rem; font-weight: 800; color: #fff; line-height: 1; display:block; }
.price-unit { font-size: 1rem; color: #94a3b8; font-weight: 400; }

.price-list li { margin-bottom: 12px; font-size: 0.9rem; display: flex; align-items: flex-start; gap: 10px; color: #e2e8f0; line-height: 1.4; }

/* --- SITO WEB BOX (FIX TESTI) --- */
.web-titanium-box {
    background: radial-gradient(circle at 100% 0%, #1e293b 0%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.15); 
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border-radius: 30px; padding: 0; position: relative; overflow: hidden; margin-top: 40px;
}
.web-content-wrapper { padding: 50px; position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 50px; }

.exclusive-text { 
    color: var(--primary); font-weight: 700; font-size: 0.9rem; 
    text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.web-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 30px; }
.web-feature-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px; border-radius: 16px;
}
.web-feature-item strong { color: #fff; font-size: 1rem; display:block; margin-bottom:5px; }
.web-feature-item span { color: #cbd5e1; font-size: 0.85rem; }

.price-card-web {
    background: #020617; border: 1px solid #333; border-radius: 25px; padding: 40px;
    text-align: center; flex: 1; min-width: 280px;
}
.web-price-old { text-decoration: line-through; color: #ef4444; font-size: 1.5rem; font-weight: 600; display:block; margin-bottom:5px; }
.web-price-new { font-size: 4.5rem; font-weight: 800; color: #fff; line-height: 1; }
.setup-badge {
    background: var(--primary); color: #fff; font-weight: 800; font-size: 0.85rem; padding: 10px 20px;
    border-radius: 25px; position: absolute; top: 30px; right: 30px; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* --- CALCOLATORE (FIX SCONTRINO MEDIO) --- */
.calc-box-light {
    background: #fff; border-radius: 25px; padding: 40px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid #e2e8f0;
    display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
}
.calc-left { flex: 1; min-width: 300px; }
.calc-right { flex: 1; min-width: 300px; }

.calc-input {
    width: 100%; padding: 15px; border-radius: 10px; border: 2px solid #e2e8f0; 
    background: #f8fafc; font-size: 1rem; color: #1e293b; margin-bottom: 20px;
}
.calc-result-box {
    background: #f0fdf4; border: 2px solid var(--primary); color: #064e3b;
    padding: 30px; border-radius: 20px; text-align: center;
}

/* --- FORM CONTATTO (FIX PRIVACY) --- */
.contact-form-light {
    background: #fff; padding: 40px; border-radius: 20px; 
    border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.contact-form-light input {
    width: 100%; padding: 15px; background: #fff; border: 2px solid #e2e8f0;
    border-radius: 10px; font-size: 1rem; color: #1e293b; margin-bottom: 0;
}
.privacy-check {
    display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #334155; margin-top: 15px;
}
.privacy-check input { width: 20px; height: 20px; border: 2px solid #ccc; cursor: pointer; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.4rem; }
    .web-content-wrapper, .calc-box-light { padding: 30px; flex-direction: column; }
    .price-card-web, .calc-left, .calc-right { width: 100%; }
    .setup-badge { position: relative; top: 0; right: 0; display: inline-block; margin-bottom: 15px; }
    .web-price-new { font-size: 3.5rem; }
}