/* ═══════════════════════════════════════════
   SPEZIERIA HOMEPAGE PRO - Frontend CSS
   Prefisso: .spz-homepage
   Versione: 1.4.6

   ⚠️  Font: NON caricati dal plugin.
       EB Garamond e Lexend Deca sono dal tema XStore.
   ⚠️  Sfondo: ereditato dal contenitore Elementor (#121212)
   ⚠️  Niente !important
   ═══════════════════════════════════════════ */

/* ── WRAPPER ── */
.spz-homepage {
    width: 100%;
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #e0e0e0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */

.spz-homepage__hero {
    padding: 50px 0 0 0;
}

.spz-homepage__hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ── COPY COLUMN ── */
.spz-homepage__copy {
    display: flex;
    flex-direction: column;
}

/* Eyebrow */
.spz-homepage__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(218, 165, 32, 0.12);
    border: 1px solid rgba(218, 165, 32, 0.25);
    border-radius: 100px;
    padding: 6px 16px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #daa520;
    letter-spacing: 0.3px;
    width: fit-content;
    margin-bottom: 24px;
}
.spz-homepage__eyebrow .spz-homepage__icon {
    flex-shrink: 0;
    color: #daa520;
}

/* H1 */
.spz-homepage__h1 {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 42px;
    line-height: 50px;
    color: #ffffff;
    margin: 0 0 20px 0;
    padding: 0;
    letter-spacing: -0.3px;
    text-transform: none;
}
.spz-homepage__h1 em {
    font-style: italic;
    color: #daa520;
}

/* Subtitle */
.spz-homepage__subtitle {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 17px;
    line-height: 27px;
    color: #e0e0e0;
    margin: 0 0 32px 0;
    padding: 0;
    max-width: 500px;
}

/* ── CTA AREA ── */
.spz-homepage__cta-area {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

/* CTA Primary */
.spz-homepage__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #daa520 0%, #c4941a 100%);
    color: #121212;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(218, 165, 32, 0.25);
    cursor: pointer;
    border: none;
    line-height: 1;
}
.spz-homepage__cta-primary:hover {
    background: linear-gradient(135deg, #f0c040 0%, #daa520 100%);
    box-shadow: 0 6px 30px rgba(218, 165, 32, 0.35);
    transform: translateY(-1px);
    color: #121212;
    text-decoration: none;
}
.spz-homepage__cta-primary .spz-homepage__icon {
    color: #121212;
}

/* CTA Secondary */
.spz-homepage__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #daa520;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
    cursor: pointer;
    line-height: 1;
}
.spz-homepage__cta-secondary:hover {
    color: #f0c040;
    text-decoration: none;
}
.spz-homepage__cta-secondary .spz-homepage__icon {
    color: currentColor;
}

/* ── SOCIAL PROOF ── */
.spz-homepage__proof {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}
.spz-homepage__stars {
    display: flex;
    gap: 2px;
    color: #daa520;
}
.spz-homepage__proof-text {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}
.spz-homepage__proof-text strong {
    color: #ffffff;
    font-weight: 600;
}
.spz-homepage__proof-divider {
    width: 1px;
    height: 28px;
    background: #333;
    flex-shrink: 0;
}
.spz-homepage__proof-metric {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    color: #999;
    line-height: 1.3;
}
.spz-homepage__proof-metric strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    display: block;
    margin-bottom: 1px;
}

/* ── VISUAL COLUMN ── */
.spz-homepage__image-frame {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: none;
    border: none;
    /* v1.4.3 - Aspect-ratio fallback (var iniettata inline da PHP) per browser
       che ignorano width/height su <source>. Riserva lo spazio corretto al primo paint. */
    aspect-ratio: var(--spz-hero-aspect-desktop, 4 / 5);
}
.spz-homepage__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder */
.spz-homepage__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #555;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(218, 165, 32, 0.06) 0%, transparent 60%),
        #1a1a1a;
}
.spz-homepage__image-placeholder span {
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Float Badge */
.spz-homepage__float-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.spz-homepage__float-badge-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(218, 165, 32, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #daa520;
}
.spz-homepage__float-badge-text {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.3;
}
.spz-homepage__float-badge-text strong {
    color: #ffffff;
    font-weight: 600;
    display: block;
}

/* ══════════════════════════════════════
   TRUST BAR
   ══════════════════════════════════════ */

.spz-homepage__trust {
    padding: 48px 0 0 0;
    border-bottom: none !important;
}
.spz-homepage__trust::after {
    display: none !important;
    content: none !important;
}

.spz-homepage__trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
}

