/* === Hero Section Styles === */

/* Main container - rimuovi padding top */
.container-fluid #main.no-breadcrumbs {
    padding-top: 0px !important;
}

.elementor-66 .elementor-element.elementor-element-2d00976 > .elementor-widget-container,
.elementor-66 .elementor-element.elementor-element-ce418c9 > .elementor-widget-container{
    margin: 0px !important;
}

/* Rimuovi padding laterale dal container-fluid */
.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Nascondi hero Elementor vecchio */
.elementor-element[data-id="8351991"],
.elementor-element-8351991 {
    display: none !important;
}

/* Nascondi slider info boxes Elementor (ora in hero) */
.elementor-element[data-id="e0db1c6"],
.elementor-element-e0db1c6 {
    display: none !important;
}

/* Nascondi sezione Chi siamo Elementor */
.elementor-element[data-id="ad29685"],
.elementor-element-ad29685 {
    display: none !important;
}

/* Nascondi sezione Che cosa ti serve + Prodotti in evidenza */
.elementor-element[data-id="dc23a13"],
.elementor-element-dc23a13 {
    display: none !important;
}

/* I nostri marchi - margin top */
.elementor-heading-title.elementor-size-default {
    margin-top: 60px;
}

/* Brand section - padding 0 */
.psc-brand {
    padding: 0 !important;
}

/* Product add-links - no margin bottom */
.add-links.clearfix {
    margin-bottom: 0 !important;
}

/* Google Reviews widget - nascondi p vuoto */
.wp-gr.wpac > p:empty,
.elementor-widget-container > p:empty,
.elementor-widget-container > p:first-child {
    display: none !important;
}

/* Google Reviews widget - no padding/margin bottom */
.wp-gr.wpac,
.wp-gr.wpac .grw-row,
.wp-gr.wpac .grw-row-m {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Nuovi arrivi - padding bottom */
.elementor-element[data-id="f6dafc3"],
.elementor-element-f6dafc3 {
    padding-bottom: 60px !important;
}

/* Brand carousel - no margin bottom */
.porto-posts-grid,
.porto-posts-grid .posts-wrap,
.porto-posts-grid .owl-carousel,
.porto-posts-grid .owl-stage-outer,
.elementor-widget-container .porto-posts-grid {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--overlay-opacity, 0.4));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
}

.hero-title {
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title span,
.hero-title label {
    color: #E74338;
    font-weight: inherit;
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #E74338;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #E74338;
}

.hero-button:hover {
    background-color: #c9372e;
    color: #ffffff;
    border-color: #c9372e;
    text-decoration: none;
}

/* Info boxes sotto hero - testo bianco (Elementor) */
.elementor-element[data-id="e0db1c6"] .porto-sicon-box .porto-sicon-title,
.elementor-element[data-id="e0db1c6"] .porto-sicon-box p,
.elementor-element[data-id="e0db1c6"] .porto-sicon-box .porto-icon i,
.elementor-swiper .porto-sicon-box .porto-sicon-title,
.elementor-swiper .porto-sicon-box p,
.elementor-swiper .porto-sicon-box .porto-icon i,
.elementor-swiper .porto-sicon-box i,
.elementor-slides .porto-sicon-box .porto-sicon-title,
.elementor-slides .porto-sicon-box p,
.elementor-slides .porto-sicon-box i {
    color: #ffffff !important;
}

/* Hero Info Boxes (interno hero) - visibili su desktop */
.hero-info-boxes {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 0 20px;
}

/* Track wrapper - su desktop si comporta come flex container (stesso layout di prima) */
.hero-info-boxes-track {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
}

/* Dots nascosti su desktop */
.hero-info-dots {
    display: none;
}

.hero-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    color: #ffffff;
    flex: 1;
    max-width: 280px;
}

.hero-info-icon {
    font-size: 32px;
    color: #ffffff;
}

.hero-info-icon i {
    color: #ffffff;
}

.hero-info-text {
    text-align: center;
}

.hero-info-text h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.hero-info-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-info-boxes {
        bottom: 30px;
    }
    
    .hero-info-boxes-track {
        gap: 30px;
    }
    
    .hero-info-icon {
        font-size: 24px;
    }
    
    .hero-info-text h3 {
        font-size: 14px;
    }
    
    .hero-info-text p {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero-button {
        padding: 12px 30px;
        font-size: 13px;
    }
    
    /* Mostra hero info boxes su mobile con slider */
    .hero-info-boxes {
        bottom: 20px;
        left: 0;
        right: 0;
        overflow: hidden;
        padding: 0;
        display: block;
    }
    
    .hero-info-boxes-track {
        display: flex;
        transition: transform 0.4s ease;
        width: 100%;
        gap: 0;
        transform: translateX(100%); /* slide 1: 100%, slide 2: 0%, slide 3: -100% */
    }
    
    .hero-info-boxes-track .hero-info-box {
        flex: 0 0 100%;
        min-width: 100%;
        text-align: center;
        flex-direction: column;
        gap: 8px;
        box-sizing: border-box;
        padding: 0 20px;
    }
    
    .hero-info-box {
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Dots solo su mobile */
    .hero-info-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        padding: 0;
    }
    
    .hero-info-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        padding: 0;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.3s ease;
    }
    
    .hero-info-dot:hover {
        background: rgba(255, 255, 255, 0.8);
    }
    
    .hero-info-dot.active {
        background: #fff;
    }
}
