/* Elementor Integration Styles */
.elementor-content-wrapper {
    overflow: hidden;
}

.elementor-post-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    gap: 40px;
}

/* Single Attività Content Styles */
.elementor-main-content {
    flex: 1;
    max-width: 66.666%;
}

/* Custom Sidebar */
.custom-sidebar {
    width: 350px;
    flex-shrink: 0;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Dettagli Section */
.dettagli-section h6 {
    color: #1B1B1B;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 25px;
}

/* Referenti Section */
.referenti-section {
    margin-bottom: 40px;
}

.referenti-section h4 {
    color: #3352CC;
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 0px solid!important;
}



/* Referenti Grid */
.referenti-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.referente-card {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.referente-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, #3352CC 0%, rgba(51, 82, 204, 0) 100%);
    opacity: 0.1;
}

.referente-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
}

.referente-info h5 {
    color: #fff;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Contatti Section */
.contatti-section {
    margin-top: 30px;
}

.contatti-section h4 {
    color: #3352CC;
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 0px;
    border-bottom: 0px solid!important;
}

.elementor-icon-list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elementor-icon-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.elementor-icon-list-icon {
    flex-shrink: 0;
}

.elementor-icon-list-icon svg {
    width: 18px;
    height: 18px;
    fill: #3352CC;
}

.elementor-icon-list-text {
    color: #1B1B1B;
    font-size: 14px;
    line-height: 1.4;
}

.elementor-icon-list-item a {
    color: #3352CC;
    text-decoration: none;
}

.elementor-icon-list-item a:hover {
    text-decoration: underline;
}

/* Content Typography */
.elementor-main-content h2,
.elementor-main-content h3,
.elementor-main-content h4,
.elementor-main-content h5,
.elementor-main-content h6 {
    color: var(--e-global-color-primary);
    font-family: var(--e-global-typography-primary-font-family), Sans-serif;
    font-weight: var(--e-global-typography-primary-font-weight);
    margin-bottom: 20px;
    border-bottom: 0px solid!important;
}

.elementor-main-content p {
    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-text-font-family), "Roboto", Sans-serif;
    font-weight: var(--e-global-typography-text-font-weight);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 14.4px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 294px;
    overflow: hidden;
    background-color: #f5f5f5;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: #fff;
}

.hero-content h1 {
    color: var(--e-global-color-primary);
    font-size: 64px;
    line-height: 1.2;
    letter-spacing: -2px;
    margin: 0 0 20px;
}

/* Gallery Section */
.gallery-section {
    margin: 40px 0;
    padding: 0 20px;
}

.swiper {
    width: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--e-global-color-primary);
}

.swiper-pagination-bullet-active {
    background: var(--e-global-color-primary);
}

/* Responsive Design */
@media (max-width: 991px) {
    .elementor-post-container {
        flex-direction: column;
    }

    .elementor-main-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .custom-sidebar {
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .elementor-post-container {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .elementor-icon-list-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .custom-sidebar {
        padding: 20px;
    }

    .referente-card {
        padding: 12px;
    }
}