/* =========================================================
   GUIDE PAGE - STYLING
========================================================= */

.guide-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: var(--bg-light);
}

/* =========================================================
   HEADER DELLA GUIDA
========================================================= */

.guide-header {
    text-align: center;
    margin-bottom: 50px;
}

.guide-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--blue-dark);
}

.guide-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 750px;
    margin: 0 auto;
}

.guide-header a {
    color: var(--blue-medium);
    font-weight: 500;
    transition: color 0.25s ease;
}

.guide-header a:hover {
    color: var(--blue-dark);
}

/* =========================================================
   SEZIONI
========================================================= */

.guide-section {
    background-color: var(--blue-light);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
    line-height: 1.7;
}

.guide-section h2 {
    font-size: 1.8rem;
    color: var(--blue-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-light);
}

.guide-section h3 {
    font-size: 1.3rem;
    color: var(--blue-medium);
    margin-top: 25px;
    margin-bottom: 10px;
}

.guide-section p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.guide-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.guide-section li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.guide-section strong {
    color: var(--blue-dark);
    font-weight: 600;
}

/* =========================================================
   CODICE/PRE
========================================================= */

.guide-section code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d32f2f;
    font-size: 0.95rem;
}

.guide-section pre {
    background-color: #f5f5f5;
    border-left: 4px solid var(--blue-medium);
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 15px 0;
}

.guide-section pre code {
    background: none;
    padding: 0;
    color: #333;
    border: none;
}

/* =========================================================
   ULTIMA SEZIONE (NO BOTTOM MARGIN)
========================================================= */

.guide-section-last {
    margin-bottom: 0;
}

/* =========================================================
   LINK INTERNI
========================================================= */

.guide-section a {
    color: var(--blue-medium);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.guide-section a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
    .guide-page {
        padding: 20px 15px;
    }

    .guide-header h1 {
        font-size: 1.8rem;
    }

    .guide-header p {
        font-size: 1rem;
    }

    .guide-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .guide-section h2 {
        font-size: 1.4rem;
    }

    .guide-section h3 {
        font-size: 1.1rem;
    }

    .guide-section pre {
        padding: 12px;
        font-size: 0.8rem;
    }

    .guide-section code {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .guide-page {
        padding: 15px 10px;
    }

    .guide-section {
        padding: 15px;
    }

    .guide-section h2 {
        font-size: 1.2rem;
    }
}
