/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Lato', sans-serif; line-height: 1.6; color: #333; background-color: #fff; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: #1a252f; }
.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: #1a252f; color: #bdc3c7; font-size: 0.85rem; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-info span { margin-right: 20px; }
.top-social a { margin-left: 15px; color: #bdc3c7; }
.top-social a:hover { color: white; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 15px 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: #1a252f; font-family: 'Playfair Display', serif; }
.logo span { color: #3498db; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 600; color: #555; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.main-nav a:hover, .main-nav a.active { color: #3498db; }
.btn-nav { background: #3498db; color: white !important; padding: 10px 20px; border-radius: 4px; }
.btn-nav:hover { background: #2980b9; }

/* Hero Section */
.hero { 
    position: relative;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 37, 47, 0.7); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; color: white; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; font-weight: 300; }
.hero-buttons { display: flex; gap: 15px; }
.btn-primary { background: #3498db; color: white; padding: 15px 30px; border-radius: 4px; font-weight: bold; text-transform: uppercase; }
.btn-primary:hover { background: #2980b9; }
.btn-outline { border: 2px solid white; color: white; padding: 13px 28px; border-radius: 4px; font-weight: bold; text-transform: uppercase; }
.btn-outline:hover { background: white; color: #1a252f; }

/* Sections General */
.section-padding { padding: 80px 0; }
.bg-light { background-color: #f8f9fa; }
.text-center { text-align: center; }
.section-header { margin-bottom: 50px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-header.text-center { display: block; }
.section-subtitle { color: #3498db; font-weight: 700; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-header h2 { font-size: 2.5rem; margin: 0; }

/* Chi Siamo */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.text-block p { color: #666; margin-bottom: 30px; font-size: 1.1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid #eee; padding-top: 30px; }
.stat-item strong { display: block; font-size: 2rem; color: #3498db; font-family: 'Playfair Display', serif; }
.stat-item span { font-size: 0.9rem; color: #888; }
.image-block img { width: 100%; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Soluzioni */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.solution-card { background: white; padding: 40px 30px; border: 1px solid #eee; transition: 0.3s; position: relative; overflow: hidden; }
.solution-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); border-color: transparent; }
.solution-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: #3498db; transform: scaleX(0); transform-origin: left; transition: 0.3s; }
.solution-card:hover::before { transform: scaleX(1); }
.solution-card .icon { font-size: 2.5rem; margin-bottom: 20px; }
.solution-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.solution-card p { color: #666; margin-bottom: 20px; font-size: 0.95rem; }
.read-more { color: #3498db; font-weight: 700; font-size: 0.9rem; }

/* News */
.view-all { color: #3498db; font-weight: 700; text-decoration: underline; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-item { background: white; border: 1px solid #eee; transition: 0.3s; }
.news-item:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.news-img { height: 200px; overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-item:hover .news-img img { transform: scale(1.05); }
.news-content { padding: 25px; }
.news-content .date { font-size: 0.8rem; color: #999; display: block; margin-bottom: 10px; }
.news-content h3 { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.4; }
.news-content p { color: #666; font-size: 0.95rem; }

/* CTA Section */
.cta-section { background: #1a252f; color: white; text-align: center; padding: 80px 0; }
.cta-section h2 { color: white; margin-bottom: 15px; }
.cta-section p { opacity: 0.8; margin-bottom: 30px; font-size: 1.2rem; }
.btn-white { background: white; color: #1a252f; padding: 15px 35px; border-radius: 4px; font-weight: bold; text-transform: uppercase; display: inline-block; }
.btn-white:hover { background: #f0f0f0; }

/* Footer */
.site-footer { background: #151e26; color: #bdc3c7; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 50px; margin-bottom: 50px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: white; }
.newsletter-form { display: flex; margin-top: 15px; }
.newsletter-form input { flex: 1; padding: 10px; border: none; border-radius: 4px 0 0 4px; }
.newsletter-form button { background: #3498db; color: white; border: none; padding: 10px 20px; border-radius: 0 4px 4px 0; cursor: pointer; }
.footer-bottom { border-top: 1px solid #2c3e50; padding-top: 20px; text-align: center; color: #555; }

/* Mobile */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .main-nav { display: none; }
    .header-container { justify-content: center; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* Stili Pagine Interne */
.page-hero {
    background: linear-gradient(rgba(26, 37, 47, 0.8), rgba(26, 37, 47, 0.8)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}
.page-hero h1 { color: white; margin-bottom: 15px; font-size: 3rem; }
.page-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 700px; margin: 0 auto; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.team-member { background: white; border: 1px solid #eee; text-align: center; padding-bottom: 20px; }
.team-member img { width: 100%; height: 300px; object-fit: cover; margin-bottom: 15px; }
.team-member h3 { font-size: 1.2rem; margin-bottom: 5px; }
.team-member span { color: #3498db; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; }

/* Contact Form */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-box { background: #f8f9fa; padding: 40px; border-left: 4px solid #3498db; }
.contact-info-item { margin-bottom: 20px; }
.contact-info-item strong { display: block; color: #1a252f; font-size: 1.1rem; margin-bottom: 5px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 15px; margin-bottom: 20px; border: 1px solid #ddd; background: #f9f9f9; font-family: inherit; }
.contact-form button { width: 100%; cursor: pointer; border: none; }