
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            height: 100vh;
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            background-size: 400% 400%;
            color: #333;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 35px 20px;
        }
                
        .calendar-wrapper {
            display: flex;
            width: 100%;
            height: 100%;
            max-width: 1800px;
            gap: 20px;
            position: relative;
            perspective: 2000px;
        }
        
        .hero-title {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            z-index: 5;
            width: 90%;
            max-width: 1200px;
        }
        
        .main-title {
            font-size: 2.5rem;
            color: white;
        }
        
        @keyframes titleGlow {
            0% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
            100% { text-shadow: 0 0 20px rgba(255, 140, 0, 0.8), 0 0 30px rgba(255, 69, 0, 0.6); }
        }
        
        .subtitle {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 300;
        }
        
        .month-preview {
            flex: 1;
            background-color: #5d89c6;
            border-radius: 15px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            min-width: 0;
            transition: transform 0.4s ease, opacity 0.4s ease;
            opacity: 0.4;
            backdrop-filter: blur(5px);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }
        
        .month-preview:hover {
            transform: translateY(-5px) rotateY(5deg);
            opacity: 1;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        }
        
        .main-calendar {
            flex: 2.5;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
            transform-style: preserve-3d;
        }
        
        .preview-header {
            text-align: center;
            font-weight: 600;
            font-size: 1.4rem;
            color: #ffffff;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid rgba(0, 0, 0, 0.1);
            letter-spacing: 1px;
        }
        
        .preview-weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-weight: bold;
            color: #ffffff;
            font-size: 0.75rem;
            margin-bottom: 5px;
        }
        
        .preview-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            grid-auto-rows: 1fr;
            gap: 3px;
        }
        
        .preview-day {
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.9rem;
            aspect-ratio: 1;
            border-radius: 50%;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            font-weight: 500;
        }
        
        .preview-day:hover {
            background-color: #f0f7ff;
            transform: scale(1.1);
        }
        
        .preview-day.empty {
            visibility: hidden;
        }
        
        .preview-day.other-month {
            color: #ffffff;
        }
        
        .preview-day.current {
            background: radial-gradient(circle, #3a7bd5, #2a5bb5);
            color: white;
            font-weight: bold;
            box-shadow: 0 3px 8px rgba(58, 123, 213, 0.4);
            transform: scale(1.1);
        }
        
        .calendar-container {
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(245, 248, 255, 0.95));
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            position: relative;
            border: 2px solid rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(3px);
        }
        
        .calendar-content {
            position: relative;
            height: 100%;
            overflow: hidden;
        }
        
        .calendar-view {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.8s ease;
            opacity: 1;
        }
        
        .calendar-view.slide-out-left {
            transform: translateX(-100%) rotateY(-15deg);
            opacity: 0;
        }
        
        .calendar-view.slide-out-right {
            transform: translateX(100%) rotateY(15deg);
            opacity: 0;
        }
        
        .calendar-view.slide-in-left {
            transform: translateX(-100%) rotateY(-15deg);
            animation: slideInLeft 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }
        
        .calendar-view.slide-in-right {
            transform: translateX(100%) rotateY(15deg);
            animation: slideInRight 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        }
        
        @keyframes slideInLeft {
            from {
                transform: translateX(-100%) rotateY(-15deg);
                opacity: 0;
            }
            to {
                transform: translateX(0) rotateY(0);
                opacity: 1;
            }
        }
        
        @keyframes slideInRight {
            from {
                transform: translateX(100%) rotateY(15deg);
                opacity: 0;
            }
            to {
                transform: translateX(0) rotateY(0);
                opacity: 1;
            }
        }
        
        .header {
            background: #3a7bd5;
            color: white;
            padding: 25px 20px 20px;
            text-align: center;
            position: relative;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
            z-index: 2;
        }
        
        .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.header-image-left {
    margin-right: 20px;
}

