/*
    Theme Name:   Hello Elementor Child
    Template:     hello-elementor
    Version:      1.0.0
    Text Domain:  hello-elementor-child
*/

@import url("../hello-elementor/style.css");

/* =========================================
   V-Fly: Tipografia Globale Componenti (System Stack)
========================================= */
.vfly-table,
.vfly-faq-grid details,
.vfly-process-section {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================
   V-Fly: Stile Tabelle (Replicato da Custom Fleet)
========================================= */
.vfly-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--e-global-color-white, #ffffff);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--e-global-color-border, #eaeaea);
    text-align: center;
    font-family: inherit;
    overflow: hidden;
    margin-bottom: 2rem;
}

.vfly-table th {
    background-color: var(--e-global-color-primary, #0b2e59) !important;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 20px 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.vfly-table th:first-child,
.vfly-table td:first-child {
    text-align: left;
    padding-left: 24px;
}

.vfly-table th:last-child,
.vfly-table td:last-child {
    padding-right: 24px;
}

.vfly-table td {
    padding: 18px 16px;
    border: 1px solid var(--e-global-color-border, #f0f2f5);
    font-size: 14px;
    vertical-align: middle;
    color: var(--e-global-color-text, #4a5568);
}

.vfly-table td:first-child {
    font-weight: 700;
    color: var(--e-global-color-primary, #0b2e59);
}

.vfly-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.vfly-table tr {
    transition: all 0.25s ease;
}

.vfly-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .vfly-table {
        display: table;
        white-space: normal;
    }
}

@media screen and (max-width: 767px) {
    .vfly-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .vfly-table th, 
    .vfly-table td {
        min-width: 140px; 
    }
}

/* =========================================
   V-Fly: Stile Accordion FAQ
========================================= */
/* La griglia si attiva sul contenitore, forzando Elementor a ignorare i propri div wrapper */
.vfly-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .vfly-faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 
 * FIX: Se Elementor o il CSV aggiungono div extra, li forziamo a comportarsi come sub-grid (display: contents)
 * in modo che i veri <details> vengano gestiti direttamente dalla grid del parent.
 */
.vfly-faq-grid > div,
.vfly-faq-grid .elementor-widget-container,
.vfly-faq-grid .elementor-text-editor {
    display: contents;
}

.vfly-faq-grid details,
details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 30px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 0;
}

.vfly-faq-grid details:hover,
details:hover,
details[open] {
    border-color: #38ACF5;
    box-shadow: 0 20px 30px -10px rgba(56, 172, 245, 0.15);
}

/* Forza Flexbox sul summary per bypassare i widget di Elementor */
.vfly-faq-grid details summary,
details summary {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    list-style: none;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    user-select: none;
    margin: 0;
}

.vfly-faq-grid details summary h2,
.vfly-faq-grid details summary h4,
details summary h2,
details summary h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.15rem !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    flex: 1 1 auto !important;
    width: 100%;
    text-align: left;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    color: #38ACF5;
    transition: transform 0.3s ease;
    margin-left: 15px;
    line-height: 1;
    flex-shrink: 0 !important;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details p {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

.vfly-section-block{
    margin-bottom: 70px;
}