/* Reset e stile generale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header con logo e titolo */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 40px 20px;
}

.logo-container {
    margin-bottom: 20px;
	margin-top: -30px;
}

.logo {
    max-width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #3C4F76;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
}

.slogan {
    font-size: 1.3rem;
    color: #ff8c00;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 10px auto;
    font-style: italic;
}

/* Layout a due colonne */
.two-column-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 50px 0;
    padding: 0 40px;
}

.left-column {
    flex: 0 0 40%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
}

.right-column {
    flex: 0 0 60%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 20px;
	margin-top:-130px;
}

/* Griglia dei pulsanti */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 100px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.icon-container {
    width: 120px;
    height: 120px;
    background-color: #577399 !important;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.icon-container i {
    font-size: 50px;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Banner NOVITÀ */
.new-banner {
    position: absolute;
    top: 5px;
    right: -15px;
    background-color: #ff8c00;
    color: white;
    font-size: 9px;
    font-weight: bold;
    padding: 3px 12px;
    transform: rotate(45deg);
    transform-origin: center;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    white-space: nowrap;
}

.valida-orario {
    background-color: #577399 !important;
}

.icon-text {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #2c3e50;
    max-width: 140px;
    line-height: 1.3;
}

/* Effetti hover */
.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item:hover .icon-container {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.grid-item:hover .icon-container i {
    transform: scale(1.1);
}

.grid-item:hover .icon-text {
    color: #2c3e50;
    font-weight: 700;
}

/* Carousel container */
.carousel-container {
    text-align: center;
    padding: 20px;
    width: 780px;
    margin: 0 auto;
	margin-left: -160px;
	margin-top: -60px;
}

.carousel {
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-height: 350px;
}

.carousel-slide {
    display: none;
    padding: 30px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

.slide-icon {
    margin-bottom: 20px;
}

.slide-icon i {
    font-size: 60px;
    color: #577399;
    margin-bottom: 15px;
}

.carousel-slide h3 {
    color: #3C4F76;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.carousel-slide p {
    color: #34495e;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
   
}

.carousel-btn {
    background: #577399;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #3C4F76;
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #577399;
}

.indicator:hover {
    background: #3C4F76;
}

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

/* Responsive design */
@media (max-width: 1024px) {
    .two-column-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .left-column, .right-column {
        flex: 1;
    }
    
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .main-title {
        font-size: 2.8rem;
    }
    
    .slogan {
        font-size: 1.1rem;
    }
    
    .carousel-container {
        max-width: 600px;
    }
    
    .carousel {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .two-column-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .left-column, .right-column {
        flex: 1;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .icon-container {
        width: 100px;
        height: 100px;
    }
    
    .icon-container i {
        font-size: 40px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .carousel {
        min-height: 250px;
    }
    
    .carousel-slide h3 {
        font-size: 1.5rem;
    }
    
    .carousel-slide p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .icon-container {
        width: 120px;
        height: 120px;
    }
    
    .icon-container i {
        font-size: 50px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .slogan {
        font-size: 0.9rem;
    }
    
    .carousel {
        min-height: 200px;
    }
    
    .carousel-slide {
        padding: 20px;
    }
    
    .carousel-slide h3 {
        font-size: 1.3rem;
    }
    
    .carousel-slide p {
        font-size: 0.8rem;
    }
    
    .container {
        padding: 10px;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    animation: fadeInUp 0.8s ease-out;
}

.grid-item {
    animation: fadeInUp 0.8s ease-out;
}

.grid-item:nth-child(1) { animation-delay: 0.1s; }
.grid-item:nth-child(2) { animation-delay: 0.2s; }
.grid-item:nth-child(3) { animation-delay: 0.3s; }
.grid-item:nth-child(4) { animation-delay: 0.4s; }
.grid-item:nth-child(5) { animation-delay: 0.5s; }
.grid-item:nth-child(6) { animation-delay: 0.6s; }
.grid-item:nth-child(7) { animation-delay: 0.7s; }
.grid-item:nth-child(8) { animation-delay: 0.8s; }

.video-container {
    animation: fadeInUp 1s ease-out 0.9s both;
}