.elementor-286 .elementor-element.elementor-element-9e6e365{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:8px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}/* Start custom CSS *//* Stili Generali - Missione Finale: Armonia Celestiale */
:root {
    --bg-light: #fdfdff; 
    --bg-white: #ffffff; 
    --bg-universe-dark: #1a1f36; 
    --bg-card-dark: rgba(44, 51, 80, 0.65); /* Adattato per il Glassmorphism */
    --text-dark: #212529; 
    --text-light: #ffffff;
    --accent-yellow: #FFD60A; 
    --accent-blue: #00A6FB; 
    --accent-orange: #FF7B00; 
    --accent-pink: #F72585;
    --accent-teal: #48bfe3; 
    --accent-purple: #9b5de5;
    --font-family-primary: 'Nunito', sans-serif;
    --border-radius-soft: 25px; 
    --border-radius-oval-card: 60px; /* Ammorbidito per l'adattabilità */
}

/* Box-sizing globale per una perfetta responsività */
*, *::before, *::after { box-sizing: border-box; }

body { 
    font-family: var(--font-family-primary); 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}

.container { 
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 25px; 
}
a, a:hover { text-decoration: none; }

/* Header - Ora perfettamente centrato */
.main-header { 
    background-color: var(--bg-universe-dark); 
    padding: 15px 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
    position: relative; 
    z-index: 1000; 
}
.main-header .container { 
    display: flex; 
    justify-content: center; /* Allineamento centrale per il logo */
    align-items: center; 
}
.logo { display: flex; align-items: center; }
.logo img { 
    height: 60px; 
    width: auto; 
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}
.logo:hover img { 
    transform: translateY(-5px) scale(1.1); 
    animation: logo-bounce 0.6s; 
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

@keyframes logo-bounce { 0%, 100% { transform: translateY(0) scale(1.1); } 50% { transform: translateY(-10px) scale(1.1); } }

/* ---- SFONDO COSMICO ---- */
.space-background { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.stars-container { position: absolute; inset: 0; } 
.svg-universe { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.star { position: absolute; background-color: #fff; border-radius: 50%; animation: twinkle linear infinite; }
.star-pulse { animation: pulse 4s ease-in-out infinite; }
.content-layer, .parallax-layer { position: relative; z-index: 1; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero-section, .features-section, .main-footer { position: relative; background-color: var(--bg-universe-dark); color: var(--text-light); }
#planet-saturn, #moon-crescent, #planet-blue, #planet-happy { animation: gentle-float 35s ease-in-out infinite alternate; }
#moon-crescent { animation-direction: alternate-reverse; animation-duration: 45s; } #planet-blue { animation-duration: 30s; }
#shooting-star { animation: shoot 15s ease-in-out infinite; animation-delay: 5s; opacity: 0; }

@keyframes twinkle { 0%, 100% { opacity: 0.2; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1); } }
@keyframes pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 50% { transform: scale(1.5); box-shadow: 0 0 10px 5px rgba(255,255,255,0); } }
@keyframes gentle-float { from { transform: translateY(0px) rotate(-5deg); } to { transform: translateY(-25px) rotate(5deg); } }
@keyframes shoot { 0% { opacity: 0; transform: translateX(0) translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-1800px) translateY(1800px); } }

/* Hero Section */
.hero-section { text-align: center; padding: 80px 25px 120px; border-radius: 0 0 50% 50% / 0 0 80px 80px; }
.hero-section .title-bounce { 
    font-size: 5em; 
    margin-bottom: 20px; 
    font-weight: 900; 
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6); /* Migliore leggibilità */
}
.hero-section .subtitle { 
    font-size: 1.6em; 
    max-width: 900px; 
    margin: 0 auto; 
    color: rgba(255, 255, 255, 0.9); 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Migliore leggibilità */
}
.subtitle .no-wrap { white-space: nowrap; }

/* Feature Section (Riquadri) */
.features-section { padding: 120px 0; margin-top: -80px; }
.feature-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ottimizzato per mobile */
    gap: 45px; 
}
.feature-card {
    background-color: var(--bg-card-dark);
    backdrop-filter: blur(12px); /* Effetto Glassmorphism */
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-oval-card);
    padding: 35px 20px;
    min-height: 280px; /* Adattabile se il testo va a capo */
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, background-color 0.3s;
    position: relative; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.05); /* Bordo sottile stile vetro */
}
.icon-wrapper {
    width: 120px; height: 120px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center; margin-bottom: 15px;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}
