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

:root {
    --bg-warm: #FDF8F3;
    --bg-cream: #FAF3EB;
    --bg-card: rgba(255, 255, 255, 0.7);
    --border-soft: rgba(200, 160, 100, 0.15);
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #8a8a9a;
    --accent-amber: #F59E0B;
    --accent-amber-hover: #D97706;
    --accent-orange: #EA580C;
    --accent-green: #059669;
    --accent-blue: #3B82F6;
    --gradient-hero: linear-gradient(135deg, #FDF8F3 0%, #FEF3C7 30%, #FFDEE2 60%, #E0E7FF 100%);
    --gradient-accent: linear-gradient(135deg, #F59E0B, #EA580C);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    --shadow-soft: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-glow: 0 8px 40px rgba(245,158,11,0.15);
    --radius: 20px;
    --font: 'Outfit', system-ui, sans-serif;
}

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

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

/* ===== ANIMATED BACKGROUND BLOBS ===== */
.bg-blobs {
    position: fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; overflow:hidden;
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}
.blob-1 { width:500px; height:500px; background:#FDE68A; top:-10%; left:-5%; animation-delay:0s; }
.blob-2 { width:400px; height:400px; background:#FECDD3; top:30%; right:-10%; animation-delay:-7s; }
.blob-3 { width:350px; height:350px; background:#C7D2FE; bottom:-5%; left:20%; animation-delay:-14s; }
@keyframes blobFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-50px) scale(1.1); }
    66% { transform: translate(-20px,30px) scale(0.9); }
}

/* ===== CONTAINER ===== */
.container { max-width:1200px; margin:0 auto; padding:0 5%; position:relative; z-index:1; }

/* ===== NAV ===== */
nav {
    position:fixed; top:0; width:100%; z-index:100;
    background: rgba(253,248,243,0.75);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    padding: 1rem 5%;
    display:flex; justify-content:space-between; align-items:center;
    transition: all 0.3s;
}
nav.scrolled { background: rgba(253,248,243,0.95); box-shadow: var(--shadow-soft); }
.logo {
    font-size:1.5rem; font-weight:800; text-decoration:none; color: var(--text-dark);
    display:flex; align-items:center; gap:0.5rem;
}
.logo-icon {
    width:38px; height:38px; border-radius:10px;
    background: var(--gradient-accent);
    display:flex; align-items:center; justify-content:center;
    color:white; font-size:1.2rem; box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.nav-btns { display:flex; gap:0.75rem; align-items:center; }

/* ===== BUTTONS ===== */
.btn {
    display:inline-flex; align-items:center; justify-content:center; gap:0.6rem;
    padding: 0.8rem 1.8rem; border-radius:14px; font-weight:600; font-size:0.95rem;
    text-decoration:none; border:none; cursor:pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    font-family: var(--font);
}
.btn-primary {
    background: var(--gradient-accent); color:white;
    box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}
.btn-primary:hover {
    transform: translateY(-3px); box-shadow: 0 8px 30px rgba(245,158,11,0.45);
}
.btn-secondary {
    background: rgba(0,0,0,0.04); color: var(--text-dark);
    border: 1px solid var(--border-soft);
}
.btn-secondary:hover { background: rgba(0,0,0,0.08); }
.btn-outline-white {
    background: rgba(255,255,255,0.2); color:white;
    border: 1.5px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.35); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-grid { display:grid; grid-template-columns: 1fr 1fr; gap:4rem; align-items:center; }
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900; line-height:1.08; margin-bottom:1.5rem;
    letter-spacing: -1.5px;
}
.hero-content h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text;
}
.hero-content p { font-size:1.15rem; color: var(--text-body); margin-bottom:2rem; max-width:500px; }
.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; margin-bottom:1.5rem; }
.hero-badge {
    display:inline-flex; align-items:center; gap:0.5rem;
    background: rgba(5,150,105,0.08); border:1px solid rgba(5,150,105,0.2);
    color: var(--accent-green); padding:0.5rem 1rem; border-radius:10px;
    font-size:0.9rem; font-weight:500;
}