.header-image-right {
    margin-left: 20px;
}
@media screen and (min-width: 1201px) and (max-height: 779px) {
  /* I tuoi stili CSS qui */
  body {
   /*  background: red; Esempio di stile */
    padding: 5px;
  }
  .main-title {
  font-size: 2.1rem;
  }
  .subtitle {
  font-size: 1.1rem;
  }
  .search-container {
  margin: 5px 0;
  }
  .month-year {
  font-size: 1.4rem;    
  }
  .nav-btn {
  font-size: 1.0rem!important;
  width: 45px!important;
  height: 45px!important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-image {
        width: 40px;
        height: 40px;
    }
    
    .header-image-left {
        margin-right: 10px;
    }
    
    .header-image-right {
        margin-left: 10px;
    }
}
        .month-year {
            font-size: 1.8rem;
            font-weight: 700;
           color: #074a92;
        }
        
        .navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
        }
        
        .nav-btn {
            background-color: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 1.4rem;
            color: white;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }
        
        .nav-btn:hover {
            background-color: rgba(255, 255, 255, 0.3);
            transform: scale(1.1) rotate(10deg);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        }
        
        .weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            background: linear-gradient(to right, #2a5bb5, #3a7bd5);
            color: white;
            font-weight: bold;
            text-align: center;
            padding: 15px 0;
            font-size: 1.1rem;
            letter-spacing: 1px;
            font-family: 'Raleway', sans-serif;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .calendar-grid {
            flex: 1;
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            grid-auto-rows: 1fr;
            gap: 1px;
            background-color: #e0e9ff;
            overflow: hidden;
        }
        
        .calendar-day {
            background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(245, 248, 255, 0.9));
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 12px;
            position: relative;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
            cursor: pointer;
            border: 1px solid rgba(225, 230, 240, 0.5);
        }
        
        .calendar-day:hover {
            background: linear-gradient(to bottom right, #ffffff, #f0f7ff);
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 8px 25px rgba(58, 123, 213, 0.2);
            z-index: 2;
        }
        
        .calendar-day:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(to right, #3a7bd5, #00d2ff);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s ease;
        }
        
        .calendar-day:hover:before {
            transform: scaleX(1);
        }
        
        .day-number {
            font-size: 1.3rem;
            font-weight: bold;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
            font-family: 'Raleway', sans-serif;
        }
        
        .today .day-number {
            background: radial-gradient(circle, #3a7bd5, #2a5bb5);
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(58, 123, 213, 0.4);
        }
        
        .event-indicator {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 4px;
            margin-top: 5px;
            position: relative;
            z-index: 1;
        }
        
        .event-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: linear-gradient(to right, #ff6b6b, #ff8e8e);
            transition: transform 0.3s ease;
        }
        
        .calendar-day:hover .event-dot {
            transform: scale(1.4);
        }
        
        .weekend {
            background: linear-gradient(to bottom right, rgba(248, 249, 255, 0.9), rgba(240, 242, 255, 0.9));
        }
        
        .weekend:hover {
            background: linear-gradient(to bottom right, #f8f9ff, #eef2ff);
        }
        
        .empty {
            background-color: rgba(240, 240, 240, 0.6);
            cursor: default;
        }
        
        .empty:hover {
            transform: none;
            background-color: rgba(240, 240, 240, 0.6);
            box-shadow: none;
        }
        
        .empty:hover:before {
            transform: scaleX(0);
        }
        
        /* Stile per il popup degli eventi storici */
        .event-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
        }
        
        .event-modal.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background: linear-gradient(to bottom right, #ffffff, #f8fbff);
            width: 90%;
            max-width: 700px;
            border-radius: 20px;
            overflow: hidden;
            transform: translateY(-50px) scale(0.95);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
            opacity: 0;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        .event-modal.active .modal-content {
            transform: translateY(0) scale(1);
            opacity: 1;
        }

        .event-image {
            margin-top: 10px;
        }

        .event-image img {
            width: 100%;
            height: auto;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        .image-caption {
            font-size: 0.9em;
            color: #666;
            font-style: italic;
            margin-top: 5px;
        }

        /*.event-video {
            margin-top: 15px;
        }

        .event-video video {
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: 4px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }*/
        .event-video {
        position: relative;
        width: 100%; /* Ensure it fills parent width */
        padding-top: 56.25%; /* 16:9 Aspect Ratio (9/16 * 100) */ 
        overflow: hidden; /* Optional: hides any content that might overflow */
        }
        .event-video iframe { /* Or iframe#adapt-player */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        }
        .video-caption {
            font-size: 0.9em;
            color: #666;
            font-style: italic;
            margin-top: 5px;
            margin-bottom: 10px;
        }
        .event-image, .event-video {
            margin-top: 10px;
        }
        .login{
            position: relative;
            z-index: auto;
            font-size: 0.9em;
            font-weight: bold;
        }
                
        .modal-header {
            background: linear-gradient(to right, #3a7bd5, #00d2ff);
            color: white;
            padding: 25px;
            position: relative;
            text-align: center;
        }
        
        .modal-title {
            font-size: 2.2rem;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            text-transform: lowercase;
        }
        
        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
        }
        
        .close-btn:hover {
            transform: rotate(90deg) scale(1.1);
            background: rgba(255, 255, 255, 0.3);
        }
        
        .modal-body {
            padding: 30px;
            max-height: 60vh;
            overflow-y: auto;
        }
        
        .event-item {
            padding: 18px 0;
            border-bottom: 1px solid #eee;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: initial;
            padding-left: 25px;
        }
        
        /*.event-item:before {
            content: '';
            position: absolute;
            left: 0;
            top: 27px;
            width: 12px;
            height: 12px;
            background: linear-gradient(45deg, #3a7bd5, #00d2ff);
            border-radius: 50%;
        }
        
        .event-item:hover {
            transform: translateX(10px);
        }*/
        
        .event-year {
            font-weight: 900;
            color: #3a7bd5;
            font-size: 1.3rem;
            display: inline-block;
            background: linear-gradient(to right, #3a7bd5, #2a5bb5);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        .event-text {
            font-size: 1.0rem;
            line-height: 1.0;
            color: #3a7bd5;
            font-weight: 900;
            text-transform: uppercase;
            margin-bottom: 10px;
        }
        .event-description{
            font-size: 1.0rem;
            line-height: 1.1;
            color: #535353;
            font-weight: 400;
            margin-bottom: 10px;
        }
        
        .no-events {
            text-align: center;
            padding: 40px 30px;
            color: #777;
            font-size: 1.3rem;
            font-style: italic;
        }
        
        .history-icon {
            position: absolute;
            bottom: 10px;
            right: 10px;
            color: #3a7bd5;
            font-size: 0.9rem;
            transition: transform 0.3s ease, color 0.3s ease;
        }

        .cover-image img {
           width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s;
        }
        
        .calendar-day:hover .history-icon {
            transform: scale(1.3);
            color: #ff6b6b;
        }
        
        .event-badge {
            position: absolute;
            top: 8px;
            right: 8px;
            background: radial-gradient(circle, #ff6b6b, #ff5252);
            color: white;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease, background 0.3s ease;
            font-weight: bold;
            box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
        }
        
        .calendar-day:hover .event-badge {
            transform: scale(1.3);
        }
        
        .transition-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #3a7bd5, #00d2ff);
            z-index: 10;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }
        
        .transition-overlay.active {
            opacity: 0.9;
        }
        
        .transition-text {
            color: white;
            font-size: 3.5rem;
            font-weight: bold;
            text-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
            transform: scale(0.8);
            opacity: 0;
            transition: all 0.4s ease;
            text-align: center;
            max-width: 90%;
        }
        
        .transition-overlay.active .transition-text {
            transform: scale(1);
            opacity: 1;
        }
        
        /* Stile per la ricerca */
        .search-container {
            display: flex;
            margin: 15px 0;
            justify-content: center;
            position: relative;
        }
        
        .search-box {
            display: flex;
            background: white;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 500px;
        }
        
        #search-input {
            flex: 1;
            padding: 12px 20px;
            border: none;
            outline: none;
            font-size: 1rem;
            background: transparent;
        }
        
        #search-button {
            padding: 12px 25px;
            border: none;
            background: linear-gradient(to right, #3a7bd5, #00d2ff);
            color: white;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        #search-button:hover {
            background: linear-gradient(to right, #2a5bb5, #00a8e0);
            transform: scale(1.05);
        }
        
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            z-index: 100;
            margin-top: 5px;
            max-height: 300px;
            overflow-y: auto;
            display: none;
        }
        
        .search-results.active {
            display: block;
        }
        
        .result-item {
            padding: 12px 20px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: background 0.2s ease;
        }
        
        .result-item:hover {
            background: #f0f7ff;
        }
        
        .result-date {
            font-weight: bold;
            color: #3a7bd5;
            margin-bottom: 5px;
            text-transform: lowercase;
        }
        
        .result-event {
            font-size: 0.95rem;
        }
        
        .no-results {
            padding: 15px 20px;
            text-align: center;
            color: #777;
            font-style: italic;
        }
        
        .search-info {
            margin-top: 10px;
            color: white;
            font-size: 0.9rem;
            opacity: 0.8;
        }
        .no-italics {
        font-style: normal;
        }
        
        @media (max-width: 1200px) {
            .month-preview {
                display: none;
            }
            
            .main-calendar {
                flex: 1;
            }
            
            .main-title {
                font-size: 2.8rem;
            }
            
            .subtitle {
                font-size: 1.2rem;
            }
        }
        
        @media (max-width: 768px) {
            .month-year {
                font-size: 2.2rem;
            }
            
            .nav-btn {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
            
            .day-number {
                font-size: 1.1rem;
            }
            
            .modal-title {
                font-size: 1.8rem;
            }
            
            .transition-text {
                font-size: 2.2rem;
            }
            
            .main-title {
                font-size: 2.2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
        }
        
        @media (max-width: 480px) {

            body {               
            padding-bottom: 65px;
            }    
            
            .month-year {
                font-size: 1.8rem;
            }
            
            .nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
            
            .weekdays {
                font-size: 0.9rem;
                padding: 12px 0;
            }
            
            .modal-title {
                font-size: 1.5rem;
            }
            
            .event-text {
                font-size: 1rem;
            }
            
            .transition-text {
                font-size: 1.8rem;
            }
            
            .main-title {
                font-size: 1.8rem;
                line-height: 1.2;
            }
            
            .subtitle {
                font-size: 0.9rem;
            }
            
            .search-box {
                flex-direction: column;
                border-radius: 15px;
            }
            
            #search-button {
                border-radius: 0 0 15px 15px;
            }
        }
