/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #2E86AB, #228B22);
    --primary-color: #2E86AB;
    --secondary-color: #228B22;
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --white: #FFFFFF;
    --light-bg: #F8FFFE;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Navbar moderna senza logo */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(135, 206, 235, 0.2);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(74, 144, 226, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 1.5rem;
    padding: 0.8rem 1.5rem !important;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: var(--primary-gradient);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
}

.navbar-nav .nav-link.active {
    background: var(--primary-gradient);
    color: white !important;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Carosello moderno */
.modern-carousel {
    position: relative;
    height: 80vh;
    border-radius: 25px;
    overflow: hidden;
    margin: 3rem 0;
    box-shadow: 0 25px 80px rgba(74, 144, 226, 0.15);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 4rem 3rem 3rem;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

.carousel-description {
    font-size: 1.2rem;
    font-weight: 400;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.carousel-prev {
    left: 3rem;
}

.carousel-next {
    right: 3rem;
}

.carousel-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Fullscreen carousel */
.carousel-fullscreen-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--primary-color);
    z-index: 10;
}

.carousel-fullscreen-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.fullscreen-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 9999;
    display: none;
}

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

.fullscreen-carousel .modern-carousel {
    height: 100vh;
    border-radius: 0;
    margin: 0;
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    color: #333;
    z-index: 10001;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: white;
    transform: scale(1.1);
}

/* Cards moderne */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin: 5rem 0;
}

.feature-card {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(74, 144, 226, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(135, 206, 235, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(74, 144, 226, 0.2);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Sezioni */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 4rem;
    font-weight: 300;
}

/* Footer compatto */
footer {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
    position: relative;
}

.footer-compact {
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.footer-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    opacity: 0.95;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.1);
}

.footer-social i {
    color: white;
    font-size: 1.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.footer-copyright p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

/* Galleria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}



.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(74, 144, 226, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #ffffff;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-overlay h5 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gallery-overlay p {
    color: #ffffff !important;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.filter-buttons {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--primary-gradient);
    border: none;
    color: white;
    padding: 1rem 2rem;
    margin: 0.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.filter-btn:hover, .filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

/* Contatti */
.contact-info {
    margin: 2rem 0;
}

.contact-info p {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.3rem;
}

/* Social media */
.social-icons a {
    display: inline-block;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-icons i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulsanti */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
    }
    
    .carousel-prev {
        left: 1.5rem;
    }
    
    .carousel-next {
        right: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Utilities */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.3);
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    flex: 1;
    max-width: 300px;
}

.timeline-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Schedule */
.schedule {
    text-align: left;
}

.schedule-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
}

.schedule-item:last-of-type {
    border-bottom: none;
}

.schedule-note {
    background: rgba(46, 134, 171, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    color: var(--primary-color);
    font-style: italic;
}

.schedule-note i {
    margin-right: 0.5rem;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 4rem;
    }
    
    .timeline-date {
        min-width: 120px;
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .timeline-content {
        max-width: none;
    }
}