.icon-wrapper i { font-size: 2.2em; color: var(--bg-white); }
.feature-card h2 { font-size: 1.6em; line-height: 1.2; margin-bottom: 10px; font-weight: 800; color: var(--text-light); }
.feature-card p { font-size: 1em; color: rgba(255, 255, 255, 0.85); padding: 0 10px; margin: 0; }

/* Call To Action animata all'interno della card */
.card-action {
    margin-top: 15px;
    font-size: 1.5rem;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* ---- MAGIA AMBIENTALE E HOVER ---- */
.feature-card::before, .feature-card::after { content: ''; position: absolute; z-index: 0; transition: opacity 0.5s ease; pointer-events: none; }
.feature-card:hover::before, .feature-card:hover::after { opacity: 0 !important; animation: none !important; }

.feature-card:hover { 
    transform: translateY(-20px) rotate(2deg); 
    border-color: var(--hover-color); 
    box-shadow: 0 15px 40px -10px var(--hover-color); 
    background-color: rgba(44, 51, 80, 0.85);
}
.feature-card:hover .icon-wrapper { transform: scale(1.15) rotate(-10deg); }
.feature-card:hover .card-action { opacity: 1; transform: translateY(0); }

/* Magia Specifica per ogni card */
[data-color="blue"]::before { box-shadow: inset 0 0 50px 15px var(--accent-blue); border-radius: inherit; animation: ambient-pulse 6s ease-in-out infinite; }
[data-color="orange"]::before { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-orange); box-shadow: 0 0 15px var(--accent-orange); animation: ambient-particles 7s linear infinite; }[data-color="yellow"] { background: linear-gradient(135deg, var(--bg-card-dark) 50%, rgba(255,214,10,0.15) 100%); background-size: 300% 300%; animation: ambient-gradient 8s ease-in-out infinite; }
[data-color="pink"]::before,[data-color="pink"]::after { width: 100%; height: 100%; border: 2px solid var(--accent-pink); border-radius: inherit; animation: ambient-rings 5s ease-out infinite; }
[data-color="pink"]::after { animation-delay: -2.5s; }
[data-color="teal"]::before { box-shadow: inset 0 0 50px 15px var(--accent-teal); border-radius: inherit; animation: ambient-pulse 6.5s ease-in-out infinite reverse; }
[data-color="purple"]::before { width: 15px; height: 15px; border-radius: 50%; background: var(--accent-purple); box-shadow: 0 0 20px var(--accent-purple); animation: ambient-orbit 7.5s linear infinite; }

@keyframes ambient-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 0.6; } }
@keyframes ambient-particles { 0% { transform: translateY(150%) translateX(30px) scale(0); opacity: 1; } 100% { transform: translateY(-50%) translateX(-30px) scale(1.5); opacity: 0; } }
@keyframes ambient-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes ambient-rings { from { transform: scale(0.9); opacity: 0.7; } to { transform: scale(1.3); opacity: 0; } }
@keyframes ambient-orbit { from { transform: rotate(0deg) translateX(120px) rotate(0deg); } to { transform: rotate(360deg) translateX(120px) rotate(-360deg); } }

