/* Studio Box — home page pubblica (stile Metronic 8 Demo1) */

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }

.bg-light-primary { background-color: #F1FAFF !important; }
.bg-light-success { background-color: #E8FFF3 !important; }
.bg-light-warning { background-color: #FFF8DD !important; }
.bg-light-danger  { background-color: #FFF5F8 !important; }
.bg-light-info    { background-color: #F8F5FF !important; }

/* Header */
.home-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    transition: box-shadow var(--transition-speed);
}

.home-header.scrolled { box-shadow: 0 10px 30px 0 rgba(82, 63, 105, 0.08); }

.home-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-gray-900);
    text-decoration: none;
}

.home-logo img { height: 36px; }

.home-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.home-menu a {
    color: var(--bs-gray-700);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.home-menu a:hover { color: var(--bs-primary); }

.home-btn {
    font-weight: 600;
    border-radius: 0.475rem;
}

.home-btn.btn-primary { background: var(--bs-primary); border-color: var(--bs-primary); }
.home-btn.btn-primary:hover { background: #0095e8; border-color: #0095e8; }

.home-btn-light {
    background: #fff;
    border: 1px solid var(--bs-gray-300);
    color: var(--bs-gray-800);
    font-weight: 600;
    border-radius: 0.475rem;
}

.home-btn-light:hover { background: var(--bs-gray-100); color: var(--bs-primary); }

/* Hero */
.home-hero {
    padding: calc(var(--header-height) + 4rem) 0 5rem;
    background: radial-gradient(circle at 85% 20%, rgba(0, 158, 247, 0.12), transparent 45%), var(--bs-gray-100);
}

.home-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: 2rem;
    background: #F1FAFF;
    color: var(--bs-primary);
    font-size: 0.85rem;
    font-weight: 600;
}

.home-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-gray-900);
    margin-bottom: 1.25rem;
}

.home-hero-text {
    font-size: 1.1rem;
    color: var(--bs-gray-700);
    margin-bottom: 2rem;
}

/* Screenshot */
.home-shot {
    border-radius: var(--card-border-radius);
    background: #fff;
    box-shadow: 0 20px 50px rgba(82, 63, 105, 0.12);
    overflow: hidden;
    border: 1px solid var(--bs-gray-200);
}

.home-shot img { display: block; width: 100%; }

.home-shot-hero { transform: perspective(1200px) rotateY(-6deg); }

.home-shot-placeholder {
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: repeating-linear-gradient(45deg, var(--bs-gray-100), var(--bs-gray-100) 12px, #fff 12px, #fff 24px);
    color: var(--bs-gray-500);
}

.home-shot-placeholder .ki-duotone { font-size: 3rem; color: var(--bs-gray-300); }
.home-shot-placeholder span { font-weight: 600; color: var(--bs-gray-700); }
.home-shot-placeholder small { font-family: monospace; }

/* Sezioni */
.home-section { padding: 5rem 0; }
.home-section-white { background: #fff; }

.home-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.home-section-head h2,
.home-feature-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-gray-900);
}

.home-section-head p,
.home-feature-text {
    color: var(--bs-gray-700);
    font-size: 1.05rem;
}

/* Card funzionalità */
.home-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--bs-gray-200);
    border-radius: var(--card-border-radius);
    padding: 2rem;
    box-shadow: var(--card-box-shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.home-section-white .home-card { background: var(--bs-gray-100); }

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(82, 63, 105, 0.08);
}

.home-card h3,
.home-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--bs-gray-900);
    margin-bottom: 0.6rem;
}

.home-card p,
.home-step p {
    color: var(--bs-gray-700);
    margin-bottom: 0;
}

.home-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.home-card-soon { border-style: dashed; }

.home-soon {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.25rem 0.65rem;
    border-radius: 0.425rem;
    background: #FFF8DD;
    color: #b38b00;
    font-size: 0.75rem;
    font-weight: 600;
}

.home-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.home-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    color: var(--bs-gray-800);
    font-weight: 500;
}

/* Come funziona */
.home-step {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--card-border-radius);
    background: var(--bs-gray-100);
}

.home-step-num {
    width: 36px;
    height: 36px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
}

.home-step-icon {
    display: block;
    font-size: 2rem;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

/* Contatti */
.home-cta {
    padding: 3rem;
    border-radius: var(--card-border-radius);
    background: linear-gradient(135deg, #3B82F6 0%, #1E3A8A 100%);
    color: #fff;
}

.home-cta h2 { font-weight: 700; }
.home-cta p { opacity: 0.9; font-size: 1.05rem; margin-bottom: 1.5rem; }
.home-cta .btn-light { color: var(--bs-primary); }

.home-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-contacts li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0;
    font-weight: 500;
}

.home-contacts-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.475rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.home-contacts a { color: #fff; text-decoration: none; }
.home-contacts a:hover { text-decoration: underline; }

/* Footer */
.home-footer {
    padding: 1.5rem 0;
    background: #fff;
    border-top: 1px solid var(--bs-gray-200);
    color: var(--bs-gray-500);
    font-size: 0.9rem;
}

.home-footer a { color: var(--bs-gray-700); text-decoration: none; }
.home-footer a:hover { color: var(--bs-primary); }

/* Privacy pubblica */
.home-privacy {
    padding: calc(var(--header-height) + 2rem) 0 3rem;
}

.home-privacy .container > div {
    background: #fff;
    border-radius: var(--card-border-radius);
    padding: 2rem;
    box-shadow: var(--card-box-shadow);
}

@media (max-width: 991.98px) {
    .home-shot-hero { transform: none; }
    .home-hero { padding-top: calc(var(--header-height) + 2.5rem); }
    .home-cta { padding: 2rem 1.5rem; }
}

@media (max-width: 575.98px) {
    .home-logo span { display: none; }
}
