.elementor-620 .elementor-element.elementor-element-91b3556{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}/* Start custom CSS for text-editor, class: .elementor-element-22d1cc6 *//* ========================================
   CENTRO LA COCCINELLA - ARTICLE STYLES
   Brand Colors: #7bb445 (Verde) | #c53f3b (Rosso)
   ======================================== */

/* Article Container */
article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Content Images */
.content-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Typography */
h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 30px 0 20px;
    line-height: 1.3;
    font-weight: 700;
    border-bottom: 4px solid #c53f3b;
    padding-bottom: 15px;
}

h2 {
    font-size: 2rem;
    color: #34495e;
    margin: 40px 0 20px;
    font-weight: 600;
    border-left: 5px solid #7bb445;
    padding-left: 15px;
}

h3 {
    font-size: 1.5rem;
    color: #555;
    margin: 30px 0 15px;
    font-weight: 600;
}

h4 {
    font-size: 1.2rem;
    color: #666;
    margin: 25px 0 12px;
    font-weight: 600;
}

p {
    margin: 15px 0;
    font-size: 1.1rem;
    text-align: justify;
}

strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Table of Contents */
#indice {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    margin: 30px 0;
}

#indice + ul {
    background: #f8f9fa;
    padding: 20px 20px 20px 50px;
    border-radius: 0 0 10px 10px;
    margin-top: -30px;
    list-style: none;
}

#indice + ul li {
    margin: 12px 0;
    position: relative;
    padding-left: 10px;
}

#indice + ul li:before {
    content: "📌";
    position: absolute;
    left: -20px;
}

#indice + ul li a {
    color: #7bb445;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

#indice + ul li a:hover {
    color: #c53f3b;
    padding-left: 5px;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.table-responsive thead {
    background: linear-gradient(135deg, #7bb445 0%, #5a8835 100%);
    color: #fff;
}

.table-responsive thead th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-responsive tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.table-responsive tbody tr:hover {
    background: #f0f8e8;
}

.table-responsive tbody tr:last-child {
    border-bottom: none;
}

.table-responsive tbody td {
    padding: 15px;
    font-size: 1rem;
}

.table-responsive tbody td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

/* Info Boxes */
.info-box {
    background: #f0f8e8;
    border-left: 4px solid #7bb445;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(123, 180, 69, 0.15);
    line-height: 1.7;
    font-size: 15px;
}

.info-box strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #5a8835;
    font-weight: 600;
}

.info-box ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.info-box li {
    margin: 8px 0;
}

/* Alternative Info Box - Warning/Important */
.info-box.warning {
    background: #fff9e6;
    border-left-color: #f39c12;
}

.info-box.warning strong {
    color: #d68910;
}

/* Alternative Info Box - Alert */
.info-box.alert {
    background: #fee;
    border-left-color: #c53f3b;
}

.info-box.alert strong {
    color: #c53f3b;
}

/* Highlight Box (come nel tuo CSS) */
.highlight-box {
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    background: #f0f8e8;
    border-left: 4px solid #7bb445;
    line-height: 1.6;
}

.highlight-box strong {
    color: #5a8835;
    font-weight: 600;
}

/* Contact Box */
.contact-box {
    padding: 18px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff9e6;
    border-left: 4px solid #f39c12;
    line-height: 1.7;
}

.contact-box strong {
    color: #d68910;
    display: block;
    margin-bottom: 8px;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #7bb445 0%, #5a8835 100%);
    color: #fff;
    padding: 40px;
    margin: 50px 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(123, 180, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-box:before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-box h3 {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 0 15px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.15rem;
    margin: 0 0 25px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #c53f3b;
    color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(197, 63, 59, 0.4);
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: #fff;
    color: #7bb445;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 63, 59, 0.6);
    border-color: #fff;
}

.cta-button:active {
    transform: translateY(-1px);
}

/* ========================================
   FAQ SECTION - STILE TUO PREFERITO
   ======================================== */

.faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.faq-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

.faq-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 50px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 400;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.accordion-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-left: 4px solid #7bb445;
    transition: all 0.2s ease;
    user-select: none;
}

.accordion-header:hover {
    background: #e8f5e0;
}

.accordion-header.active {
    background: #e8f5e0;
    border-left-width: 6px;
}

.accordion-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    padding-right: 20px;
    line-height: 1.4;
}