/* Assegnazione colori */
.feature-card[data-color="blue"] { --hover-color: var(--accent-blue); } .feature-card[data-color="blue"] .icon-wrapper { background: var(--accent-blue); }
.feature-card[data-color="orange"] { --hover-color: var(--accent-orange); } .feature-card[data-color="orange"] .icon-wrapper { background: var(--accent-orange); }
.feature-card[data-color="yellow"] { --hover-color: var(--accent-yellow); } .feature-card[data-color="yellow"] .icon-wrapper { background: var(--accent-yellow); }
.feature-card[data-color="pink"] { --hover-color: var(--accent-pink); } .feature-card[data-color="pink"] .icon-wrapper { background: var(--accent-pink); }
.feature-card[data-color="teal"] { --hover-color: var(--accent-teal); } .feature-card[data-color="teal"] .icon-wrapper { background: var(--accent-teal); }
.feature-card[data-color="purple"] { --hover-color: var(--accent-purple); } .feature-card[data-color="purple"] .icon-wrapper { background: var(--accent-purple); }

/* Info Section - Ora con curva fluida */
.info-section { 
    background-color: var(--bg-white); 
    padding: 100px 0 120px; 
    position: relative; 
    z-index: 50; 
    margin-top: -60px; /* Sovrapposizione allo sfondo spaziale */
    border-radius: 60px 60px 0 0; /* Transizione curva elegante */
}
.info-content { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; }
.info-text, .info-image { flex: 1; min-width: 300px; }
.info-text h3 { font-size: 3.2em; font-weight: 800; margin-bottom: 25px; line-height: 1.2; position: relative; padding-left: 20px; }
.info-text h3::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 8px; background: var(--accent-pink); border-radius: 10px; }
.info-text p { font-size: 1.2em; margin-bottom: 30px; color: #6c757d; }

/* Immagine con animazione al passaggio del mouse */
.info-image img { 
    width: 100%; /* Responsività totale dell'immagine */
    max-width: 100%; 
    height: auto; 
    border-radius: var(--border-radius-soft); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.info-image:hover img {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* Footer */
.main-footer { padding: 60px 0; text-align: center; }
.main-footer .container { flex-direction: column; } 
.main-footer p { margin-bottom: 25px; font-size: 1.1em; } 
.main-footer a { color: var(--accent-yellow); font-weight: 700; }
.social-links a { color: var(--text-light); font-size: 2.2em; margin: 0 18px; transition: all 0.3s ease; display: inline-block; }
.social-links a:hover { color: var(--accent-orange); transform: scale(1.3) rotate(15deg) translateY(-5px); }

/* Responsive Media Queries complete */
@media (max-width: 992px) { 
    .hero-section .title-bounce { font-size: 3.8em; } 
    .info-content { flex-direction: column; text-align: center; gap: 40px; } 
    .info-text h3::before { display: none; } /* Rimuove la barra laterale su mobile per centrare bene */
    .info-text h3 { padding-left: 0; font-size: 2.8em;}
    .svg-universe { transform: scale(1.2); } 
}

@media (max-width: 768px) {
    .main-header .container { flex-direction: column; gap: 15px; } 
    .hero-section { padding: 60px 15px 100px; border-radius: 0 0 50% 50% / 0 0 40px 40px;} 
    .hero-section .title-bounce { font-size: 2.8em; } 
    .hero-section .subtitle { font-size: 1.3em; max-width: 95%; }
    .subtitle .no-wrap { white-space: normal; } /* Permette al testo di andare a capo su mobile */
    .features-section { padding: 80px 15px; } 
    .feature-card { padding: 35px 20px; min-height: auto; border-radius: 40px;}
    .info-section { padding: 80px 0 100px; border-radius: 40px 40px 0 0; margin-top: -40px;}
    .info-text h3 { font-size: 2.2em; } 
    .info-text p { font-size: 1.1em; }
    .svg-universe { transform: scale(1.5); }
    .social-links a { font-size: 1.8em; margin: 0 12px; }
}

@media (max-width: 480px) {
    .hero-section .title-bounce { font-size: 2.2em; }
    .feature-grid { grid-template-columns: 1fr; } /* Layout a singola colonna per schermi molto piccoli */
    .logo img { height: 50px; }
}/* End custom CSS */