/* =============================================
   HOME PAGE — styleHome.css
   ============================================= */

/* ---------- SEZIONI HEADER CONDIVISI ---------- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- HERO SPLIT ---------- */
.hero-split {
    padding-top: 110px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.hero-split::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(0,178,255,0.07) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, rgba(255,0,178,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Testo sinistra */
.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--primary-blue);
    background: rgba(0,178,255,0.08);
    border: 1px solid rgba(0,178,255,0.2);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    width: fit-content;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
}

.hero-accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 480px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-ghost:hover {
    gap: 0.8rem;
    color: var(--primary-pink);
}

/* Stats under CTA */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat-n {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.stat-l {
    font-size: 0.75rem;
    color: var(--light-text);
    line-height: 1.2;
}

.hero-stat-sep {
    width: 1px;
    height: 36px;
    background: rgba(0,178,255,0.2);
    flex-shrink: 0;
}

/* PC destra */
.hero-pc {
    height: 420px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,178,255,0.12), 0 0 120px rgba(255,0,178,0.06);
}

/* ---------- PERCHÉ SODATECH ---------- */
.why-section {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-card {
    background: var(--dark-bg);
    border: 1px solid rgba(0,178,255,0.1);
    border-radius: 14px;
    padding: 1.8rem 1.5rem;
    transition: all 0.3s ease;
}

.why-card:hover {
    border-color: rgba(0,178,255,0.35);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,178,255,0.08);
}

.why-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.why-card h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.why-card p {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ---------- SERVIZI HOME ---------- */
.home-services {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.services-grid-home {
    grid-template-columns: repeat(3, 1fr) !important;
}

.service-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.service-card-link:hover .card-arrow {
    gap: 0.7rem;
    color: var(--primary-blue);
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--light-text);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    transition: all 0.2s ease;
}

.service-card p {
    color: var(--light-text);
    font-size: 0.92rem;
    line-height: 1.65;
    flex: 1;
}

/* ---------- APPROCCIO ---------- */
.approach-section {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.approach-text h2 {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.approach-text > p {
    color: var(--light-text);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Riuso stili approach-steps da stylePages.css */

/* Card stack visuale */
.approach-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.approach-card-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.acard {
    background: var(--dark-bg);
    border: 1px solid rgba(0,178,255,0.12);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: var(--light-text);
    transition: all 0.3s ease;
    animation: fadeInCard 0.6s ease both;
}

.acard:hover {
    border-color: rgba(0,178,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,178,255,0.08);
}

.acard .fas {
    color: var(--primary-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.acard-1 { animation-delay: 0.05s; }
.acard-2 { animation-delay: 0.10s; }
.acard-3 { animation-delay: 0.15s; }
.acard-4 { animation-delay: 0.20s; }
.acard-5 { animation-delay: 0.25s; }
.acard-6 { animation-delay: 0.30s; }

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- BLOG PREVIEW ---------- */
.blog-preview-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-preview-card {
    background: var(--darker-bg);
    border: 1px solid rgba(0,178,255,0.1);
    border-radius: 14px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.blog-preview-card:hover {
    border-color: rgba(0,178,255,0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,178,255,0.08);
}

.blog-date-small {
    font-size: 0.78rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    opacity: 0.7;
}

.blog-preview-card h3 {
    font-size: 1rem;
    line-height: 1.4;
}

.blog-preview-card h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-preview-card h3 a:hover {
    color: var(--primary-blue);
}

.blog-preview-card p {
    color: var(--light-text);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ---------- CTA FINALE ---------- */
.home-cta {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.home-cta-box {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(0,178,255,0.2);
    background: var(--dark-bg);
    padding: 4rem;
    text-align: center;
    overflow: hidden;
}

.home-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(0,178,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.home-cta-content {
    position: relative;
    z-index: 1;
}

.home-cta-content h2 {
    font-size: 2.2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.home-cta-content p {
    color: var(--light-text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.home-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-pc {
        height: 300px;
        order: -1;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .why-grid,
    .services-grid-home {
        grid-template-columns: 1fr !important;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .hero-stat-sep {
        display: none;
    }
    .home-cta-box {
        padding: 2.5rem 1.5rem;
    }
    .approach-card-stack {
        grid-template-columns: 1fr;
    }
}
