/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: #444; background-color: #fff; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Pulsante Back per Agente */
.agent-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 12px;
    z-index: 9999;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.agent-back-btn:hover { background: #000; }

/* Top Bar */
.top-bar { background: #2c3e50; color: #bdc3c7; font-size: 0.85rem; padding: 10px 0; }
.top-bar .container { display: flex; justify-content: flex-end; gap: 20px; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px; }
.logo { font-size: 1.8rem; font-weight: 700; color: #2c3e50; text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: #3498db; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-weight: 500; color: #555; font-size: 1rem; text-transform: uppercase; }
.main-nav a:hover, .main-nav a.active { color: #3498db; }

/* Hero Slider */
.hero-slider { 
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-content { max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.3rem; margin-bottom: 30px; opacity: 0.9; }
.btn-primary { background: #3498db; color: white; padding: 15px 30px; border-radius: 4px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; display: inline-block; }
.btn-primary:hover { background: #2980b9; }

/* Sections General */
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f8f9fa; }
.text-center { text-align: center; }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: #2c3e50; margin-bottom: 15px; }
.sub-title { color: #3498db; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; display: block; }

/* Chi Siamo */
.split-layout { display: flex; align-items: center; gap: 50px; }
.text-block { flex: 1; }
.text-block h2 { font-size: 2.2rem; color: #2c3e50; margin-bottom: 20px; line-height: 1.2; }
.text-block p { margin-bottom: 20px; color: #666; }
.check-list li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.check-list li::before { content: '✔'; color: #3498db; position: absolute; left: 0; font-weight: bold; }
.image-block { flex: 1; }
.image-block img { width: 100%; border-radius: 8px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

/* Servizi */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-item { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; text-align: center; border-bottom: 3px solid transparent; }
.service-item:hover { transform: translateY(-5px); border-bottom-color: #3498db; }
.service-item .icon { font-size: 3rem; margin-bottom: 20px; }
.service-item h3 { margin-bottom: 15px; color: #2c3e50; }

/* Footer */
.site-footer { background: #2c3e50; color: #ecf0f1; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: white; margin-bottom: 20px; font-size: 1.2rem; border-left: 3px solid #3498db; padding-left: 10px; }
.footer-col p { color: #bdc3c7; line-height: 1.8; }
.footer-bottom { text-align: center; border-top: 1px solid #34495e; padding-top: 20px; font-size: 0.9rem; color: #95a5a6; }

/* Mobile */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero-content h1 { font-size: 2.5rem; }
    .split-layout { flex-direction: column; }
    .main-nav { display: none; } /* Semplificazione per demo mobile */
    .header-container { justify-content: center; }
}

/* Stili Aggiuntivi per Multipagina */
.page-hero { background: #2c3e50; color: white; padding: 60px 0; text-align: center; margin-bottom: 40px; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-hero p { opacity: 0.8; font-size: 1.1rem; }

/* Form Contatti */
.contact-form-container { max-width: 600px; margin: 0 auto; background: #f9f9f9; padding: 30px; border-radius: 8px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #2c3e50; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
.btn-submit { background: #3498db; color: white; border: none; padding: 12px 30px; cursor: pointer; border-radius: 4px; font-size: 1rem; font-weight: bold; width: 100%; transition: 0.3s; }
.btn-submit:hover { background: #2980b9; }

/* Team Grid */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
.team-member { text-align: center; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.team-member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid #f0f0f0; }
.team-member h4 { color: #2c3e50; margin-bottom: 5px; font-size: 1.1rem; }
.team-member span { color: #3498db; font-size: 0.9rem; font-weight: 500; }
.team-member p { font-size: 0.9rem; color: #777; margin-top: 10px; }