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

/* Variabili CSS basate sul tema dell'app RadioGard */
:root {
    /* Colori principali - PALETTE SCURITA per eleganza */
    --primary-color: #D67B35;      /* Arancione più scuro */
    --primary-light: #F2A365;      /* Arancione più chiaro per leggibilità */
    --primary-dark: #B8632A;       /* Arancione molto scuro */
    
    /* Colori secondari scuriti */
    --secondary-coral: #B83A45;    /* Rosso corallo scuro */
    --secondary-purple: #3A2456;   /* Viola molto profondo */
    --secondary-purple-dark: #2A1A3F;   /* Viola molto scuro per ombre */
    --secondary-navy: #1F2A3D;     /* Blu navy più scuro */
    --secondary-cyan: #4A8DB8;     /* Turchese/Ciano scuro */
    --secondary-pink: #9A2D45;     /* Rosa scuro */
    
    /* Colori di sfondo - TONALITÀ SOTTILI */
    --bg-dark: #1a1a2e;           /* Blu scuro principale */
    --bg-medium: #16213e;         /* Blu medio per card */
    --bg-light: #273c75;          /* Blu più chiaro */
    --bg-subtle: #1e1e3a;         /* Tonalità intermedia sottile */
    --bg-gradient-1: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    --bg-gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #1e1e3a 30%, #1a1a2e 70%, #16213e 100%);
    --bg-gradient-features: linear-gradient(45deg, #16213e 0%, #1a1a2e 50%, #16213e 100%);
    --bg-gradient-stations: radial-gradient(circle at 30% 80%, #1e1e3a 0%, #1a1a2e 60%, #16213e 100%);
    --bg-gradient-essen: linear-gradient(120deg, #16213e 0%, #1a1a2e 50%, #1e1e3a 100%);
    --bg-gradient-crowdfunding: radial-gradient(ellipse at 80% 20%, #1a1a2e 0%, #16213e 60%, #1e1e3a 100%);
    --bg-gradient-about: linear-gradient(-45deg, #1e1e3a 0%, #1a1a2e 50%, #16213e 100%);
    --bg-gradient-download: linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #1e1e3a 100%);
    
    /* Colori testo - AGGIORNATI per migliore leggibilità */
    --text-primary: #FFFFFF;
    --text-secondary: #D1DCE7;     /* Grigio azzurrato più chiaro */
    --text-hint: #B8C5D6;          /* Grigio medio */
    --text-disabled: #8FA3B8;      /* Grigio scuro */
    
    /* Colori per stati e interazioni */
    --accent-coral: #B83A45;     /* Coral scuro */
    --accent-cyan: #4A8DB8;      /* Cyan scuro */
    --accent-purple: #3A2456;    /* Purple scuro */
    
    /* Bordi */
    --border-color: #B8C5D6;
    --border-accent: #D67B35;
    
    /* Spaziature */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-base: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Bordi arrotondati */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Stili generali */
body {
    font-family: 'Nunito', sans-serif;
    background: var(--bg-gradient-1);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
}

.app-container {
    width: 100%;
    overflow-x: hidden; /* Per evitare scrollbar orizzontali indesiderate */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-title {
    font-family: 'Expletus Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    position: relative;
    padding-bottom: var(--spacing-md);
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
    z-index: 1;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-base) var(--spacing-xl);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-dark);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--secondary-cyan);
    transition: transform 0.3s ease;
}

/* Class for hiding header */
.header--hidden {
    transform: translateY(-100%);
}

/* Adjusting the layout to account for fixed header */
body {
    padding-top: 70px; /* Approximately the height of the header */
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 60px; /* Smaller padding for smaller screens */
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: var(--spacing-md);
}

.logo h1 {
    font-family: 'Expletus Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: var(--spacing-xl);
}

.nav ul li a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav ul li a:hover {
    color: var(--text-primary);
}

.nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav ul li a:hover:after {
    width: 100%;
}

.nav ul li a {
    position: relative;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav ul li a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section - UPDATED: better centering and increased lateral margins */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: var(--spacing-2xl) var(--spacing-2xl); /* Increased padding */
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-hero);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 550px; /* Reduced width to center better */
    z-index: 1;
    padding: 0 var(--spacing-xl);
    margin: 0 auto;
}

.hero-content h2 {
    font-family: 'Expletus Sans', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-height: 600px;
    transform: perspective(800px) rotateY(-15deg);
    border-radius: var(--radius-lg);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.5s ease-in-out;
}

.hero-image img:hover {
    transform: perspective(800px) rotateY(-5deg);
}

/* Coming soon labels */
.coming-soon-labels {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--accent-purple);
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-accent);
}

.coming-soon-badge i {
    margin-right: var(--spacing-sm);
    font-size: 1.2em;
    color: var(--primary-color);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.cta-primary, .cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-weight: 600;
}

.cta-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--primary-color);
}

.cta-primary:active {
    transform: translateY(-1px);
}

.cta-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: #FFFFFF;
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
    z-index: -1;
}

