/* --- RESET & VARIABILI --- */
:root {
    --primary-color: #2563eb;      /* Blu affidabile */
    --secondary-color: #f59e0b;    /* Arancione caldo per CTA */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav ul { display: flex; gap: 25px; align-items: center; }
.main-nav a { font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--primary-color); }

.btn-highlight {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
}
.btn-highlight:hover { background: #d97706; }

.mobile-menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero {
    background: linear-gradient(rgba(37, 99, 235, 0.8), rgba(37, 99, 235, 0.9)), url('../assets/images/hero-bg.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p { font-size: 1.2rem; margin-bottom: 30px; max-width: 700px; margin-left: auto; margin-right: auto; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    margin: 0 10px;
}
.btn-primary { background: var(--secondary-color); color: var(--white); }
.btn-secondary { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-primary:hover { background: #d97706; }
.btn-secondary:hover { background: var(--white); color: var(--primary-color); }

/* --- SEZIONI GENERALI --- */
.section-padding { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* --- GRID & CARD --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-body { padding: 25px; }
.card-body h3 { margin-bottom: 10px; font-family: var(--font-heading); }
.card-body p { color: var(--text-light); margin-bottom: 15px; font-size: 0.95rem; }
.text-link { color: var(--primary-color); font-weight: 600; }

/* --- FOOTER --- */
.site-footer { background: var(--text-dark); color: var(--white); padding: 60px 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { font-family: var(--font-heading); margin-bottom: 20px; color: var(--secondary-color); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--secondary-color); }
.footer-bottom { text-align: center; border-top: 1px solid #374151; padding-top: 20px; font-size: 0.9rem; color: var(--text-light); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .main-nav { display: none; } /* Qui si aggiungerà JS per il menu hamburger */
    .mobile-menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .hero-buttons { display: flex; flex-direction: column; gap: 15px; }
    .btn { margin: 0; }
}