/* BRUSKETTANDO - Official Stylesheet 
    Focus: Conversion Rate Optimization (CRO) & Mobile-First Design
*/

/* --- 1. VARIABILI & RESET --- */
:root {
    --primary-dark: #683C10;
    /* Marrone Pane Tostato */
    --primary-gold: #FDCC3F;
    /* Oro Condimento */
    --primary-light: #F8F185;
    /* Giallo Luce */
    --secondary-dark: #C08A4E;
    /* Marrone Dorato */
    --white: #FFFFFF;
    --bg-light: #FDFDFD;
    --danger-color: #D32F2F;

    --gradient-gold: linear-gradient(135deg, #FDCC3F 0%, #F8F185 100%);
    --shadow-soft: 0 10px 30px rgba(104, 60, 16, 0.12);
    --shadow-strong: 0 15px 40px rgba(104, 60, 16, 0.2);
    --radius: 18px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. HEADER (Sticky) --- */
.main-header {
    background-color: var(--primary-dark);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.header-logo img {
    height: 48px;
    width: auto;
}

.brand-name {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-gold);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-pill:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

.nav-icon-link {
    color: var(--white);
    font-size: 1.3rem;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

/* --- 3. HOME LAYOUT --- */
.home-container {
    max-width: 1100px;
    margin: 0 auto;
    min-height: 80vh;
}

.home-hero {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 20px 100px 20px;
    text-align: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.home-hero h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.home-hero p {
    font-weight: 300;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- NUOVO LAYOUT DELLE CARD --- */

.main-sections-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
    /* Alza le card sull'hero */
    margin-top: -60px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* LA CARD PRINCIPALE (MENU) */
.action-card.main-cta {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.action-card.main-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(104, 60, 16, 0.2);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    background: var(--gradient-gold);
    /* Sostituisci con immagine se possibile */
    background-image: url('header-img.jpg');
    /* Placeholder bruschetta */
    background-size: cover;
    background-position: center;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(104, 60, 16, 0.6));
}

.floating-icon {
    position: absolute;
    bottom: -20px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gold);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--white);
}

.promo-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-dark);
    color: var(--primary-gold);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content {
    padding: 40px 30px 30px;
}

.card-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1;
}

.card-content p {
    color: var(--primary-dark);
}

.cta-button {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-gold);
    padding-bottom: 4px;
}

/* TRACKING CARD - MINIMAL */
.tracking-card-modern {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 24px;
    text-align: center;
}

.tracking-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.tracking-desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
}

.tracking-form-modern {
    display: flex;
    background: white;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.modern-input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.modern-submit {
    background: var(--primary-dark);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ACTIVE ORDER PILL */
.order-status-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #166534;
    color: white;
    padding: 15px 20px;
    border-radius: 18px;
    text-decoration: none;
    margin-bottom: 15px;
}

.status-pulse {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* DESKTOP ADJUSTMENTS */
@media (min-width: 768px) {
    .main-sections-wrapper {
        flex-direction: row;
        align-items: flex-start;
    }

    .action-card.main-cta {
        flex: 2;
    }

    .side-content {
        flex: 1;
    }

    .card-image-wrapper {
        height: 300px;
    }
}

/* --- 6. FOOTER --- */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 20px 30px;
    margin-top: 80px;
    border-top: 5px solid var(--primary-gold);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--primary-gold);
    color: var(--primary-dark);
}

.lang-selector-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}


.flag-btn img {
    width: 20px;
    /* Dimensione fissa per la larghezza */
    height: 14px;
    /* Dimensione fissa per l'altezza */
    object-fit: cover;
    /* Evita distorsioni */
    border-radius: 2px;
    display: block;
}

.flag-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
}

