﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

    nav a:hover {
        opacity: 0.8;
    }

.language-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    border-radius: 5px;
    background: rgba(255,255,255,0.1);
    transition: background 0.3s;
}

    .lang-link:hover {
        background: rgba(255,255,255,0.2);
    }

    .lang-link img {
        width: 24px;
        height: 18px;
    }

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.hero {
    text-align: center;
    padding: 3rem 0;
}

    .hero h1 {
        font-size: 2.5rem;
        color: #667eea;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.2rem;
        color: #666;
        margin-bottom: 2rem;
    }

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .cta-button:hover {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        color: white;
        transform: translateY(-2px);
    }

section {
    margin: 4rem 0;
}

h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

/* Profiles Section */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

    .profile-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    }

.profile-image {
    width: 100%;
    aspect-ratio: 4 / 5; /* mantiene una proporzione verticale perfetta */
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #ddd; /* fallback se non c’è immagine */
}

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Riempi SEMPRE il box, mai bande */
        object-position: center;
        display: block;
    }



.profile-distance {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.profile-info {
    padding: 1.5rem;
}

    .profile-info h4 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        color: #333;
    }

    .profile-info p {
        color: #666;
        margin-bottom: 0.3rem;
    }

.profile-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.city-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .city-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    }

    .city-card h3 {
        color: #667eea;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

.city-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.city-link {
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

    .city-link:hover {
        background: #f0f0f0;
        color: #667eea;
    }

.faq {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
}

.faq-item {
    margin-bottom: 1.5rem;
}

    .faq-item h3 {
        color: #667eea;
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }




@media (max-width: 768px) {
    .profiles-grid, .city-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Emoji dimensione */
.emoji {
    font-size: 6rem;
}

/* CTA finale */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    margin-top: 4rem;
}

    .cta-section h2 {
        color: white;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

.cta-button.cta-light {
    background: white;
    color: #667eea;
    transition: all 0.3s ease;
}

    .cta-button.cta-light:hover {
        background: #f5f5f5;
    }
