:root {
    --bg-color: #0a050f;
    --text-main: #ffffff;
    --text-muted: #b3b0c4;
    --accent-1: #9d4edd;
    --accent-2: #c77dff;
    /* Variabili Vetro Estremo */
    --glass-bg: rgba(30, 15, 45, 0.35);
    --glass-border: rgba(157, 78, 221, 0.25);
    --glass-highlight: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- SFONDO ANIMATO (Fa risaltare il vetro) --- */
.bg-orbs {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: float 12s infinite alternate ease-in-out;
}
.orb-1 {
    width: 450px; height: 450px;
    background: rgba(157, 78, 221, 0.35);
    top: -10%; left: -10%;
}
.orb-2 {
    width: 400px; height: 400px;
    background: rgba(199, 125, 255, 0.25);
    bottom: -10%; right: -5%;
    animation-delay: -6s;
}
@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 80px) scale(1.1); }
}

/* Scrollbar Personalizzata */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* --- EFFETTO VETRO CONDIVISO --- */
.glass-nav, .glass-container, .glass-card, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}
/* Riflesso interno del vetro */
.glass-container::before, .glass-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid var(--glass-highlight);
    border-radius: inherit;
    pointer-events: none;
}

/* Navigazione */
.glass-nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #fff, var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links { display: flex; gap: 30px; }
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); text-shadow: 0 0 10px rgba(255,255,255,0.3); }

/* Layout Base */
.page-section {
    padding: 140px 20px 60px;
    max-width: 1100px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    font-weight: 900;
}

.glass-container {
    border-radius: 30px;
    padding: 50px;
}
.glass-card {
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.glass-card:hover { transform: translateY(-10px); border-color: var(--accent-2); }

/* Bottoni */
.action-buttons { display: flex; gap: 20px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.btn-neon {
    padding: 16px 40px;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
}
.btn-neon:hover {
    box-shadow: 0 0 25px rgba(199, 125, 255, 0.6);
    transform: scale(1.05);
}
.btn-outline {
    padding: 16px 40px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--accent-2);
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.btn-outline:hover { background: rgba(199, 125, 255, 0.15); transform: scale(1.05); }

/* Griglie */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }

/* Modulo */
.glass-form { display: flex; flex-direction: column; gap: 25px; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--text-main);
    font-size: 1.05rem;
    transition: 0.3s;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
}
.input-group select option { background: var(--bg-color); color: var(--text-main); }
.w-100 { width: 100%; display: block; }

/* Footer */
.glass-footer {
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
    border-radius: 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
}
.social-links { display: flex; justify-content: center; gap: 25px; margin: 20px 0; font-size: 1.8rem; }
.social-links a { color: var(--text-muted); transition: 0.3s; }
.social-links a:hover { color: var(--text-main); transform: translateY(-5px) scale(1.1); text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* Utility e Animazioni */
.text-center { text-align: center; }
.mt-5 { margin-top: 60px; }
.fade-in { animation: fadeIn 0.8s ease-out forwards; opacity: 0; transform: translateY(30px); }
.delay-1 { animation-delay: 0.2s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .contact-layout { grid-template-columns: 1fr; }
    .glass-container { padding: 30px 20px; }
}

/* Spazio corretto sotto la barra di navigazione */
.page-section {
    padding-top: 130px !important;
    padding-bottom: 60px;
}

/* Interlinea e margine per i titoli principali */
.section-title {
    margin-top: 10px;
    margin-bottom: 35px;
    line-height: 1.3; /* Impedisce al testo di venire tagliato in alto */
}