.flag-btn.active {
    border-color: var(--primary-gold);
    background: rgba(253, 204, 63, 0.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- 7. RESPONSIVE DESKTOP --- */
@media (min-width: 768px) {
    .main-sections-wrapper {
        grid-template-columns: 1.5fr 1fr;
        /* Layout affiancato */
        margin-top: -70px;
    }

    .footer-container {
        grid-template-columns: 2fr 1fr;
    }

    .home-hero {
        padding: 80px 20px 140px;
    }

    .home-hero h2 {
        font-size: 4.5rem;
    }

    .card-banner {
        height: 200px;
        font-size: 5rem;
    }
}

/* --- 8. ANIMATIONS --- */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Stilizzazione universale icone MDI */
svg.mdi {
    width: 24px;
    height: 24px;
    fill: currentColor;
    /* L'icona prende il colore del testo circostante */
    vertical-align: middle;
    display: inline-block;
}

/* Casi specifici */
.floating-icon svg.mdi {
    width: 32px;
    height: 32px;
}

.cta-button svg.mdi {
    width: 18px;
    height: 18px;
}

.status-pill svg.mdi {
    width: 20px;
    height: 20px;
}

/*MENU QUI*/
/* ============================================================
   MENU.PHP - STILI COMPLETI (LOGICA APP-LIKE)
   ============================================================ */

/* --- 1. NAVIGAZIONE CATEGORIE STICKY --- */
.category-nav-sticky {
    position: sticky;
    top: var(--header-height);
    background: white;
    z-index: 900;
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    align-items: center;
    margin: 0 auto;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    gap: 10px;
    scrollbar-width: none;
    /* Nasconde scrollbar Firefox */
}

.category-scroll::-webkit-scrollbar {
    display: none;
    /* Nasconde scrollbar Chrome/Safari */
}

.cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f1f1f1;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cat-btn.active {
    background: var(--primary-dark);
    color: var(--primary-gold);
}

.cat-btn svg.mdi {
    width: 18px;
    height: 18px;
}

.cat-btn.btn-pdf-external {
    text-decoration: none;
}

/* --- 2. GRID PRODOTTI --- */
.menu-container {
    padding: 20px 15px 20px;
    /* Padding bottom extra per non coprire col carrello */
    max-width: 1100px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        /* Due colonne su Desktop */
        gap: 20px;
    }
}

.prod-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.prod-card:active {
    transform: scale(0.97);
}

.prod-details {
    flex: 1;
    padding-right: 15px;
}

.prod-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--primary-dark);
    text-transform: uppercase;
}

.prod-ingr {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    line-height: 1.3;
}

.prod-price {
    font-weight: 700;
    color: var(--secondary-dark);
    font-size: 1.1rem;
}

.btn-add-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gold);
    color: var(--primary-dark);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(253, 204, 63, 0.3);
}

/* --- 3. STICKY CART BAR (IL CARRELLO IN BASSO) --- */
.cart-bar-modern {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    background: var(--primary-dark);
    border-radius: 20px;
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: none;
    /* Visibile solo via JS */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-bar-modern.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.cart-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cart-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.cart-badge-container {
    position: relative;
    font-size: 1.5rem;
    color: var(--primary-gold);
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 800;
}

.cart-price-block {
    display: flex;
    flex-direction: column;
}

.cart-price-block small {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.cart-price-block strong {
    font-size: 1.1rem;
    color: var(--primary-gold);
}

.btn-checkout-modern {
    background: var(--primary-gold);
    color: var(--primary-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* --- 4. MODAL & BOTTOM SHEET --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    /* Mobile: spunta dal basso */
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    background: white;
    width: 100%;
    max-width: 550px;
    border-radius: 30px 30px 0 0;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

.modal-drag-handle {
    width: 40px;
    height: 4px;
    background: #ddd;
    margin: 0 auto 20px;
    border-radius: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary-dark);
}

.close-modal-btn {
    background: #f5f5f5;
    border: none;
    max-width: 35px;
    max-height: 35px;
    border-radius: 50%;
    cursor: pointer;
}

.modal-price-row {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-dark);
    text-align: center;
    margin-bottom: 20px;
}

/* Allergeni nel Modal */
.modal-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.allergen-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

#modal-note {
    width: 100%;
    height: 80px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 12px;
    font-family: inherit;
    resize: none;
    outline: none;
}

/* Controlli Quantità */
.qty-control-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 30px 0;
}

.qty-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #eee;
    background: white;
    font-size: 1.5rem;
    cursor: pointer;
}

#modal-qty {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Oswald';
}