.accordion-icon {
    font-size: 0;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.accordion-icon::before {
    content: "▼";
    font-size: 14px;
    color: #7bb445;
    font-weight: bold;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.accordion-content.active {
    max-height: 3000px;
}

.accordion-content-inner {
    padding: 28px 24px;
    line-height: 1.7;
}

.accordion-content p {
    margin: 0 0 16px 0;
    color: #34495e;
    font-size: 15px;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.accordion-content li {
    margin-bottom: 10px;
    color: #34495e;
    font-size: 15px;
    line-height: 1.6;
}

.accordion-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.service-card {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.service-card:hover {
    background: #e8f5e0;
    border-color: #7bb445;
    transform: translateY(-2px);
}

.service-card strong {
    color: #7bb445;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.service-card p {
    font-size: 13px;
    margin: 5px 0 0 0;
    color: #6c757d;
}

/* Recommended Reading */
h2 + ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

h2 + ul li {
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
}

h2 + ul li:before {
    content: "📖";
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.2rem;
}

h2 + ul li a {
    color: #7bb445;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

h2 + ul li a:hover {
    color: #c53f3b;
    border-bottom-color: #c53f3b;
    padding-left: 5px;
}

/* Lists inside content */
article ul:not(#indice + ul):not(h2 + ul) {
    margin: 20px 0;
    padding-left: 30px;
}

article ul:not(#indice + ul):not(h2 + ul) li {
    margin: 10px 0;
    line-height: 1.6;
}

article ol {
    margin: 20px 0;
    padding-left: 30px;
}

article ol li {
    margin: 10px 0;
    line-height: 1.6;
}

/* Accessibility */
.accordion-header:focus {
    outline: 2px solid #7bb445;
    outline-offset: 2px;
}

.accordion-header[aria-expanded="true"] .accordion-icon::before {
    content: "▲";
}

.accordion-header[aria-expanded="false"] .accordion-icon::before {
    content: "▼";
}

a:focus {
    outline: 2px solid #7bb445;
    outline-offset: 2px;
}

.cta-button:focus {
    outline: 3px solid #c53f3b;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #7bb445;
    color: #fff;
}

::-moz-selection {
    background: #7bb445;
    color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    article {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
        text-align: left;
    }

    .hero-image {
        max-height: 300px;
    }

    .table-responsive {
        font-size: 0.9rem;
    }

    .table-responsive thead th {
        padding: 12px 10px;
        font-size: 0.95rem;
    }

    .table-responsive tbody td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .info-box,
    .highlight-box,
    .contact-box {
        padding: 15px 20px;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h3 {
        font-size: 1.4rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .faq-section {
        padding: 0 16px;
        margin: 40px auto;
    }

    .accordion-header {
        padding: 16px 18px;
    }

    .accordion-header h3 {
        font-size: 15px;
        padding-right: 12px;
    }

    .accordion-content-inner {
        padding: 20px 18px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    .cta-box h3 {
        font-size: 1.2rem;
    }

    .table-responsive table {
        min-width: 100%;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .faq-section {
        margin: 30px auto;
    }

    .faq-title {
        margin-bottom: 10px;
    }

    .faq-subtitle {
        margin-bottom: 35px;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-header h3 {
        font-size: 14px;
    }

    .accordion-content-inner {
        padding: 18px 16px;
    }

    .accordion-content p,
    .accordion-content li {
        font-size: 14px;
    }
}

/* Print Styles */
@media print {
    .cta-box,
    .cta-button {
        display: none;
    }

    article {
        max-width: 100%;
    }

    .accordion-content {
        max-height: none !important;
    }

    .accordion-content-inner {
        padding: 15px 25px !important;
    }
}

/* ========================================
   FAQ ACCORDION - Centro La Coccinella
   ======================================== */

document.addEventListener('DOMContentLoaded', function() {
    
    // Seleziona tutti gli accordion items
    const accordionItems = document.querySelectorAll('.accordion-item');
    
    accordionItems.forEach(item => {
        const header = item.querySelector('.accordion-header');
        const content = item.querySelector('.accordion-content');
        
        // Click event
        header.addEventListener('click', function() {
            const isActive = item.classList.contains('active');
            
            // Chiudi tutti gli altri accordion
            accordionItems.forEach(otherItem => {
                if (otherItem !== item) {
                    otherItem.classList.remove('active');
                    const otherHeader = otherItem.querySelector('.accordion-header');
                    const otherContent = otherItem.querySelector('.accordion-content');
                    otherHeader.classList.remove('active');
                    otherContent.classList.remove('active');
                    otherHeader.setAttribute('aria-expanded', 'false');
                }
            });
            
            // Toggle dell'item corrente
            if (isActive) {
                item.classList.remove('active');
                header.classList.remove('active');
                content.classList.remove('active');
                header.setAttribute('aria-expanded', 'false');
            } else {
                item.classList.add('active');
                header.classList.add('active');
                content.classList.add('active');
                header.setAttribute('aria-expanded', 'true');
            }
        });
        
        // Keyboard support
        header.addEventListener('keypress', function(e) {
            if (e.key === 'Enter' || e.key === ' ') {
                e.preventDefault();
                header.click();
            }
        });
        
        // Setup ARIA attributes
        header.setAttribute('role', 'button');
        header.setAttribute('aria-expanded', 'false');
        header.setAttribute('tabindex', '0');
        
        // Aggiungi icona se non presente
        if (!header.querySelector('.accordion-icon')) {
            const icon = document.createElement('span');
            icon.className = 'accordion-icon';
            header.appendChild(icon);
        }
    });
    
    // Smooth scroll per anchor links
    document.querySelectorAll('a[href^="#"]').forEach(anchor => {
        anchor.addEventListener('click', function(e) {
            const targetId = this.getAttribute('href');
            if (targetId !== '#') {
                e.preventDefault();
                const target = document.querySelector(targetId);
                if (target) {
                    const headerOffset = 80; // Offset per header fissi
                    const elementPosition = target.getBoundingClientRect().top;
                    const offsetPosition = elementPosition + window.pageYOffset - headerOffset;

                    window.scrollTo({
                        top: offsetPosition,
                        behavior: 'smooth'
                    });
                }
            }
        });
    });
    
});/* End custom CSS */