/* ============================================
   ZONZINI STAIRCLIMBERS - HOME CSS
   Stili specifici SOLO per la homepage
   ============================================ */

/* ============================================
   HOMEPAGE HEADER
   Trasparente, tutto a sinistra
   ============================================ */

.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) var(--layout-margin);
    background: transparent;
    transition: all var(--transition-base);
}

.home-header.scrolled {
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(10px);
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.home-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.home-header .header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

/* Logo testo */
.logo-text {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.logo-text:hover {
    color: white;
    opacity: 0.8;
}

/* Icona contatto busta */
.header-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: opacity var(--transition-fast);
}

.header-contact:hover {
    opacity: 0.7;
    color: white;
}

.header-contact svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Menu toggle homepage - 2 linee */
.home-header .menu-toggle {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 12px;
}

.home-header .menu-toggle:hover {
    opacity: 0.7;
}

.home-header .menu-toggle span {
    display: block;
    height: 2px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.home-header .menu-toggle span:first-child {
    width: 24px;
}

.home-header .menu-toggle span:nth-child(2) {
    width: 19px; /* 20% più corta */
}

/* Stato attivo: X */
.home-header .menu-toggle.active span:first-child {
    width: 24px;
    transform: rotate(45deg) translate(3.5px, 3.5px);
}

.home-header .menu-toggle.active span:nth-child(2) {
    width: 24px;
    transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* ============================================
   FULLSCREEN MENU
   Background grigio, voci a sinistra, full screen
   ============================================ */

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-secondary); /* Grigio #262626 */
    z-index: 999;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Full screen, no container limit */
.fullscreen-menu-inner {
    width: 100%;
    padding: 0 var(--layout-margin);
}

.menu-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-nav li {
    overflow: hidden;
    line-height: 1;
}

/* Voci menu: grandi, adattive a tutto schermo */
.menu-nav a {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 8rem); /* Grande e adattivo */
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1.1;
    padding: 0.1em 0;
    letter-spacing: -0.02em;
}

.menu-nav a:hover {
    opacity: 0.7;
}

/* Ogni lettera è uno span con classe .char */
.menu-nav .char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quando menu è attivo, le lettere salgono */
.fullscreen-menu.active .menu-nav .char {
    transform: translateY(0);
    opacity: 1;
}

/* Language switcher nel menu */
.menu-lang {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.8s, transform 0.4s ease 0.8s;
}

.fullscreen-menu.active .menu-lang {
    opacity: 1;
    transform: translateY(0);
}

.menu-lang a {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
}

.menu-lang a:hover,
.menu-lang a.active {
    color: white;
}

/* Body quando menu è aperto */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   HOMEPAGE HERO
   Prima sezione con sfondo rosso principale
   Layout: H1 a sinistra, tagline a destra, prodotti sotto
   ============================================ */

.home-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: var(--space-3xl) var(--layout-margin) 0;
    padding-top: calc(80px + var(--space-2xl)); /* Spazio per header */
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.home-hero-content {
    width: 100%;
    padding: 0 var(--layout-margin);
    position: relative;
    z-index: 1;
}

/* Griglia Hero: H1 a sinistra, tagline a destra */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: end;
    margin-bottom: var(--space-2xl);
}

.hero-col-left {
    /* Colonna H1 */
}

.hero-col-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-bottom: var(--space-lg);
}

/* H1 Hero */
.home-hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 800;
    color: white;
    line-height: 0.95;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Tagline "Per Professionisti" */
.hero-tagline {
    font-family: var(--font-secondary); /* Noto Serif - corsivo */
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: white;
    margin: 0;
    line-height: 1.2;
}

/* ============================================
   HERO PRODUCTS - Riga di 4 carrelli
   ============================================ */

.hero-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    align-items: flex-end;
    margin-top: auto;
}

.hero-product {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-product img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

/* Prodotto in evidenza con card */
.hero-product-featured {
    position: relative;
}

.hero-product-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
}

.hero-product-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

.hero-product-card::after {
    content: '↗';
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--color-secondary);
}

.product-card-name {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
}

.product-card-desc {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 400;
    color: var(--color-secondary);
}

/* ============================================
   RESPONSIVE HERO
   ============================================ */

@media (max-width: 1200px) {
    .hero-products {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
    }
    
    .hero-product img {
        max-width: 220px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .hero-col-right {
        justify-content: flex-start;
        padding-bottom: 0;
    }
    
    .hero-products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .hero-product img {
        max-width: 200px;
    }
    
    .hero-product-card {
        transform: translate(-20%, -50%);
    }
}

@media (max-width: 576px) {
    .home-hero {
        padding-top: calc(60px + var(--space-xl));
    }
    
    .home-hero h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .hero-tagline {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
    
    .hero-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-product img {
        max-width: 150px;
    }
    
    .hero-product-card {
        padding: var(--space-sm) var(--space-md);
        min-width: 120px;
    }
}

/* ============================================
   HOMEPAGE INTRO SECTION
   Sezione card bianca boxed
   ============================================ */

.home-intro {
    background: var(--color-primary); /* Rosso come hero */
    padding: var(--layout-margin);
}

.home-intro-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-4xl);
}