.cta-primary:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.cta-secondary {
    background-color: transparent;
    color: var(--secondary-cyan);
    border: 2px solid var(--secondary-cyan);
}

.cta-secondary:hover {
    background: var(--accent-cyan);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.full-width {
    width: 100%;
}

/* Features Section */
.features {
    padding: var(--spacing-2xl) 0;
    position: relative;
    width: 100%;
}

.features:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-features);
    z-index: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-xl);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.feature-card {
    background-color: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--secondary-cyan);
    box-shadow: 0 10px 30px var(--secondary-purple-dark);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--secondary-purple);
    border: 1px solid var(--primary-color);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.8rem;
    color: #FFFFFF;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Stations Section - FIXED ANIMATION */
.stations {
    padding: var(--spacing-2xl) 0;
    position: relative;
    width: 100%;
}

.stations:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-stations);
    z-index: 0;
}

.stations-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    padding: 0 var(--spacing-xl);
    width: 100%;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Added new stations-more section */
.stations-more {
    text-align: center;
    margin-top: var(--spacing-xl);
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.2rem;
    animation: fadeIn 1s ease-out both;
    animation-delay: 0.8s;
    padding: 0 var(--spacing-xl);
}

.station-card {
    background-color: var(--bg-medium);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--secondary-cyan);
    transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.3s ease;
    /* Start visible but transform from below */
    transform: translateY(100px);
    opacity: 0;
    box-shadow: 0 10px 30px var(--secondary-purple-dark);
}

.station-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.station-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--secondary-purple);
    border: 1px solid var(--primary-color);
}

/* Station card animation sequence - velocizzata */
.station-card:nth-child(1) { transition-delay: 0.1s; }
.station-card:nth-child(2) { transition-delay: 0.15s; }
.station-card:nth-child(3) { transition-delay: 0.2s; }
.station-card:nth-child(4) { transition-delay: 0.25s; }

/* Sincronizzazione immagini con i box per animazione iniziale */
.station-card:nth-child(1) .station-image img { transition-delay: 0.1s; }
.station-card:nth-child(2) .station-image img { transition-delay: 0.15s; }
.station-card:nth-child(3) .station-image img { transition-delay: 0.2s; }
.station-card:nth-child(4) .station-image img { transition-delay: 0.25s; }

/* Rimuovi delay per le interazioni hover */
.station-card.visible { transition-delay: 0s; }
.station-card.visible .station-image img { transition-delay: 0s; }

.station-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.station-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.station-card:hover .station-image img {
    transform: scale(1.1);
}

.station-card h3 {
    font-size: 1.3rem;
    padding: var(--spacing-md) var(--spacing-md) 0;
}

.station-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0 var(--spacing-md) var(--spacing-md);
}

/* Spiel Essen Section - UPDATED: matching heading styles */
.essen {
    padding: var(--spacing-2xl) 0;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-dark), var(--bg-dark));
    width: 100%;
}

.essen:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-essen);
    z-index: 0;
}

.essen-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    background-color: var(--bg-medium);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px var(--secondary-purple-dark);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    max-width: 1440px;
    width: calc(100% - var(--spacing-xl) * 2);
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.essen-content:hover {
    box-shadow: 0 15px 30px var(--secondary-purple);
    border: 1px solid var(--primary-color);
}

.essen-info {
    flex: 1;
}

/* Updated to match Crowdfunding styles */
.essen-info h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-light);
    position: relative;
    display: inline-block;
}

.essen-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

.essen-info p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.event-details {
    background-color: var(--bg-medium);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid var(--secondary-cyan);
}

.event-detail {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.event-detail:last-child {
    margin-bottom: 0;
}

.event-detail i {
    width: 30px;
    height: 30px;
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--spacing-md);
    color: var(--text-primary);
}

.event-detail span {
    color: var(--text-primary);
    font-weight: 500;
}

.essen-image {
    flex: 1;
    position: relative;
    max-width: 500px;
}

.essen-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px var(--secondary-purple);
    transition: transform 0.3s ease;
}

.essen-image:hover img {
    transform: scale(1.02);
}

.image-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-weight: bold;
    box-shadow: 0 4px 8px var(--secondary-purple);
}

/* Crowdfunding Section - UPDATED: improved image styling */
.crowdfunding {
    padding: var(--spacing-2xl) 0;
    position: relative;
    width: 100%;
}

.crowdfunding:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-crowdfunding);
    z-index: 0;
}

.crowdfunding-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    background-color: var(--bg-medium);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px var(--secondary-purple-dark);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    max-width: 1440px;
    width: calc(100% - var(--spacing-xl) * 2);
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.crowdfunding-content:hover {
    box-shadow: 0 15px 30px var(--secondary-purple);
    border: 1px solid var(--primary-color);
}

.crowdfunding-image {
    flex: 1;
    max-width: 450px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 10px 30px var(--secondary-purple);
}

.crowdfunding-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: transform 0.5s ease;
}

.crowdfunding-image:hover img {
    transform: scale(1.05);
}