/* ===== PHONE MOCKUP ===== */
.phone-mockup {
    position:relative; display:flex; justify-content:center; align-items:center;
}
.phone-frame {
    width:280px; height:560px;
    background: linear-gradient(145deg, #1a1a2e, #2d2d44);
    border-radius: 40px; padding:12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2), 0 0 0 2px rgba(255,255,255,0.1);
    position:relative; z-index:2;
    animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
    0%,100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
}
.phone-screen {
    width:100%; height:100%; border-radius:30px; overflow:hidden;
    background: linear-gradient(180deg, #F59E0B 0%, #EA580C 50%, #DC2626 100%);
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    color:white; text-align:center; padding:2rem;
}
.phone-screen .app-icon { font-size:3.5rem; margin-bottom:1rem; }
.phone-screen h3 { font-size:1.3rem; font-weight:700; margin-bottom:0.5rem; }
.phone-screen p { font-size:0.8rem; opacity:0.85; }
.phone-glow {
    position:absolute; width:300px; height:300px;
    background: radial-gradient(circle, rgba(245,158,11,0.3), transparent 70%);
    border-radius:50%; z-index:1;
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,100% { transform:scale(1); opacity:0.5; }
    50% { transform:scale(1.2); opacity:0.8; }
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align:center; margin-bottom:3.5rem;
}
.section-title .badge {
    display:inline-flex; align-items:center; gap:0.5rem;
    background: rgba(245,158,11,0.1); color: var(--accent-amber);
    padding:0.4rem 1rem; border-radius:20px; font-size:0.85rem; font-weight:600;
    margin-bottom:1rem;
}
.section-title h2 {
    font-size: clamp(2rem, 4vw, 2.8rem); font-weight:800;
    letter-spacing:-1px; margin-bottom:1rem;
}
.section-title p { color: var(--text-muted); font-size:1.1rem; max-width:600px; margin:0 auto; }

/* ===== FEATURES ===== */
.features { padding: 5rem 0; }
.features-grid {
    display:grid; grid-template-columns: repeat(3, 1fr); gap:1.5rem;
}
.feature-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding:2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position:relative; overflow:hidden;
}
.feature-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background: var(--gradient-accent); opacity:0;
    transition: opacity 0.3s;
}
.feature-card:hover { transform:translateY(-8px); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity:1; }
.feature-icon {
    width:56px; height:56px; border-radius:16px;
    display:flex; align-items:center; justify-content:center;
    margin-bottom:1.5rem; font-size:1.5rem;
}
.feature-icon.amber { background: rgba(245,158,11,0.1); color: var(--accent-amber); }
.feature-icon.orange { background: rgba(234,88,12,0.1); color: var(--accent-orange); }
.feature-icon.green { background: rgba(5,150,105,0.1); color: var(--accent-green); }
.feature-icon.blue { background: rgba(59,130,246,0.1); color: var(--accent-blue); }
.feature-card h3 { font-size:1.2rem; font-weight:700; margin-bottom:0.75rem; }
.feature-card p { font-size:0.95rem; color: var(--text-body); line-height:1.6; }

/* ===== HOW IT WORKS (STEPS) ===== */
.steps { padding: 5rem 0; }
.steps-grid {
    display:grid; grid-template-columns: repeat(3, 1fr); gap:2rem;
    position:relative;
}
.steps-grid::before {
    content:''; position:absolute; top:55px; left:16.6%; right:16.6%;
    height:2px; background: var(--gradient-accent); opacity:0.2;
}
.step-card { text-align:center; position:relative; }
.step-number {
    width:64px; height:64px; border-radius:50%;
    background: var(--gradient-accent); color:white;
    display:flex; align-items:center; justify-content:center;
    font-size:1.5rem; font-weight:800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(245,158,11,0.3);
    position:relative; z-index:2;
}
.step-card h3 { font-size:1.15rem; font-weight:700; margin-bottom:0.5rem; }
.step-card p { font-size:0.95rem; color: var(--text-body); }

/* ===== PREZZARI SECTION ===== */
.prezzari { padding:5rem 0; }
.prezzari-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1b4e 50%, #1e3a5f 100%);
    border-radius: 24px; padding: 3.5rem;
    color:white; position:relative; overflow:hidden;
}
.prezzari-banner::before {
    content:''; position:absolute; top:-50%; right:-20%; width:500px; height:500px;
    background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%);
    border-radius:50%;
}
.prezzari-grid { display:grid; grid-template-columns: 1fr 1fr; gap:3rem; align-items:center; position:relative; z-index:1; }
.prezzari-grid h2 { font-size:2.2rem; font-weight:800; margin-bottom:1rem; letter-spacing:-0.5px; }
.prezzari-grid p { color:rgba(255,255,255,0.7); font-size:1.05rem; margin-bottom:1.5rem; }
.region-tags { display:flex; flex-wrap:wrap; gap:0.5rem; }
.region-tag {
    padding:0.5rem 1rem; border-radius:10px;
    background: rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.15);
    color:white; font-size:0.85rem; font-weight:500;
    transition: all 0.3s;
}
.region-tag:hover { background: rgba(245,158,11,0.3); border-color: var(--accent-amber); }
.prezzari-stats { display:grid; grid-template-columns: 1fr 1fr; gap:1rem; }
.stat-card {
    background: rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.1);
    border-radius:16px; padding:1.5rem; text-align:center;
}
.stat-card .number { font-size:2rem; font-weight:800; color: var(--accent-amber); }
.stat-card .label { font-size:0.85rem; color:rgba(255,255,255,0.6); margin-top:0.25rem; }

