/* ============================================================== */
/* 🌟 VARIABILI E STILI DI BASE                                  */
/* ============================================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #e91e63, #9c27b0);
    --purple-dark: #9c27b0;
    --pink-fuchsia: #e91e63;
    --pastel-purple: #e2d1e0;
    --soft-bg: #fdfdfd;
    --text-dark: #333333;
    --text-muted: #666666;
    --merchant-green: #2e7d32;
    --merchant-light: #e8f5e9;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--soft-bg);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================================================== */
/* 🧭 NAVBAR                                                      */
/* ============================================================== */
.navbar {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 125px;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--purple-dark);
}

.btn-app-nav {
    background: var(--primary-gradient);
    color: white !important;
    padding: 10px 22px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(156, 39, 176, 0.2);
    transition: transform 0.2s !important;
}

.btn-app-nav:hover {
    transform: scale(1.05);
}

/* ============================================================== */
/* 🔥 HERO SECTION                                                */
/* ============================================================== */
.hero {
    background: linear-gradient(180deg, #f7edf6 0%, #ffffff 100%);
    padding: 80px 20px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.badge-local {
    background: var(--pastel-purple);
    color: var(--purple-dark);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 20px;
    color: #222;
}

.hero-text p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(233,30,99,0.3);
    transition: transform 0.2s;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    border: 1px solid #ddd;
    transition: background 0.2s;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
}

/* Mockup UI nell'Hero */
.mockup-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
    overflow: hidden;
}

.mockup-header {
    background: var(--pastel-purple);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.status-dot.green { background: #00d053; }

.mockup-header h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.mockup-body {
    padding: 25px;
}

.user-query {
    background: #f4f5f7;
    padding: 12px 15px;
    border-radius: 12px 12px 12px 0;
    font-size: 13.5px;
    margin-bottom: 15px;
    font-style: italic;
}

.ai-reply {
    border-left: 4px solid var(--purple-dark);
    padding-left: 15px;
    font-size: 14.5px;
    margin-bottom: 25px;
}

.mockup-btn {
    display: block;
    text-align: center;
    background: var(--purple-dark);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 13px;
}

/* ============================================================== */
/* 🧱 CARATTERISTICHE / PILASTRI                                  */
/* ============================================================== */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card.animate-green {
    border-top: 4px solid var(--merchant-green);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--pastel-purple);
    color: var(--purple-dark);
    font-size: 24px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-box.verde {
    background: var(--merchant-light);
    color: var(--merchant-green);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================== */
/* 📖 STORIA                                                     */
/* ============================================================== */
.story-section {
    background: #f7f7f8;
    padding: 100px 20px;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.story-avatar-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.avatar-circle {
    background: white;
    border: 2px solid var(--purple-dark);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.avatar-circle.pastel {
    border-color: var(--pink-fuchsia);
}

.avatar-circle span {
    width: 55px;
    height: 55px;
    background: var(--pastel-purple);
    color: var(--purple-dark);
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.avatar-circle.pastel span {
    background: #fce4ec;
    color: var(--pink-fuchsia);
}

.avatar-circle p {
    margin: 0;
    font-weight: bold;
    font-size: 15px;
}

.avatar-circle small {
    color: var(--text-muted);
    font-weight: normal;
}

.section-subtitle {
    color: var(--pink-fuchsia);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.story-text h2 {
    font-size: 32px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 25px;
}

.story-text p {
    color: var(--text-muted);
    font-size: 15.5px;
    margin-bottom: 20px;
}

/* ============================================================== */
/* 🤖 BOT TELEGRAM & CODICE                                       */
/* ============================================================== */
.tech-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.tech-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge-tech {
    background: #e0f2fe;
    color: #03a9f4;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

.tech-text h2 {
    font-size: 32px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 25px;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    margin-bottom: 20px;
    font-size: 15.5px;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tech-list li i {
    color: #00d053;
    font-size: 20px;
    margin-top: 2px;
}

/* Finestra di Anteprima Codice */
.tech-code-preview {
    background: #1e1e24;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.code-header {
    background: #2a2a32;
    padding: 12px 20px;
    color: #aaa;
    font-size: 13px;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-header i {
    color: #3776ab;
}

.tech-code-preview pre {
    margin: 0;
    padding: 25px;
    overflow-x: auto;
}

.tech-code-preview code {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: #f8f8f2;
}

.tech-code-preview .keyword { color: #ff79c6; }
.tech-code-preview .string { color: #f1fa8c; }
.tech-code-preview .comment { color: #6272a4; font-style: italic; }
.tech-code-preview .function { color: #50fa7b; }

/* ============================================================== */
/* ❓ FAQ SECTION                                                 */
/* ============================================================== */
.faq-section {
    background: #f7f7f8;
    padding: 100px 20px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.faq-item {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.01);
}

.faq-item h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--purple-dark);
}

.faq-item p {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-muted);
}

/* ============================================================== */
/* 📝 FORM DI CONTATTO                                            */
/* ============================================================== */
.contact-section {
    padding: 100px 20px;
    background: white;
}

.contact-card {
    max-width: 750px;
    margin: 0 auto;
    background: #fcf6fb;
    border: 1px solid var(--pastel-purple);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.03);
}

.contact-card h2 {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.contact-card > p {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 40px;
}

.landing-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.landing-form label {
    font-size: 13px;
    font-weight: bold;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.landing-form input, .landing-form select {
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14.5px;
    outline: none;
    background: white;
    transition: all 0.2s;
}

.landing-form input:focus, .landing-form select:focus {
    border-color: var(--purple-dark);
    box-shadow: 0 0 8px rgba(156, 39, 176, 0.15);
}

.btn-submit {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(233,30,99,0.3);
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* ============================================================== */
/* 💳 FOOTER                                                      */
/* ============================================================== */
.footer {
    background: #222;
    color: #999;
    text-align: center;
    padding: 30px 20px;
    font-size: 13px;
}

/* ============================================================== */
/* 📱 RESPONSIVE (MOBILE DESIGN)                                  */
/* ============================================================== */
@media (max-width: 968px) {
    .hero-container, .story-container, .tech-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual, .story-image {
        order: -1; /* Mette le grafiche sopra sui dispositivi mobili */
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn-app-nav) {
        display: none; /* Nasconde i link testuali della nav per fare spazio su smartphone */
    }
    .contact-card {
        padding: 25px 20px;
    }
    .hero-text h1 {
        font-size: 32px;
    }
    .main-logo {
        height: 35px; /* Riduciamo l'altezza fissa sul telefono */
        max-width: 200px; /* Limitiamo la larghezza massima */
    }
}

/* Stile aggiornato per rendere le foto del team più grandi */
.team-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    background-color: white; 
    flex-shrink: 0;
}

/* Stile per il box della mail diretta sopra al form */
.direct-email-box {
    background-color: #ffffff;
    border: 1px dashed var(--purple-dark);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 14.5px;
    color: var(--text-dark);
}

.direct-email-box i {
    color: var(--purple-dark);
    font-size: 20px;
}

.direct-email-box a {
    color: var(--pink-fuchsia);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}

.direct-email-box a:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

/* Stile del contenitore del video nativo MP4 */
.video-tech-container {
    max-width: 700px;
    margin: 50px auto 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.video-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Evita che il logo venga tagliato ai lati */
    background-color: #ffffff; /* Forza lo sfondo bianco dietro al logo */
    transition: all 0.4s ease;
}

/* Sfumatura scura leggera solo quando si passa il mouse per far risaltare il tasto Play fucsia */
.video-thumbnail-wrapper:hover .video-preview-img {
    transform: scale(1.02);
    filter: brightness(0.9);
}