.crowdfunding-info {
    flex: 1;
}

.crowdfunding-info h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-light);
    position: relative;
    display: inline-block;
}

.crowdfunding-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 1.5px;
}

.crowdfunding-info p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.crowdfunding-cta {
    margin-top: var(--spacing-xl);
}

/* Download Section */
.download {
    padding: var(--spacing-2xl) var(--spacing-xl);
    background-color: var(--primary-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: var(--spacing-2xl) auto;
    max-width: 1200px;
    width: calc(100% - var(--spacing-2xl) * 2);
}

.download:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient-download);
    z-index: 0;
}

.download-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.download p {
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: var(--spacing-xl) auto 0;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    background-color: var(--bg-medium);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.newsletter-form .cta-primary {
    margin-left: var(--spacing-sm);
    white-space: nowrap;
}

/* Footer - UPDATED: simplified structure */
.footer {
    background-color: var(--bg-dark);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-top: 1px solid #4A8DB8;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* New simplified footer links */
.footer-links-simple {
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.footer-links-simple a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links-simple a:hover {
    color: var(--primary-color);
}

.footer-divider {
    display: inline-block;
    width: 1px;
    height: 16px;
    background-color: var(--text-secondary);
    margin: 0 var(--spacing-xs);
    vertical-align: middle;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-medium);
    color: var(--text-secondary);
    margin: 0 var(--spacing-xs);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-color);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Section animations */
.features, .stations, .essen, .crowdfunding, .download {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.features.visible, .stations.visible, .essen.visible, .crowdfunding.visible, .download.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature card animations */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }

/* Sincronizzazione icone con i box per animazione iniziale */
.feature-card:nth-child(1) .feature-icon { transition-delay: 0.1s; }
.feature-card:nth-child(2) .feature-icon { transition-delay: 0.2s; }
.feature-card:nth-child(3) .feature-icon { transition-delay: 0.3s; }

/* Rimuovi delay per le interazioni hover */
.feature-card.visible { transition-delay: 0s; }
.feature-card.visible .feature-icon { transition-delay: 0s; }

.animate-text {
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-dark));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Media Queries - Ottimizzati per smartphone */
@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-2xl);
        padding-top: var(--spacing-xl);
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image img {
        max-height: 400px;
    }
    
    .essen-content, .crowdfunding-content {
        flex-direction: column;
    }
    
    .essen-image, .crowdfunding-image {
        order: -1;
        margin-bottom: var(--spacing-xl);
        max-width: 100%;
    }
    
    .coming-soon-labels {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .header {
        padding: var(--spacing-base);
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section-title {
        font-family: 'Expletus Sans', sans-serif;
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-content h2 {
        font-family: 'Expletus Sans', sans-serif;
        font-size: 2.2rem;
        font-weight: 600;
    }
    
    .footer-bottom {
        flex-direction: column;
        padding: var(--spacing-lg) var(--spacing-md);
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-links-simple {
        justify-content: center;
        margin-bottom: var(--spacing-sm);
    }
    
    .crowdfunding-content, .essen-content {
        padding: var(--spacing-md);
    }
    
    .crowdfunding-info h3, .essen-info h3 {
        font-size: 1.6rem;
    }
    
    .event-details {
        padding: var(--spacing-md);
    }
}

@media screen and (max-width: 480px) {
    .coming-soon-labels {
        flex-direction: column;
        width: 100%;
    }
    
    .coming-soon-badge {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-family: 'Expletus Sans', sans-serif;
        font-size: 1.8rem;
        font-weight: 600;
    }
    
    .hero {
        min-height: auto;
        padding-bottom: var(--spacing-lg);
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .download {
        margin: var(--spacing-xl) var(--spacing-md);
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .download h2 {
        font-size: 1.8rem;
    }
    
    .essen-info h3, .crowdfunding-info h3 {
        font-size: 1.4rem;
    }
    
    .essen-info p, .crowdfunding-info p {
        font-size: 1rem;
    }
    
    .event-detail {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-detail i {
        margin-bottom: var(--spacing-xs);
    }
    
    .social-icons {
        margin-top: var(--spacing-md);
        justify-content: center;
    }
}

/* Nav mobile */
.nav.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-medium);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 20px var(--secondary-purple-dark);
}

.nav.active ul {
    flex-direction: column;
}

.nav.active ul li {
    margin: 0.5rem 0;
    margin-left: 0;
}

/* Station placeholder and image containers */
.station-placeholder, .gamefound-placeholder, .essen-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--bg-medium);
    color: var(--text-secondary);
}

.gamefound-placeholder, .essen-placeholder {
    height: 300px;
    border-radius: var(--radius-lg);
    border: 2px solid #4A8DB8;
    font-size: 2rem;
    font-weight: bold;
    background-color: var(--bg-medium);
    background-image: linear-gradient(45deg, var(--bg-medium), var(--bg-medium));
    color: var(--text-primary);
    text-shadow: 0 2px 4px var(--secondary-purple);
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}