        :root {
            --primary: #bb0000; /* agg */
            --secondary: #700000;  /* agg */
            --minibar: #6e8adb; /*new*/
            --minibooking: #ca3f3f; /*new*/
            --today: #ffd700; /*new*/
            --bg: #0a0a0a;
            --card: #1a1a1a;
            --text: #f4f4f4;
            --text-dim: #999;
            --border: #333;
            --success: #06d6a0;
            --danger: #ef476f;
            --grid: #252525;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Work Sans', sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.6;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 107, 53, 0.03) 2px, rgba(255, 107, 53, 0.03) 4px),
                repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 78, 137, 0.03) 2px, rgba(0, 78, 137, 0.03) 4px);
            pointer-events: none;
            z-index: 0;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
            position: relative;
            z-index: 1;
        }

        header {
            text-align: center;
            padding: 1rem 0;
            border-bottom: 3px solid var(--primary);
            margin-bottom: 3rem;
            position: relative;
        }

        /* Formatta footer */
        .footer {
            height: 40px;
            background-color: #1a1a1a;
            font-size: 0.75em;
            text-align: center;
            padding: 10px 0;
            position: relative;
        }
        .footer p a {
            color: var(--minibooking);
            text-decoration: none;
        }
         .footer p a:hover {
            color: var(--text);
        }

        /* Personalizza scrolbar sezione prenotazione*/
        /* larghezza */
        .booking-section::-webkit-scrollbar {
            width: 10px;
        }  
        /* sfondo */
        .booking-section::-webkit-scrollbar-track {
            background: #888; 
        }
        /* maniglia */
        .booking-section::-webkit-scrollbar-thumb {
            background: var(--secondary);
        }
        /* hover */
        .booking-section::-webkit-scrollbar-thumb:hover {
            background: #555; 
        }
        /* SOLO Firefox */
        .booking-section {
            scrollbar-width: auto;
            scrollbar-color: #888;
        }

        /* Dimensiona logo */
        .logo-home {
            width: 200px;
        }

        /* Carica font custom */
        @font-face {
        font-family: 'Cinematografica';
        src: url('../fonts/Cinematografica.eot');
        src: url('../fonts/Cinematografica.eot?#iefix') format('embedded-opentype'),
            url('../fonts/Cinematografica.woff2') format('woff2'),
            url('../fonts/Cinematografica.woff') format('woff'),
            url('../fonts/Cinematografica.svg#Cinematografica') format('svg');
        font-weight: normal;
        font-style: normal;
        font-display: swap;
        }

        h1 {
            /*font-family: 'Bebas Neue', sans-serif;*/
            font-family: 'Cinematografica', sans-serif;
            font-size: 5rem;
            font-weight: normal;
            color: var(--primary);
            letter-spacing: 0.05em;
            line-height: 1em;
            margin-top: 0.5em;
            /*text-transform: uppercase;
            margin-bottom: 0.5rem;
            text-shadow: 3px 3px 0 var(--secondary);
            animation: glitchTitle 3s infinite;*/
        }

        /* @keyframes glitchTitle {
            0%, 90%, 100% { transform: translate(0); }
            91% { transform: translate(-2px, 2px); }
            92% { transform: translate(2px, -2px); }
        } */

        .subtitle {
            font-size: 1.2rem;
            color: var(--text-dim);
            /*font-weight: 300;*/
            letter-spacing: 0.1em;
        }

        .main-layout {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 2rem;
            margin-top: 2rem;
        }

        .calendar-section {
            background: var(--card);
            border-radius: 12px;
            padding: 1rem;
            border: 2px solid var(--border);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--primary);
        }

        .calendar-nav {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .nav-btn {
            background: var(--secondary);
            color: var(--text);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s;
            font-weight: bold;
        }

        .nav-btn:hover {
            background: var(--primary);
            transform: scale(1.1);
        }

        .current-month {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2rem;
            letter-spacing: 0.1em;
            color: var(--primary);
        }

        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            /*gap: 8px;*/
        }

        .day-header {
            text-align: center;
            font-weight: 700;
            padding: 1rem 0;
            color: var(--text-dim);
            font-size: 0.9rem;
            letter-spacing: 0.05em;
        }

        .day-cell {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            border: 1px solid var(--border);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            position: relative;
            background: var(--bg);
            padding: 0.5rem;
            overflow-y: auto;
            min-height: 120px;
        }

        .day-cell:hover {
            border-color: var(--primary);
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
            z-index: 10;
        }

        .day-cell.other-month {
            opacity: 0.3;
            pointer-events: none;
        }

        .day-cell.selected {
            background: rgba(255, 107, 53, 0.1);
            border-color: var(--primary);
            box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
        }

        .day-cell.today {
            border: 1px solid var(--today);
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
        }

        .day-cell.has-bookings {
            background: rgba(0, 78, 137, 0.05);
        }

        .day-number {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 0.3rem;
            text-align: left;
        }

        .day-bookings {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            flex: 1;
            /*overflow-y: auto;*/
        }

        .mini-booking {
            background: var(--minibooking);
            color: var(--bg);
            padding: 0.3rem 0.4rem;
            border-radius: 4px;
            font-size: 0.75rem;
            /*font-weight: 600;*/
            cursor: pointer;
            transition: all 0.2s;
            white-space: normal; /*nowrap*/
            word-wrap: break-word; /*new*/
            line-height: 1em; /*new*/
            overflow: hidden;
            text-overflow: ellipsis;
            border-left: 3px solid var(--minibar);
        }

        .mini-booking:hover {
            background: var(--secondary);
            transform: scale(1.05);
            z-index: 100;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }
        
        /* START
        ATTIVATO word-wrap e white-space su .mini-booking
        QUINDI MOMENTANEAMENTE ELIMINO LE SCROLLBAR SULLE DATE

        /* Scrollbar personalizzata per le celle calendario
        /* Chrome, Edge, Safari
        .day-cell::-webkit-scrollbar,
        .day-bookings::-webkit-scrollbar {
            overflow-y: scroll !important;
            -webkit-appearance: none;
            width: 4px;
        }
        .day-cell::-webkit-scrollbar-track,
        .day-bookings::-webkit-scrollbar-track {
            background: #888;
        }
        .day-cell::-webkit-scrollbar-thumb,
        .day-bookings::-webkit-scrollbar-thumb {
            background: var(--secondary);
            border-radius: 2px;
        }
        .day-cell::-webkit-scrollbar-thumb:hover,
        .day-bookings::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
        /* Firefox
        .day-cell,
        .day-bookings {
            scrollbar-width: thin;
            scrollbar-color: #888;
        }
        END */

        .booking-section {
            background: var(--card);
            border-radius: 12px;
            padding: 1rem;
            border: 2px solid var(--border);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            position: sticky;
            top: 2rem;
            max-height: calc(100vh - 4rem);
            overflow-y: auto;
        }

        .booking-section h2 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 2rem;
            font-weight: normal;
            color: var(--primary);
            margin-bottom: 1.5rem;
            letter-spacing: 0.1em;
            border-bottom: 2px solid var(--primary);
            padding-bottom: 0.5rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--text);
            font-weight: 600;
            font-size: 0.9rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        input, select {
            width: 100%;
            padding: 0.9rem;
            background: var(--bg);
            border: 2px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-family: 'Work Sans', sans-serif;
            font-size: 1rem;
            transition: all 0.3s;
        }

        input:focus, select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
        }

        .time-slots {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.5rem;
            max-height: 300px;
            overflow-y: auto;
            padding: 0.5rem;
            background: var(--bg);
            border-radius: 8px;
        }

        .time-slot {
            padding: 0.8rem;
            background: var(--card);
            border: 2px solid var(--border);
            border-radius: 6px;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
            font-weight: 600;
        }

        .time-slot:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
        }

        .time-slot.selected {
            background: var(--primary);
            border-color: var(--primary);
            box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
        }

        .time-slot.disabled {
            opacity: 0.3;
            cursor: not-allowed;
            pointer-events: none;
        }

        .btn {
            width: 100%;
            padding: 1.2rem;
            background: var(--primary);
            color: var(--bg);
            border: none;
            border-radius: 8px;
            font-family: 'Bebas Neue', sans-serif;
            font-size: 1.5rem;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 1rem;
            text-transform: uppercase;
        }

        .btn:hover {
            background: var(--secondary);
            transform: translateY(-3px);
            /*box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);*/
        }

        .btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            transform: none;
        }

        .bookings-list {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 2px solid var(--border);
        }

        .booking-item {
            background: var(--bg);
            border-left: 4px solid var(--primary);
            padding: 1rem;
            margin-bottom: 1rem;
            border-radius: 6px;
            transition: all 0.3s;
        }

        .booking-item:hover {
            transform: translateX(5px);
            box-shadow: 0 5px 20px rgba(255, 107, 53, 0.2);
        }

        .booking-band {
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--primary);
            margin-bottom: 0.3rem;
        }

        .booking-details {
            color: var(--text-dim);
            font-size: 0.9rem;
        }

        .booking-actions {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
        }

        .btn-small {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
            background: var(--secondary);
            color: var(--text);
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }

        .btn-small:hover {
            background: var(--primary);
        }

        .btn-small.delete {
            background: var(--danger);
        }

        .notification {
            position: fixed;
            top: 95px; /*2rem*/
            right: 2rem;
            padding: 1.5rem 2rem;
            border-radius: 8px;
            color: var(--bg);
            font-weight: 600;
            z-index: 1000;
            animation: slideIn 0.5s ease-out;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        }

        .notification.success {
            background: var(--success);
        }

        .notification.error {
            background: var(--danger);
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        /* Modal per verifica email */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            animation: fadeIn 0.3s ease-out;
        }

        .modal {
            background: var(--card);
            border: 2px solid var(--primary);
            border-radius: 12px;
            padding: 2rem;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideInModal 0.3s ease-out;
        }

        .modal h3 {
            font-family: 'Bebas Neue', sans-serif;
            color: var(--primary);
            font-size: 1.8rem;
            margin-bottom: 1rem;
            letter-spacing: 0.05em;
        }

        .modal p {
            color: var(--text-dim);
            margin-bottom: 1.5rem;
        }

        .modal input {
            width: 100%;
            padding: 1rem;
            background: var(--bg);
            border: 2px solid var(--border);
            border-radius: 8px;
            color: var(--text);
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }

        .modal input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
        }

        .modal-buttons {
            display: flex;
            gap: 1rem;
        }

        .modal-btn {
            flex: 1;
            padding: 1rem;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 1rem;
            font-family: 'Work Sans', sans-serif;
        }

        .modal-btn.primary {
            background: var(--primary);
            color: var(--bg);
        }

        .modal-btn.primary:hover {
            background: var(--secondary);
            transform: translateY(-2px);
        }

        .modal-btn.secondary {
            background: var(--border);
            color: var(--text);
        }

        .modal-btn.secondary:hover {
            background: var(--text-dim);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideInModal {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (max-width: 1024px) {
            .main-layout {
                grid-template-columns: 1fr;
            }

            h1 {
                font-size: 3rem;
            }

            .booking-section {
                position: static;
                max-height: none;
            }

            .day-cell {
                min-height: 100px;
                font-size: 0.85rem;
            }

            .mini-booking {
                font-size: 0.7rem;
                padding: 0.25rem 0.3rem;
            }

            .day-number {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 768px) {
            .container {
            padding: 1rem;
        }
            .day-cell {
                min-height: 80px;
                padding: 0.3rem;
            }

            .mini-booking {
                font-size: 0.65rem;
                padding: 0.2rem 0.25rem;
            }

            .day-number {
                font-size: 0.8rem;
            }

            .calendar-section {
                padding: 1rem;
            }
        }

        @media (min-width: 1400px) {
            .day-cell {
                min-height: 140px;
            }
        }

        .legend {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-dim);
        }

        .legend-box {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            border: 2px solid var(--border);
        }