.home-intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.home-intro-content h2 {
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
}

.home-intro-content p {
    font-size: var(--font-size-body);
    line-height: var(--line-height-loose);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.home-intro-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-intro-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

/* Placeholder emoji per demo */
.home-intro-image .emoji-placeholder {
    font-size: 8rem;
}

@media (max-width: 992px) {
    .home-intro-card {
        padding: var(--space-2xl);
    }
    
    .home-intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .home-intro-image {
        order: -1;
    }
}

/* ============================================
   HOMEPAGE STACKING - COLORI CUSTOM
   ============================================ */

.home-stacking-1 {
    background: #e63946;
    color: white;
}

.home-stacking-2 {
    background: #457b9d;
    color: white;
}

.home-stacking-3 {
    background: #2a9d8f;
    color: white;
}

.home-stacking-1 h2,
.home-stacking-2 h2,
.home-stacking-3 h2 {
    color: white;
}

/* ============================================
   HOMEPAGE PINNED - COLORI CUSTOM
   ============================================ */

.home-pinned-left {
    background: #264653;
}

.home-pinned-panel-1 { background: #e9c46a; }
.home-pinned-panel-2 { background: #f4a261; }
.home-pinned-panel-3 { background: #e76f51; }

/* ============================================
   HOMEPAGE HORIZONTAL - COLORI CUSTOM
   ============================================ */

.home-horizontal-1 { background: #9b5de5; color: white; }
.home-horizontal-2 { background: #f15bb5; color: white; }
.home-horizontal-3 { background: #fee440; color: var(--color-secondary); }
.home-horizontal-4 { background: #00bbf9; color: white; }

.home-horizontal-1 h2,
.home-horizontal-2 h2,
.home-horizontal-4 h2 {
    color: white;
}

.home-horizontal-3 h2,
.home-horizontal-3 p {
    color: var(--color-secondary);
}

/* ============================================
   HOMEPAGE FEATURES
   Griglia caratteristiche
   ============================================ */

.home-features {
    background: var(--color-gray-100);
    padding: var(--space-5xl) var(--layout-margin);
}

.home-features-inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.home-features h2 {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.home-feature-item {
    text-align: center;
    padding: var(--space-xl);
}

.home-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
}

.home-feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.home-feature-item h4 {
    margin-bottom: var(--space-sm);
}

.home-feature-item p {
    font-size: var(--font-size-small);
    color: var(--color-text-light);
    line-height: var(--line-height-loose);
}

@media (max-width: 992px) {
    .home-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .home-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HOMEPAGE CTA SECTION
   Call to action finale
   ============================================ */

.home-cta {
    background: var(--color-primary);
    color: white;
    padding: var(--space-5xl) var(--layout-margin);
    text-align: center;
}

.home-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.home-cta h2 {
    color: white;
    margin-bottom: var(--space-lg);
}

.home-cta p {
    font-size: var(--font-size-large);
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
}

.home-cta .btn {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.home-cta .btn:hover {
    background: var(--color-gray-100);
    border-color: var(--color-gray-100);
}

/* ============================================
   HOMEPAGE GALLERY EFFECTS
   Galleria demo effetti (opzionale)
   ============================================ */

.effects-gallery {
    padding: var(--space-4xl) var(--layout-margin);
    background: #111;
}

.effects-gallery h2 {
    font-size: var(--font-size-h2);
    color: white;
    text-align: center;
    margin-bottom: var(--space-md);
}

.effects-gallery > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-4xl);
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.effect-item {
    position: relative;
}

.effect-label {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.effect-box {
    background: linear-gradient(135deg, #2a2a4a, #1a1a2e);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.effect-box h3 {
    font-size: var(--font-size-h5);
    color: white;
    margin-bottom: var(--space-sm);
}

.effect-box p {
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-md);
}

.effect-box code {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    background: rgba(227, 6, 19, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Colori varianti effect boxes */
.effect-box.bg-1 { background: linear-gradient(135deg, #e63946, #c62828); }
.effect-box.bg-2 { background: linear-gradient(135deg, #457b9d, #1d4e89); }
.effect-box.bg-3 { background: linear-gradient(135deg, #2a9d8f, #1a7f72); }
.effect-box.bg-4 { background: linear-gradient(135deg, #9b5de5, #7b2cbf); }
.effect-box.bg-5 { background: linear-gradient(135deg, #f15bb5, #c9184a); }
.effect-box.bg-6 { background: linear-gradient(135deg, #00bbf9, #0077b6); }
.effect-box.bg-7 { background: linear-gradient(135deg, #e9c46a, #e76f51); }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .home-hero {
        padding-top: calc(var(--header-height) + var(--space-xl));
        padding-bottom: var(--space-2xl);
    }
    
    .home-hero-scroll {
        display: none;
    }
    
    .home-intro-card {
        border-radius: var(--radius-lg);
    }
}