@charset "UTF-8";

/* ==========================================================================
   1. RESET & STRUTTURA RESPONSIVE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. HEADER CON SFONDO NERO
   ========================================================================== */
.site-header {
    background-color: #111111;
    border-bottom: 2px solid #f37021;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 280px;
    height: auto;
    display: block;
}

.tagline p {
    font-size: 0.9rem;
    color: #cccccc;
    font-style: italic;
    font-weight: 500;
}

/* ==========================================================================
   3. MENU DI NAVIGAZIONE ORIZZONTALE & HAMBURGER MOBILE
   ========================================================================== */
.nav-bar {
    background-color: #f37021;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.15);
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 14px;
    width: 100%;
    text-align: right;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover, 
.nav-link.active {
    background-color: #d85c10;
}

/* ==========================================================================
   4. BLOCCO CONTENUTO PROCEDURA
   ========================================================================== */
.procedura-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.procedura-header-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #fce7f3;
}

.procedura-header-banner img {
    max-width: 200px;
    height: auto;
}

.procedura-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f37021;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.procedura-intro {
    font-size: 1rem;
    color: #475569;
}

.fase-badge {
    display: inline-block;
    background-color: #f37021;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 6px;
    margin: 25px 0 12px 0;
    letter-spacing: 0.5px;
}

.box-evidenziato {
    background-color: #f8fafc;
    border-left: 4px solid #f37021;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.box-evidenziato p {
    margin-bottom: 10px;
}

.box-evidenziato p:last-child {
    margin-bottom: 0;
}

.procedura-wrapper p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #334155;
}

.procedura-wrapper a {
    color: #f37021;
    font-weight: bold;
    text-decoration: underline;
}

.procedura-wrapper a:hover {
    color: #d85c10;
}

/* ==========================================================================
   5. BOTTONE AVVIA
   ========================================================================== */
.action-container {
    text-align: center;
    margin: 20px 0 40px 0;
}

.action-container img {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.action-container img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* ==========================================================================
   6. FOOTER CON SFONDO ARANCIONE E SCRITTE BIANCHE
   ========================================================================== */
.site-footer {
    background-color: #f37021;
    color: #ffffff;
    padding: 35px 0;
    margin-top: auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-info p {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-info strong {
    color: #ffffff;
}

.footer-info a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.footer-info a:hover {
    color: #ffe6d5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    max-width: 400px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==========================================================================
   7. RESPONSIVE & MOBILE MENU A SCOMPARSA
   ========================================================================== */
@media (max-width: 768px) {
    .header-content, .footer-grid, .procedura-header-banner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    /* Gestione Toggle Menu Mobile */
    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 8px;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-link {
        text-align: center;
        padding: 10px;
    }

    .procedura-wrapper {
        padding: 20px;
    }
}