.spz-homepage__trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    position: relative;
}
.spz-homepage__trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #333;
}

.spz-homepage__trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(218, 165, 32, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #daa520;
}

.spz-homepage__trust-title {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.spz-homepage__trust-desc {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.45;
}

/* ══════════════════════════════════════
   RESPONSIVE - TABLET (max-width: 1024px)
   ══════════════════════════════════════ */

@media (max-width: 1024px) {

    .spz-homepage__hero-grid {
        gap: 40px;
    }

    .spz-homepage__h1 {
        font-size: 36px;
        line-height: 44px;
    }

    .spz-homepage__trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .spz-homepage__trust-item:nth-child(2)::after {
        display: none;
    }
    .spz-homepage__trust-item:nth-child(3),
    .spz-homepage__trust-item:nth-child(4) {
        border-top: 1px solid #333;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE - MOBILE (max-width: 768px)
   Segue style guide: font ridotti, spaziature ridotte
   ══════════════════════════════════════ */

@media (max-width: 768px) {

    /* Body text: 15px/22px da style guide */
    .spz-homepage {
        font-size: 15px;
        line-height: 22px;
    }

    .spz-homepage__hero {
        padding-top: 28px;
    }

    .spz-homepage__hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* v1.4.3 - Aspect-ratio mobile (var iniettata inline da PHP). */
    .spz-homepage__image-frame {
        aspect-ratio: var(--spz-hero-aspect-mobile, 4 / 5);
    }

    /* Immagine sopra il testo su mobile */
    .spz-homepage__visual {
        order: -1;
    }

    .spz-homepage__eyebrow {
        font-size: 12px;
        padding: 5px 12px;
        margin-bottom: 18px;
    }

    /* H1 mobile: ridotto come da style guide pattern */
    .spz-homepage__h1 {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 14px;
    }

    /* Subtitle mobile */
    .spz-homepage__subtitle {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 24px;
        max-width: none;
    }

    /* CTA stacked su mobile */
    .spz-homepage__cta-area {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 28px;
    }
    .spz-homepage__cta-primary {
        justify-content: center;
        padding: 16px 24px;
        width: 100%;
        text-align: center;
    }
    .spz-homepage__cta-secondary {
        justify-content: center;
    }

    /* Social proof stacked */
    .spz-homepage__proof {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 10px;
    }
    .spz-homepage__proof-divider {
        display: none;
    }

    /* Float badge compatto */
    .spz-homepage__float-badge {
        bottom: 12px;
        left: 12px;
        padding: 10px 14px;
        gap: 10px;
    }
    .spz-homepage__float-badge-icon {
        width: 32px;
        height: 32px;
    }
    .spz-homepage__float-badge-text {
        font-size: 12px;
    }

    /* Trust bar singola colonna */
    .spz-homepage__trust {
        padding-top: 32px;
    }
    .spz-homepage__trust-grid {
        grid-template-columns: 1fr;
    }
    .spz-homepage__trust-item::after {
        display: none;
    }
    .spz-homepage__trust-item:not(:first-child) {
        border-top: 1px solid #333;
    }
    .spz-homepage__trust-item {
        padding: 18px 20px;
    }
    .spz-homepage__trust-icon {
        width: 38px;
        height: 38px;
        border-radius: 8px;
    }

}

/* ══════════════════════════════════════
   RESPONSIVE - SMALL MOBILE (max-width: 375px)
   ══════════════════════════════════════ */

@media (max-width: 375px) {

    .spz-homepage__h1 {
        font-size: 25px;
        line-height: 32px;
    }

    .spz-homepage__eyebrow {
        font-size: 11px;
    }

    .spz-homepage__proof-metric strong {
        font-size: 16px;
    }
}

/* ══════════════════════════════════════
   GEO ANSWER CAPSULE - SR-Only
   Leggibile da crawler (Google, GPTBot,
   ClaudeBot, PerplexityBot) ma visivamente
   nascosto. NON usa display:none.
   Pattern W3C accessible hiding.
   ══════════════════════════════════════ */

.spz-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