.btn-confirm-full {
    width: 100%;
    background: var(--primary-dark);
    color: var(--primary-gold);
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-confirm-full.table {
    margin-top: 2rem;
}

/* --- 5. SEZIONE INFO / LEGENDA ALLERGENI --- */
.info-section-modern {
    margin-top: 40px;
    background: white;
    padding: 25px;
    border-radius: 20px;
}

.allergen-legend {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.allergen-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.allergen-dot.present {
    background: #ef4444;
}

.allergen-dot.trace {
    background: #f59e0b;
}

.allergen-warning-box {
    background: #fff5f5;
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    font-size: 0.85rem;
}

/* --- 6. SVG FIX (ICONE MDI) --- */
svg.mdi {
    width: 24px;
    height: 24px;
    fill: currentColor;
    vertical-align: middle;
}

/* Desktop Modal Adjustments */
@media (min-width: 768px) {
    .modal-overlay {
        align-items: center;
    }

    .modal-sheet {
        border-radius: 24px;
        transform: scale(0.9);
    }

    .modal-overlay.active .modal-sheet {
        transform: scale(1);
    }
}


/*CARELLO.PHP*/
/* ============================================================
   CARELLO.PHP & CHECKOUT SPECIFIC STYLES
   ============================================================ */

/* --- 1. LO SCONTRINO (RECEIPT STYLE) --- */
.cart-receipt-list {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.receipt-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    /* Effetto strappo scontrino */
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.receipt-qty {
    font-weight: 700;
    color: var(--secondary-dark);
    min-width: 30px;
}

.receipt-name {
    flex: 1;
    font-size: 0.95rem;
}

.receipt-name small {
    display: block;
    color: #d32f2f;
    font-style: italic;
    margin-top: 4px;
}

.receipt-price {
    font-weight: 700;
    white-space: nowrap;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    font-size: 1.3rem;
    font-family: 'Oswald', sans-serif;
    color: var(--primary-dark);
    border-top: 2px solid var(--primary-dark);
    margin-top: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--secondary-dark);
    pointer-events: none;
}

.input-with-icon input,
.input-with-icon textarea {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    border-color: var(--primary-gold);
}

/* --- 3. SELEZIONE POSTO & TAKEAWAY --- */
.flex-center-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.full-height-input {
    height: 48px;
    border: 2px solid #eee;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
}

.status-badge-lg {
    height: 48px;
    padding: 0 15px;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- 4. INFO PAGAMENTO & ERRORI --- */
.info-box-payment {
    background: var(--primary-gold);
    color: var(--primary-dark);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 20px 0;
}

.error-box-red {
    border: 2px solid #d32f2f;
    background: #fff5f5;
    margin-top: 15px;
    border-radius: 12px;
}



.tracking-title svg.mdi {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    /* L'icona prende il colore del testo circostante */
    vertical-align: middle;
    display: inline-block;
    margin-right: 1rem
}

/* BOTTONE SECONDARIO (Visibile su Bianco) */
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Usiamo il marrone scuro per massimo contrasto su bianco */
    border: 1.5px solid var(--primary-dark);
    color: var(--primary-dark);
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.cta-secondary:hover {
    /* Al passaggio del mouse diventa pieno */
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.cta-secondary svg.mdi {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-card-bottom {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- CHECKOUT FORM FOCUS STYLE --- */

/* La card principale ora ha un'ombra più profonda e un bordo colorato */
.checkout-form-highlight {
    border: 2px solid var(--primary-gold);
    box-shadow: 0 15px 45px rgba(104, 60, 16, 0.15);
    background: var(--white);
    overflow: hidden;
    padding: 0 !important;
    /* Gestiamo il padding internamente */
}

.checkout-header-focus {
    background: var(--primary-dark);
    color: var(--primary-gold);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkout-header-focus .tracking-icon-circle {
    background: rgba(253, 204, 63, 0.2);
    color: var(--primary-gold);
}

.form-body-focus {
    padding: 25px;
}

/* Area selezione tavolo evidenziata */
.selection-area-focus {
    background: #fffaf0;
    /* Un giallino molto tenue per distinguere l'area */
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed var(--secondary-dark);
}

/* Pulsante selezione tavolo più visibile */
.btn-select-table-focus {
    width: 100%;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    border-radius: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-select-table-focus:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Box pagamento più moderno */
.info-box-payment-focus {
    background: #fdf2f2;
    /* Rosso chiarissimo per avviso pagamento */
    border-left: 5px solid var(--primary-gold);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.info-box-payment-focus .icon-payment {
    color: var(--primary-dark);
}

.info-box-payment-focus .text-payment strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1rem;
}

.info-box-payment-focus .text-payment small {
    color: var(--secondary-dark);
    line-height: 1.2;
    display: block;
}

/* Effetto focus sugli input */
.input-with-icon input:focus,
.input-with-icon textarea:focus {
    border-color: var(--primary-dark);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(104, 60, 16, 0.05);
}


/* ============================================================
   MAPPA TAVOLI COMPLETA - BRUSKETTANDO
   Focus: Zero-Scroll & Proportional Scaling
   ============================================================ */

/* 1. CONTENITORE ESTERNO (Viewport) */
.map-card {
    padding: 10px;
    background: #e2e8f0;
    /* Grigio tecnico di sfondo */
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Blocca lo scroll */
    border-radius: 12px;
    position: relative;
}

/* 2. WRAPPER PER RIDIMENSIONAMENTO */
.map-render-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* 3. IL DISEGNO TECNICO (La piantina vera e propria) */
.mappa-disegno-tecnico {
    background: #fdfbf7;
    border: 3px solid #d4b483;
    border-radius: 16px;
    padding: 30px;
    width: fit-content;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: var(--shadow-md);
    transform-origin: center center;
    /* Scalatura dal centro */
    transition: transform 0.3s ease;
}

/* 4. LAYOUT RIGHE E COLONNE */
.mappa-top-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.mappa-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.col-verticale-sx {
    justify-content: flex-end;
    height: 340px;
}

.spacer-sfalsamento {
    height: 40px;
}

.mappa-mid-row {
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

.mappa-bottom-row {
    display: flex;
    justify-content: space-between;
    border-top: 2px dashed #d4b483;
    padding-top: 20px;
}

/* 5. GRUPPI TAVOLI (Contenitori fisici) */
.gruppo-tavolo {
    border: 2px solid #5d4037;
    border-radius: 10px;
    padding: 4px;
    background: #ffffff;
    display: flex;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Formati tavoli ridimensionati per fit migliore */
.style-standard {
    width: 120px;
    height: 60px;
}

.style-verticale {
    flex-direction: column-reverse;
    width: 60px;
    height: 120px;
}

.style-piccolo {
    flex-direction: column;
    width: 60px;
    height: 70px;
}

.style-basso {
    width: 110px;
    height: 50px;
}

/* 6. PULSANTI TAVOLI (Interazione) */
.tavolo-btn {
    flex: 1;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tavolo-libero {
    background-color: #10b981;
    color: #ffffff;
}

.tavolo-occupato {
    background-color: #ef4444;
    color: #ffffff;
}

.tavolo-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.tavolo-btn:hover:not(:disabled) {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 7. ELEMENTI DI SERVIZIO */
.mappa-servizio {
    background: #ffecb3;
    border: 2px solid #5d4037;
    border-radius: 8px;
    padding: 10px 30px;
    font-weight: 800;
    color: #5d4037;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-align: center;
}

/* 8. LEGENDA (Puntini) */
.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-occupied {
    background-color: #ef4444;
    border: 2px solid #b91c1c;
}

.dot-free {
    background-color: #10b981;
    border: 2px solid #065f46;
}

/* 9. BREAKPOINTS PER RIDIMENSIONAMENTO AUTOMATICO (Zero Scroll) */

/* Mobile Standard */
@media (max-width: 600px) {
    .mappa-disegno-tecnico {
        transform: scale(0.68);
        /* Riduce al 68% */
    }

    .map-card {
        min-height: 380px;
    }
}

/* Mobile Small (es. iPhone SE) */
@media (max-width: 400px) {
    .mappa-disegno-tecnico {
        transform: scale(0.58);
        /* Riduce al 58% */
    }

    .map-card {
        min-height: 320px;
    }
}

/* Tablet / Desktop */
@media (min-width: 992px) {
    .sala-layout-grid {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 24px;
    }
}

/*TRACCIA ORDINE*/
/* --- TRACCIA-ORDINE.PHP STYLES --- */

/* Stato Errore */
.error-state {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.error-icon-wrap svg {
    width: 80px;
    height: 80px;
    color: var(--secondary-dark);
}

/* Riepilogo Piatti */
.order-summary-content {
    margin-top: 20px;
}

.summary-category-group {
    margin-bottom: 25px;
}

.summary-category-group h4 {
    align-items: center;
    gap: 10px;
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    text-align: center;
}

.summary-category-group ul {
    list-style: none;
    padding: 0;
}

.summary-category-group li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.item-main strong {
    color: var(--secondary-dark);
    margin-right: 5px;
}

.item-note {
    font-size: 0.85rem;
    color: #d32f2f;
    font-style: normal;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    text-align: center;
}

.mini-icon {
    width: 14px;
    height: 14px;
}

/* QR Code Container */
.qr-container-box {
    text-align: center;
    padding: 25px 0;
}

#qrcode {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 20px;
    border: 2px solid var(--primary-gold);
    box-shadow: var(--shadow-soft);
}

/* Footer & Utils */
.global-status-footer {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.global-status-footer .status-badge {
    font-size: 1.1rem;
    padding: 12px 30px;
    box-shadow: var(--shadow-soft);
}

.navigation-footer {
    margin-top: 25px;
}

.full-width {
    width: 100%;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Department List Adjustments */
.department-list {
    margin-top: 20px;
}

/* --- TRACCIA ORDINE: CONTRASTO E QR --- */

/* Hero personalizzato per l'ordine */
.hero-order-number {
    font-size: 3.5rem;
    font-family: 'Oswald';
    color: var(--primary-gold);
    line-height: 1;
    margin-bottom: 10px;
}

/* Card Scura per contrasto (Colonna Destra) */
.tracking-card-dark {
    background: var(--primary-dark);
    color: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    margin-bottom: 20px;
}

.dark-card-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.global-status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.status-badge-large {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    /* Aggiunto fallback */
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 700;
    /* Tipico per Oswald */
}

/* Stato: In Attesa */
.status-badge-large.in-attesa {
    color: var(--primary-light);
}

/* Stato: Completato */
.status-badge-large.completata {
    color: var(--primary-gold);
}

/* Stato: In Preparazione (Corretto senza spazio) */
.status-badge-large.inpreparazione,
.status-badge-large.in_preparazione {
    color: var(--primary-light);
    /* Blu o un colore distintivo */
}

/* Stato: Annullata */
.status-badge-large.annullata {
    color: #ff8585;
}


.order-quick-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.info-row svg {
    color: var(--primary-gold);
    width: 20px;
}

/* Gestione QR Code a comparsa */
.btn-show-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
}

.btn-show-qr:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qr-reveal-content {
    max-height: 0;
    overflow: hidden;
    transition: 0.5s ease;
    /* Leggermente più lento per ospitare il badge */
    display: flex;
    flex-direction: column;
    /* Badge sotto il QR */
    align-items: center;
    gap: 16px;
}

#chk-qr:checked~.qr-reveal-content {
    max-height: 350px;
    /* Aumentato per contenere QR + Badge */
    padding-top: 20px;
    padding-bottom: 10px;
}

#qrcode {
    background: white;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}

/* --- BADGE DI AUTENTICITÀ ADATTATI --- */

.verified-device-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(39, 174, 96, 0.15);
    /* Verde trasparente stile dark */
    color: #2ecc71;
    /* Verde acceso per risaltare sul fondo scuro */
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    width: 100%;
    max-width: 250px;
}

.verified-device-badge .badge-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.verified-device-badge strong {
    font-size: 0.85rem;
    display: block;
}

.verified-device-badge span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.guest-view-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- NUOVO STILE REPARTI --- */
.department-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.dept-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Stato: Completato */
.dept-card.is-done {
    border-color: #dcfce7;
    background: #f0fdf4;
}

/* Info Sinistra */
.dept-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dept-icon-box {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: 0.3s;
}

.is-done .dept-icon-box {
    background: #2e7d32;
    color: #fff;
}

.dept-text {
    display: flex;
    flex-direction: column;
}

.dept-label {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--primary-dark);
    text-align: left;
}

.dept-msg {
    font-size: 0.75rem;
    color: #888;
    text-align: left;
}

/* Status Destra */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-indicator.success {
    color: #2e7d32;
}

.status-indicator.working {
    color: var(--primary-gold);
}

/* Barra di Progresso */
.dept-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #eee;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gold);
    transition: width 1s ease-in-out;
}

.is-done .progress-fill {
    background: #2e7d32;
}

/* Animazione Pulsante per il "Preparing" */
.dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gold);
    animation: shadowPulse 1.5s infinite;
}

@keyframes shadowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(253, 204, 63, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(253, 204, 63, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(253, 204, 63, 0);
    }
}

.btn-remove-item svg.mdi {
    color: var(--secondary-dark);
    fill: currentColor;
}


/* --- PRIVACY POLICY: LAYOUT E CONTRASTO --- */

/* Hero Icon */
.home-hero .hero-order-number svg {
    width: 60px;
    height: 60px;
    color: var(--primary-gold);
}

/* Corpo della Privacy */
.privacy-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.privacy-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.privacy-section h3 svg {
    color: var(--secondary-dark);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.privacy-section p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: left;
}

.privacy-footer-note {
    color: var(--primary-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: left;
}

/* Link Email */
.cta-secondary-inline {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cta-secondary-inline:hover {
    color: var(--secondary-dark);
}

/* Sidebar Scura Legale */
.tracking-title-gold {
    color: var(--primary-gold);
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.legal-info-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 15px;
    line-height: 1.5;
}

.privacy-badge-footer {
    margin-top: 25px;
    text-align: center;
    color: var(--primary-gold);
}

.privacy-badge-footer svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

/* Navigazione */
.navigation-footer {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.full-width {
    width: 100%;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .privacy-section h3 {
        font-size: 1.1rem;
    }
}


/* --- COOKIE BANNER --- */
.cookie-banner-wrapper {
    position: fixed;
    bottom: -100%;
    /* Partiamo da fuori schermo */
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner-wrapper.visible {
    bottom: 0;
}

.cookie-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-gold);
}

.cookie-text strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--primary-gold);
}

.cookie-text p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-gold-sm {
    background: var(--primary-gold);
    color: var(--primary-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.mb-1 {
    margin-bottom: 2rem;
}

.order-notes {
    border: 2px dashed var(--primary-gold);
    /* Aumentato a 2px per risaltare */
    padding: 1.5rem;
    border-radius: var(--radius);
    color: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

/* Stile per l'intestazione interna alle note */
.notes-header {
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: var(--secondary-dark);
}

.order-notes p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* Un tocco di stile: una filigrana trasparente sullo sfondo */
.order-notes::after {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

@keyframes border-pulse {
    0% {
        border-color: var(--primary-gold);
    }

    50% {
        border-color: var(--secondary-dark);
    }

    100% {
        border-color: var(--primary-gold);
    }
}

.order-notes {
    animation: border-pulse 2s infinite ease-in-out;
}

/* Stile per il Tag 18+ */
.tag-18plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #c0392b;
    /* Rosso scuro/elegante */
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Stile per il Box di Avviso nel Modal */
.modal-alert-18plus {
    background-color: #fff3f3;
    color: #c0392b;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ffcccc;
    margin-bottom: 15px;
    font-size: 0.9em;
    display: flex;
    align-items: start;
    /* Allinea l'icona in alto se il testo va su più righe */
    gap: 10px;
}

.modal-alert-18plus .alert-icon {
    font-size: 1.2em;
    margin-top: -2px;
    /* Piccolo aggiustamento estetico */
}

.modal-alert-18plus strong {
    display: block;
    margin-bottom: 2px;
}

/* CSS Specifico per le Recensioni */
.rev-msg-success {
    background-color: #2e7d32;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.rev-msg-error {
    margin-bottom: 20px;
    display: block;
}

.rev-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rev-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.rev-item-stars {
    font-size: 1.2rem;
}

.rev-item-desc {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

.rev-item-date {
    color: #999;
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
}

.rev-empty {
    text-align: center;
    color: #777;
    padding: 20px;
}

/* Stili Modale Recensione */
.rev-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rev-modal-overlay.rev-active {
    display: flex;
    opacity: 1;
}

.rev-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.rev-modal-overlay.rev-active .rev-modal-content {
    transform: translateY(0);
}

.rev-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rev-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Stili Stelle Interattive */
.rev-stars-input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0 25px 0;
}

.rev-star-btn {
    font-size: 2.5rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.1s ease;
    user-select: none;
}

.rev-star-btn:hover {
    transform: scale(1.1);
}

.rev-star-btn.rev-active-star {
    color: #fbc02d;
}

.padd {
    padding: 20px;
}

.no-padd {
    padding: 0;
}

.round {
    border-radius: 24px;
}

/* =========================================
   GESTIONE PRIVACY & MARKETING CONSENT
   ========================================= */
.privacy-consent-group {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 12px;
}

/* Rimuove il margine sull'ultimo elemento per non sballare il padding del contenitore */
.custom-checkbox-wrapper:last-child {
    margin-bottom: 0;
}

.custom-checkbox-wrapper input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.privacy-link {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* =========================================
   UTILITIES GENERALI (se non le hai già)
   ========================================= */
.text-center {
    text-align: center !important;
}

.mt-24 {
    margin-top: 24px !important;
}

/* =========================================
   MODULO ISCRIZIONE E CONSENSI
   ========================================= */
.privacy-consent-box {
    background: var(--bg-light, #f8f9fa);
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid var(--border-color, #eaeaea);
}

.checkbox-label-flex {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Rimuove il margine sull'ultimo elemento */
.checkbox-label-flex:last-child {
    margin-bottom: 0;
}

.checkbox-input-large {
    margin-top: 4px;
    transform: scale(1.2);
    /* Ingrandisce leggermente la spunta per il mobile */
}

.checkbox-text-small {
    font-size: 13px;
    color: var(--text-dark, #333333);
    line-height: 1.4;
}

.link-bold-primary {
    color: var(--primary-dark, #683C10);
    font-weight: bold;
    text-decoration: none;
}

.link-bold-primary:hover {
    text-decoration: underline;
}

/* Stile specifico per il bottone di iscrizione */
.btn-gold {
    background-color: var(--primary-gold, #FDCC3F) !important;
    color: var(--primary-dark, #683C10) !important;
}

/* =========================================
   WIDGET EVENTO MUSICALE (INDEX)
   ========================================= */

.event-header-margin {
    margin-bottom: 16px;
}

.icon-theme-music {
    background-color: #f3e8ff;
    color: #7e22ce;
}

.event-card-layout {
    display: flex;
    gap: 16px;
    align-items: center; /* Centra verticalmente l'immagine con il testo */
}

.event-image {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0; /* Impedisce all'immagine di rimpicciolirsi se il testo è lungo */
}

.event-image-fallback {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.event-details {
    flex: 1;
    text-align: left; /* Forza l'allineamento del testo a sinistra */
}

.event-name {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 700;
}

.event-date {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Assicura che l'icona e la data partano da sinistra */
    gap: 6px;
}

/* Pulsante generico centrato con icona (usato per le recensioni) */
.btn-icon-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* =========================================
   COMPORTAMENTO LINK CARD EVENTO
   ========================================= */

a.event-link-card {
    text-decoration: none !important; /* Toglie la sottolineatura */
    color: inherit !important; /* Impedisce al testo di diventare blu, ereditando i colori originali */
    padding: 8px; /* Dà un po' di respiro all'hover */
    margin: -8px; /* Compensa il padding per non sballare gli allineamenti */
    border-radius: 12px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Effetto al passaggio del mouse per far capire che è cliccabile */
a.event-link-card:hover {
    background-color: var(--accent-blue); /* Sfondo azzurrino leggero al passaggio del mouse */
}

/* Colora la freccina a destra al passaggio del mouse */
.event-arrow {
    color: var(--text-light);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

a.event-link-card:hover .event-arrow {
    color: var(--primary-blue);
}


/* =========================================
   PAGINA SERATE MUSICALI
   ========================================= */

.events-layout {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-bottom: 50px;
}

.section-title-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 24px;
    font-weight: 800;
    text-transform: uppercase;
}

/* CARD IN PRIMO PIANO */
.event-featured-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.event-featured-image-wrapper {
    position: relative;
    height: 350px;
}

.event-featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-featured-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary-blue);
}

.event-live-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--danger-color);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: pulse-red 2s infinite;
}

.event-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.event-time-tag {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-main-name {
    font-size: 2.5rem;
    margin: 0 0 16px 0;
    line-height: 1.1;
    color: var(--text-dark);
}

.event-main-desc {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* LISTA EVENTI PROSSIMI */
.events-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.event-list-item {
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.event-list-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-blue);
}

.event-date-box {
    background: var(--bg-body);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.event-day {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.event-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-light);
}

.event-list-info {
    flex: 1;
    text-align: left;
}

.event-list-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.event-list-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-list-action {
    color: var(--border-color);
}

.empty-event-state {
    background: rgba(255,255,255,0.5);
    border: 2px dashed var(--border-color);
    padding: 40px;
    border-radius: 24px;
    color: var(--text-light);
    text-align: center;
}

.empty-event-state svg {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .event-featured-card {
        grid-template-columns: 1fr;
    }
    .event-featured-image-wrapper {
        height: 200px;
    }
    .event-main-name {
        font-size: 1.8rem;
    }
}

@keyframes pulse-red {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.text-left {
    text-align: left;
}