/* ===== PRICING ===== */
.pricing { padding:5rem 0; }
.pricing-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:2rem; max-width:1100px; margin:0 auto; }
.price-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius); padding:3rem 2.5rem;
    text-align:center; position:relative;
    transition: all 0.4s;
}
.price-card:hover { transform:translateY(-5px); box-shadow: var(--shadow-glow); }
.price-card.featured {
    border-color: var(--accent-amber);
    box-shadow: var(--shadow-glow);
    transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-5px); }
.price-badge {
    position:absolute; top:-14px; left:50%; transform:translateX(-50%);
    background: var(--gradient-accent); color:white;
    padding:0.3rem 1.2rem; border-radius:20px;
    font-size:0.75rem; font-weight:700; white-space:nowrap;
}
.price-card h3 { font-size:1.3rem; font-weight:700; margin-bottom:1rem; }
.price-amount { font-size:3rem; font-weight:900; margin-bottom:0.5rem; }
.price-amount span { font-size:1rem; color: var(--text-muted); font-weight:400; }
.price-card ul { list-style:none; text-align:left; margin:1.5rem 0; }
.price-card li {
    padding:0.6rem 0; display:flex; align-items:center; gap:0.6rem;
    font-size:0.95rem; color: var(--text-body);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.price-card li:last-child { border:none; }
.check { color: var(--accent-green); font-weight:bold; }

/* ===== DOWNLOAD CTA ===== */
.download-cta {
    padding:5rem 0;
}
.cta-box {
    background: var(--gradient-accent);
    border-radius: 24px; padding: 4rem 3rem;
    text-align:center; color:white;
    position:relative; overflow:hidden;
}
.cta-box::before {
    content:''; position:absolute; top:-100px; right:-100px;
    width:300px; height:300px;
    background: rgba(255,255,255,0.1); border-radius:50%;
}
.cta-box::after {
    content:''; position:absolute; bottom:-80px; left:-50px;
    width:200px; height:200px;
    background: rgba(255,255,255,0.08); border-radius:50%;
}
.cta-box h2 { font-size:2.5rem; font-weight:800; margin-bottom:1rem; position:relative; z-index:1; }
.cta-box p { font-size:1.1rem; opacity:0.9; margin-bottom:2rem; position:relative; z-index:1; }
.cta-box .btn { position:relative; z-index:1; }
.safe-note {
    display:flex; align-items:center; justify-content:center; gap:0.5rem;
    margin-top:1.5rem; font-size:0.85rem; opacity:0.8;
    position:relative; z-index:1;
}

/* ===== FOOTER ===== */
footer {
    text-align:center; padding:3rem 5%;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted); font-size:0.9rem;
}

/* ===== ANIMATIONS ===== */
.fade-up {
    opacity:0; transform:translateY(30px);
    transition: all 0.7s cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns:1fr; text-align:center; }
    .hero-content p { margin:0 auto 2rem; }
    .hero-actions { justify-content:center; }
    .hero-badge { margin:0 auto; }
    .phone-mockup { margin-top:3rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .prezzari-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    nav { padding:0.8rem 4%; }
    .logo { font-size:1.1rem; }
    .logo-icon { width: 30px; height: 30px; font-size: 1rem; }
    .nav-btns .btn-secondary { display: none; } /* Nascondi pulsanti non essenziali su mobile */
    .nav-btns .btn { padding:0.5rem 0.8rem; font-size:0.8rem; }
    .hero { padding:100px 0 50px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .features-grid, .steps-grid { grid-template-columns:1fr; }
    .steps-grid::before { display:none; }
    .pricing-grid { grid-template-columns:1fr; }
    .price-card.featured { transform:none; }
    .price-card.featured:hover { transform:translateY(-5px); }
    .prezzari-banner { padding:2rem 1.5rem; }
    .prezzari-stats { grid-template-columns:1fr 1fr; }
    .cta-box { padding:2.5rem 1.2rem; }
    .cta-box h2 { font-size:1.6rem; word-break: break-word; }
    .cta-box .btn { font-size: 0.95rem !important; padding: 0.8rem 1.5rem !important; width: 100%; white-space: normal; }
    .safe-note { flex-direction: column; text-align: center; font-size: 0.75rem; }
    .safe-note i { flex-shrink: 0; }
}
@media (max-width: 400px) {
    .hero-content h1 { font-size:1.8rem; }
    .phone-frame { width:220px; height:440px; }
}
