/* Discobot Sito - Custom Styles */

:root {
    --brand-purple: #ef3fd6;
    --brand-purple-2: #b820a3;
    --brand-purple-deep: #7c2d92;
    --brand-purple-hover: #d62fbe;
    --brand-soft: #fdebf9;
    --dark: #2b2f31;
    --dark-1: #14151a;
    --dark-2: #0a0a14;
    --dark-3: #1a1f24;
    --muted: #64748b;
    --bg-soft: #f8fafc;
    --border: #e5e7eb;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

main { min-height: 60vh; }
a { text-decoration: none; }
a:hover { text-decoration: none; }

.text-brand { color: var(--brand-purple) !important; }
.bg-brand-soft { background-color: var(--brand-soft) !important; }
.bg-light-soft { background-color: var(--bg-soft) !important; }
.bg-brand { background-color: var(--brand-purple) !important; }

/* Buttons */
.btn-brand {
    background-color: var(--brand-purple);
    border-color: var(--brand-purple);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 24px -10px rgba(239, 63, 214, 0.6);
}
.btn-brand:hover, .btn-brand:focus {
    background-color: var(--brand-purple-hover);
    border-color: var(--brand-purple-hover);
    color: #fff;
    box-shadow: 0 12px 30px -8px rgba(239, 63, 214, 0.7);
}
.btn-brand:active { background-color: var(--brand-purple-2) !important; }
.btn-outline-brand {
    border: 2px solid var(--brand-purple);
    color: var(--brand-purple);
    font-weight: 600;
    background: transparent;
}
.btn-outline-brand:hover {
    background-color: var(--brand-purple);
    color: #fff;
}
.btn-outline-light-brand {
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 600;
    background: transparent;
}
.btn-outline-light-brand:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--brand-purple);
    color: #fff;
}

/* Navbar */
.navbar { padding-top: 1rem; padding-bottom: 1rem; }
.navbar .nav-link { color: var(--dark); font-weight: 500; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--brand-purple); }

/* ========================
   DARK HERO (intro page)
   ======================== */
.hero-dark {
    position: relative;
    overflow: hidden;
    background: #0a0a14 url('/assets/images/illus/hero-bg.svg') center/cover no-repeat;
    color: #fff;
    padding: 6rem 0 7rem;
}
.hero-dark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, #fff 100%);
    pointer-events: none;
}
.hero-dark .badge-neon {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(239, 63, 214, 0.12);
    border: 1px solid rgba(239, 63, 214, 0.4);
    color: #ffc1ee;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
}
.hero-dark h1 {
    font-size: 3.4rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #fff;
}
.hero-dark h1 .text-neon {
    color: var(--brand-purple);
    text-shadow: 0 0 30px rgba(239, 63, 214, 0.7);
}
.hero-dark .lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
}
.hero-dark .hero-bullets {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.hero-dark .hero-bullets li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-dark .hero-bullets i {
    color: var(--brand-purple);
}

/* Robot stage in hero */
.robot-stage {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
}
.robot-stage::before {
    content: "";
    position: absolute;
    inset: 8% 8%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(239, 63, 214, 0.55) 0%, rgba(239, 63, 214, 0.18) 45%, transparent 70%);
    filter: blur(2px);
    animation: pulse 3.5s ease-in-out infinite;
}
.robot-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 10%;
    width: 60%;
    height: 14px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(239, 63, 214, 0.6), transparent 70%);
    filter: blur(6px);
}
.robot-stage img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(239, 63, 214, 0.55))
            drop-shadow(0 0 48px rgba(239, 63, 214, 0.3));
}
.robot-stage .light-beam {
    position: absolute;
    top: -6%;
    left: 50%;
    width: 2px;
    height: 18%;
    background: linear-gradient(180deg, transparent, var(--brand-purple));
    transform: translateX(-50%);
    opacity: 0.5;
}
.robot-stage .equalizer {
    position: absolute;
    bottom: 4%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
    height: 28px;
}
.robot-stage .equalizer span {
    width: 4px;
    background: linear-gradient(180deg, var(--brand-purple), var(--brand-purple-deep));
    border-radius: 2px;
    animation: bars 1.4s ease-in-out infinite;
    transform-origin: bottom;
}
.robot-stage .equalizer span:nth-child(1) { animation-delay: 0s;    height: 60%; }
.robot-stage .equalizer span:nth-child(2) { animation-delay: 0.2s;  height: 90%; }
.robot-stage .equalizer span:nth-child(3) { animation-delay: 0.05s; height: 50%; }
.robot-stage .equalizer span:nth-child(4) { animation-delay: 0.4s;  height: 80%; }
.robot-stage .equalizer span:nth-child(5) { animation-delay: 0.15s; height: 70%; }
.robot-stage .equalizer span:nth-child(6) { animation-delay: 0.3s;  height: 95%; }
.robot-stage .equalizer span:nth-child(7) { animation-delay: 0.1s;  height: 55%; }

@keyframes pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.06); opacity: 0.85; }
}
@keyframes bars {
    0%, 100% { transform: scaleY(1); }
    50%      { transform: scaleY(0.35); }
}

/* ========================
   STATS STRIP
   ======================== */
.stats-strip {
    background: var(--dark-1);
    color: #fff;
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
}
.stat-item .stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-purple);
    line-height: 1;
}
.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* ========================
   ALTERNATING ROWS
   ======================== */
