:root {
    --primary: #E63946; 
    --primary-hover: #D62828;
    --secondary: #1A1A1A; 
    --dark: #111111;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #FDFBF7; 
    --bg-white: #FFFFFF;
    --border-color: #F0EDE6;
    --shadow-soft: 0 8px 25px rgba(0,0,0,0.04);
    --shadow-hover: 0 12px 35px rgba(0,0,0,0.08);
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

/* Typography - Ridimensionato */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section {
    padding: 4.5rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark);
}

.text-highlight { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary { background-color: var(--primary); color: var(--bg-white); border-color: var(--primary); }
.btn-primary:hover { background-color: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-2px); }

.btn-outline { background-color: transparent; color: var(--secondary); border-color: #E2E2E2; }
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-login { color: var(--text-muted); padding: 10px 16px; font-weight: 500; }
.btn-login:hover { color: var(--primary); }

.btn-shadow { box-shadow: 0 6px 15px rgba(230, 57, 70, 0.2); }
.btn-shadow:hover { box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3); }

/* Header */
.header {
    padding: 20px 0;
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-img { max-height: 95px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; color: var(--secondary); transition: var(--transition); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.auth-buttons { display: flex; align-items: center; gap: 0.8rem; }
.mobile-menu-btn { display: none; font-size: 1.8rem; cursor: pointer; color: var(--secondary); user-select: none; }

/* Hero Section */
.hero { padding: 4.5rem 0; overflow: hidden; }
.hero-layout { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.hero-content { flex: 1; max-width: 500px; z-index: 2; }
.hero h1 { font-size: 3.2rem; margin-bottom: 1.2rem; letter-spacing: -1px; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem; font-weight: 400; }
.hero-cta { display: flex; gap: 1rem; }
.hero-visual { flex: 1; position: relative; display: flex; justify-content: flex-end; }
.hero-image-wrapper { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); width: 100%; max-width: 500px; }
.hero-main-img { width: 100%; height: 500px; object-fit: cover; display: block; }
.hero-badge { position: absolute; bottom: -15px; left: -15px; width: 80px; height: 80px; background: var(--bg-white); border-radius: 50%; padding: 15px; box-shadow: var(--shadow-hover); display: flex; align-items: center; justify-content: center; }
.hero-badge img { width: 100%; height: auto; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* Cards */
.card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: var(--transition); overflow: hidden; border: 1px solid var(--border-color); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* Esperienze */
.card-experience { display: flex; flex-direction: column; }
.card-image-wrapper { height: 200px; width: 100%; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-experience:hover .card-img { transform: scale(1.03); }
.card-content { padding: 1.8rem; }
.card-content h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.card-content p { color: var(--text-muted); font-size: 0.95rem; }

/* Events */
.card-event { display: flex; flex-direction: column; }
.event-image-wrapper { height: 180px; position: relative; overflow: hidden; }
.event-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-event:hover .event-img { transform: scale(1.03); }
.event-date { position: absolute; top: 15px; right: 15px; background: var(--bg-white); padding: 6px 12px; border-radius: 10px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.event-date .day { display: block; font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.event-date .month { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; color: var(--secondary); }
.event-info { padding: 1.8rem; }
.event-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.8rem; }
.card-event h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.event-location { color: var(--text-muted); font-size: 0.9rem; }

/* Come funziona */
.steps-container { position: relative; }
.step { padding: 1.5rem; }
.step-number { font-size: 4rem; font-weight: 800; color: rgba(0, 0, 0, 0.03); line-height: 1; margin-bottom: -1.2rem; position: relative; z-index: 1; }
.step h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: 0.8rem; position: relative; z-index: 2; }
.step p { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 2; }

/* Nuova Vetrina Community */
.vetrina-layout { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.vetrina-text { flex: 1; max-width: 500px; }
.vetrina-highlight { font-weight: 500; color: var(--secondary); margin-top: 1rem; font-size: 1.05rem; }
.vetrina-visual { flex: 1; display: flex; justify-content: flex-end; align-items: center; }
.avatar-collage { position: relative; width: 400px; height: 300px; }
.avatar { position: absolute; border-radius: 50%; border: 4px solid var(--bg-light); box-shadow: var(--shadow-soft); object-fit: cover; }
.avatar-1 { width: 110px; height: 110px; top: 0; left: 10%; z-index: 2; }
.avatar-2 { width: 150px; height: 150px; top: 30%; left: 25%; z-index: 4; }
.avatar-3 { width: 100px; height: 100px; top: 10%; right: 15%; z-index: 2; }
.avatar-4 { width: 120px; height: 120px; bottom: 5%; left: 0; z-index: 3; }
.avatar-5 { width: 110px; height: 110px; bottom: 0; right: 25%; z-index: 3; }
.avatar-6 { width: 95px; height: 95px; top: 45%; right: 0; z-index: 1; }

/* CTA */
.cta-container { max-width: 700px; }
.cta-finale h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-finale p { font-size: 1.1rem; color: var(--text-muted); }

/* Footer */
.footer { background-color: var(--dark); color: var(--bg-white); padding: 4rem 0 1.5rem; }
.footer-content { display: flex; justify-content: space-between; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 350px; }
.footer-logo { max-height: 100px; width: auto; margin-left: -5px; }
.footer-mission { color: #A0AEC0; margin-top: 1rem; font-size: 0.95rem; line-height: 1.5; }
.footer-links-container { display: flex; gap: 4rem; flex-grow: 1; justify-content: flex-end; }
.footer-links h4 { color: var(--bg-white); margin-bottom: 1.2rem; font-size: 1.05rem; }
.footer-links ul li { margin-bottom: 0.6rem; }
.footer-links a { color: #A0AEC0; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--bg-white); }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: #718096; font-size: 0.85rem; }

/* Responsive Design */
@media (max-width: 992px) {
    /* Header Mobile Completo */
    .header-content { flex-wrap: nowrap; }
    .logo-img { max-height: 55px; } /* Più compatto per fare spazio */
    
    .nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-white); box-shadow: 0 10px 20px rgba(0,0,0,0.05); padding: 1rem 0; border-top: 1px solid var(--border-color); }
    .nav.active { display: block; }
    .nav-links { flex-direction: column; gap: 0; align-items: center; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; padding: 15px; font-size: 1.1rem; }
    
    .header-actions { gap: 0.8rem; }
    .auth-buttons { gap: 0.5rem; }
    .btn-login { padding: 8px 10px; font-size: 0.95rem; }
    .btn-compact { padding: 8px 16px; font-size: 0.9rem; }
    .mobile-menu-btn { display: block; margin-left: 0.5rem; }

    /* Resto del layout */
    .hero h1 { font-size: 2.8rem; }
    .hero-layout, .vetrina-layout { gap: 2rem; flex-direction: column; text-align: center; }
    .hero-visual { justify-content: center; }
    .hero-cta { justify-content: center; }
    .vetrina-visual { justify-content: center; width: 100%; margin-top: 2rem; }
    .avatar-collage { margin: 0 auto; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-brand { margin: 0 auto; }
    .footer-logo { margin-left: 0; max-height: 80px; }
    .footer-links-container { justify-content: center; gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 1.8rem; }
    
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2.4rem; }
    .hero-image-wrapper { height: 350px; }
    .hero-main-img { height: 100%; }
    
    .grid-3 { grid-template-columns: 1fr; }
    
    .avatar-collage { width: 100%; max-width: 320px; height: 250px; }
    .avatar-1 { width: 90px; height: 90px; }
    .avatar-2 { width: 120px; height: 120px; }
    .avatar-3 { width: 80px; height: 80px; }
    .avatar-4 { width: 90px; height: 90px; }
    .avatar-5 { width: 95px; height: 95px; }
    .avatar-6 { width: 75px; height: 75px; }
}
