/*
Theme Name: Playroom Child
Template: playroom
*/

/* --- HEADER MOBILE SEMPRE APERTO (Punto 3) --- */
@media (max-width: 991px) {
    .elementor-menu-toggle, 
    .navbar-toggler, 
    .mobile-menu-toggle {
        display: none !important;
    }

    .elementor-nav-menu--dropdown, 
    .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        transform: none !important;
    }
}

/* --- UI PREVENTIVATORE - EVIDENZIAZIONE ROSA PESCA (Punto 2) --- */
.riga-selezionabile.active, 
.package-card.active,
.box-option.active {
    background-color: #ffc5ae !important;
    border: 2px solid #ff7043 !important;
    color: #333 !important;
    transform: scale(1.02);
    transition: all 0.2s ease-in-out;
}

/* Locked items visual indicator */
.riga-selezionabile[data-locked="true"].active {
    background-color: #ffc5ae !important;
    border: 2px solid #ff7043 !important;
    opacity: 0.9;
    cursor: default;
    position: relative;
}
.riga-selezionabile[data-locked="true"].active::after {
    content: "\1F512 Incluso";
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7em;
    color: #ff7043;
    font-weight: bold;
}

/* Nasconde i prezzi agli utenti non autorizzati */
.nascondi-prezzi-extra .prezzo-operatore,
.nascondi-prezzi-extra .prezzo-pacchetto-admin {
    display: none !important;
}

/* Layout Generale Preventivatore */
.progress-container {
    width: 100%;
    background: #eee;
    height: 10px;
    border-radius: 10px;
    margin-bottom: 25px;
}

#myBar {
    width: 25%;
    height: 100%;
    background: #ff7043;
    border-radius: 10px;
    transition: 0.4s;
}

.extra-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-block {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.category-block h5 {
    color: #ff7043;
    border-bottom: 2px solid #ff7043;
    padding-bottom: 5px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 0.85em;
}

.riga-selezionabile {
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
}

/* === LIVE SUMMARY PANEL === */
#preventivatore-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

#live-summary-panel {
    position: sticky;
    top: 100px;
    width: 300px;
    min-width: 280px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #fff;
    border: 2px solid #ff7043;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.15);
    z-index: 10;
}

#live-summary-panel h3 {
    color: #ff7043;
    font-size: 1.1em;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff7043;
    text-align: center;
    text-transform: uppercase;
}

#live-summary-panel .summary-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#live-summary-panel .summary-section:last-child {
    border-bottom: none;
}

#live-summary-panel h4 {
    color: #ff7043;
    font-size: 0.85em;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#live-summary-panel p {
    margin: 3px 0;
    font-size: 0.85em;
    color: #555;
}

#live-summary-panel .summary-servizi ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#live-summary-panel .summary-servizi li {
    padding: 5px 0;
    border-bottom: 1px dotted #eee;
    font-size: 0.8em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#live-summary-panel .summary-item-name {
    font-weight: 600;
    color: #333;
    flex: 1;
}

#live-summary-panel .summary-item-price {
    color: #d35400;
    font-weight: bold;
    font-size: 0.9em;
    text-align: right;
}

#live-summary-panel .summary-item-price small {
    font-weight: normal;
    color: #888;
}

#live-summary-panel .summary-total {
    background: #fff4f1;
    border: 2px solid #ff7043;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
    color: #ff7043;
    font-size: 1.1em;
}

#live-summary-panel .summary-extra-pct {
    color: #d35400;
    font-size: 0.85em;
    font-weight: bold;
    text-align: right;
    padding: 5px 0;
}

#live-summary-panel .summary-empty {
    text-align: center;
    color: #aaa;
    font-style: italic;
    font-size: 0.85em;
}

#live-summary-panel .summary-total-invitati {
    font-weight: bold;
    color: #ff7043;
}

/* The main content area takes the rest */
#preventivatore-layout > :last-child {
    flex: 1;
    min-width: 0;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
    #preventivatore-layout {
        flex-direction: column;
    }
    
    #live-summary-panel {
        position: relative;
        top: 0;
        width: 100%;
        min-width: unset;
        max-height: none;
        order: -1;
        margin-bottom: 20px;
    }
}

/* Scrollbar styling for summary panel */
#live-summary-panel::-webkit-scrollbar {
    width: 5px;
}
#live-summary-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
#live-summary-panel::-webkit-scrollbar-thumb {
    background: #ff7043;
    border-radius: 10px;
}