.alt-row {
    padding: 5rem 0;
}
.alt-row + .alt-row {
    border-top: 1px solid var(--border);
}
.alt-row .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-purple);
}
.alt-row h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 1rem;
}
.alt-row .alt-illus {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.3),
                0 0 0 1px rgba(239, 63, 214, 0.08);
    background: var(--dark-2);
    isolation: isolate;
}
.alt-row .alt-illus img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(1) contrast(1.08) brightness(0.95);
}
/* Duotone tint: shadows verso viola scuro, highlights verso magenta brand */
.alt-row .alt-illus::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #1a0820;
    mix-blend-mode: lighten;
    pointer-events: none;
}
.alt-row .alt-illus::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--brand-purple);
    mix-blend-mode: multiply;
    pointer-events: none;
}
.alt-row .feature-list { font-size: 0.98rem; }

/* ========================
   PILLARS (Veloce / Completo / Semplice)
   ======================== */
.pillars-section {
    padding: 5rem 0;
    background:
        radial-gradient(ellipse at 0% 0%, rgba(239, 63, 214, 0.08), transparent 40%),
        radial-gradient(ellipse at 100% 100%, rgba(239, 63, 214, 0.05), transparent 40%),
        var(--bg-soft);
}
.pillar {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: left;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar:hover {
    transform: translateY(-4px);
    border-color: var(--brand-purple);
    box-shadow: 0 25px 40px -25px rgba(239, 63, 214, 0.4);
}
.pillar .pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-deep));
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 24px -10px rgba(239, 63, 214, 0.5);
}
.pillar h5 { font-weight: 800; }
.pillar p { color: var(--muted); margin-bottom: 0; }

/* ========================
   STEPS (numbered, horizontal flow)
   ======================== */
.steps-section {
    padding: 5rem 0;
}
.steps-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-purple);
}
.step-num {
    position: absolute;
    top: -16px;
    left: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-deep));
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -8px rgba(239, 63, 214, 0.6);
}
.step-card h5 { font-weight: 800; margin-top: 0.75rem; }
.step-card p { color: var(--muted); margin-bottom: 0; font-size: 0.95rem; }

@media (max-width: 991.98px) {
    .steps-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .steps-flow { grid-template-columns: 1fr; }
}

/* ========================
   SNATCH BANNER (dark)
   ======================== */
.snatch-banner {
    background:
        radial-gradient(ellipse at 0% 100%, rgba(239, 63, 214, 0.25), transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(124, 45, 146, 0.25), transparent 55%),
        var(--dark-2);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.snatch-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}
.snatch-banner .lead { color: rgba(255, 255, 255, 0.75); }

/* ========================
   FINAL CTA
   ======================== */
.cta-final {
    padding: 5rem 0;
    background: var(--bg-soft);
}
.cta-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.3);
}
.cta-box h2 { font-weight: 800; letter-spacing: -0.02em; }

/* ========================
   PAGE HEADERS (sub-pages)
   ======================== */
.page-header {
    padding: 4rem 0 2.5rem;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(239, 63, 214, 0.08), transparent 50%),
        var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }

/* ========================
   FEATURES PAGE
   ======================== */
.feature-section {
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--border);
}
.feature-section:last-child { border-bottom: 0; }
.feature-section-highlight {
    background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 100%);
    border-radius: 22px;
    padding: 2.5rem;
    border: 1px solid var(--brand-purple);
    margin: 2rem 0;
}
.section-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-soft);
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.section-icon-brand {
    background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-deep));
    color: #fff;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    padding: 0.6rem 0 0.6rem 1.85rem;
    position: relative;
    color: var(--muted);
    border-bottom: 1px dashed var(--border);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--brand-purple);
    position: absolute;
    left: 0;
    top: 0.65rem;
}
.feature-list strong { color: var(--dark); }

/* ========================
   SNATCH PAGE DIAGRAM
   ======================== */
.integration-diagram {
    background: var(--dark-2);
    color: #fff;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 30px 60px -25px rgba(15, 23, 42, 0.4),
                0 0 0 1px rgba(239, 63, 214, 0.15);
}
.diagram-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
.diagram-box img { flex-shrink: 0; }
.diagram-box i {
    font-size: 1.75rem;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.diagram-discobot { border-color: rgba(239, 63, 214, 0.5); }
.diagram-discobot i { background: rgba(239, 63, 214, 0.15); color: var(--brand-purple); }
.diagram-snatch i { background: rgba(255, 255, 255, 0.08); color: #fff; }
.diagram-title { font-weight: 700; font-size: 1.1rem; color: #fff; }
.diagram-sub { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.diagram-arrow {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 1rem 0;
}
.diagram-arrow i { font-size: 1.5rem; display: block; margin-bottom: 0.25rem; }

/* ========================
   CONTACT
   ======================== */
.contact-form .form-control,
.contact-form .form-check-input {
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    border-color: var(--border);
}
.contact-form .form-control:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 0.2rem rgba(239, 63, 214, 0.15);
}
.contact-form .form-label { font-weight: 600; font-size: 0.9rem; }

.contact-info {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border);
}
.contact-info-item:last-child { border-bottom: 0; }
.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--brand-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
    background: var(--dark-2);
    color: #fff;
    border-top: 1px solid rgba(239, 63, 214, 0.15);
}
.footer-links li { padding: 0.35rem 0; }
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-purple); }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 991.98px) {
    .hero-dark { padding: 4rem 0 5rem; }
    .hero-dark h1 { font-size: 2.5rem; }
    .alt-row h2 { font-size: 1.8rem; }
}
@media (max-width: 768px) {
    .hero-dark h1 { font-size: 2.1rem; }
    .alt-row { padding: 3.5rem 0; }
    .pillars-section, .steps-section, .snatch-banner, .cta-final { padding: 3.5rem 0; }
    .page-header h1 { font-size: 2rem; }
    .feature-section-highlight { padding: 1.5rem; }
    .stat-item .stat-value { font-size: 1.7rem; }
}
