/* ==========================================
   1. VARIABILI E RESET GLOBALE
   ========================================== */
:root {
    --primary-navy: #0b192c;
    --secondary-navy: #1e3e62;
    --accent-blue: #008bbf;
    --accent-hover: #006b94;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --max-width: 1200px;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   2. BOTTONI
   ========================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #ffffff !important;
    padding: 0.7rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-hero {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-outline {
    display: inline-block;
    border: 1px solid var(--primary-navy);
    color: var(--primary-navy) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: #ffffff !important;
}

/* ==========================================
   3. HEADER & NAVIGAZIONE
   ========================================== */
header {
    background-color: var(--primary-navy);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    gap: 1.5rem;
}

.logo a {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================
   4. BANNERS (HERO & SOTTOPAGINE)
   ========================================== */
.hero {
    position: relative;
    background: linear-gradient(rgba(11, 25, 44, 0.88), rgba(30, 62, 98, 0.92)), 
                url('hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 5.5rem 0 4.5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 650px;
    margin: 0 auto 1.75rem auto;
}

.hero-badge {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #ffffff;
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-banner {
    background-color: var(--primary-navy);
    color: #ffffff;
    padding: 3.5rem 0;
    text-align: center;
    border-bottom: 3px solid var(--accent-blue);
}

.page-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.page-banner p {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   5. SEZIONI E GRIGLIE GENERALI
   ========================================== */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

.block-section {
    padding: 3.5rem 0;
}

.block-section:nth-child(even) {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.block-image {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   6. SCHEDE, LISTE E BADGE
   ========================================== */
.sub-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.25rem;
}

.block-section:nth-child(even) .card {
    background-color: var(--bg-light);
}

.card h3 {
    font-size: 1.1rem;
    color: var(--primary-navy);
    margin-bottom: 0.3rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 600;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.trust-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.trust-card h3 {
    color: var(--secondary-navy);
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.trust-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-list {
    list-style: none;
    margin: 1rem 0 1.5rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.step-number {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.badge-case {
    display: inline-block;
    background-color: var(--secondary-navy);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* ==========================================
   7. FAQ & KNOWLEDGE HUB
   ========================================== */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--accent-blue);
}

.faq-item h3 {
    color: var(--primary-navy);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.faq-item h3::before {
    content: "Q.";
    color: var(--accent-blue);
    font-weight: 700;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-left: 1.5rem;
}

/* ==========================================
   8. FORM
   ========================================== */
.form-container {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 0.3rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
}

/* ==========================================
   9. FOOTER
   ========================================== */
footer {
    background-color: var(--primary-navy);
    color: #94a3b8;
    padding: 2.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}

/* ==========================================
   10. RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 0;
    }

    nav {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    nav ul {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

    .grid-2col {
        grid-template-columns: 1fr;
    }

    .block-image {
        height: 240px;
        order: -1;
    }
}