/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2c1810 0%, #8B4513 50%, #D2691E 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideIn 0.8s ease-out;
}

/* SEZIONE PRINCIPALE - Struttura ottimizzata per cognitive load */
.sezione-principale {
    padding: 30px;
    border-bottom: 3px solid #8B4513;
    position: relative;
}

.sezione-principale:last-child {
    border-bottom: none;
}

/* SEZIONE 1: Header Completo (Principio di Prossimità) */
.header-completo {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    text-align: center;
    padding: 40px 30px;
}

.header-completo h1 {
    font-size: 3.2em;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.header-completo .locale-info h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 15px 0 10px 0;
    color: #FFE4B5;
}

.header-completo .indirizzo {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 20px;
    color: #F5DEB3;
}

.header-completo .descrizione-posizione p {
    font-size: 1.3em;
    font-weight: 600;
    margin: 10px 0;
    color: #FFFACD;
}

.header-completo .esperienza {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    margin-top: 15px !important;
    font-weight: 700 !important;
    color: #FFF !important;
}

/* SEZIONE 2: Immagine Locale (Principio di Somiglianza) */
.immagine-locale {
    background: #F5F5DC;
    text-align: center;
}

.logo-locale {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
    transition: transform 0.3s ease;
}

.logo-locale:hover {
    transform: scale(1.02);
}

.immagine-locale .requisiti-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.requisiti-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.requisito {
    background: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    color: #8B4513;
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
    border-left: 5px solid #D2691E;
    transition: transform 0.3s ease;
}

.requisito:hover {
    transform: translateX(10px);
}

/* SEZIONE 3: Call to Action (Principio Figura-Sfondo) */
.contatti-cta {
    background: linear-gradient(135deg, #D2691E, #FF8C00);
    color: white;
    text-align: center;
}

.contatti-cta h2 {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.contatto-principale {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.telefono, .whatsapp {
    background: rgba(255, 255, 255, 0.9);
    color: #8B4513;
    padding: 20px 30px;
    border-radius: 50px;
    font-size: 1.4em;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.telefono:hover, .whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.urgenza {
    background: #FF4500;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.3em;
    font-weight: 800;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: blink 1.5s infinite;
}

/* Footer Volantino */
.footer-volantino {
    background: #333;
    color: white;
    text-align: center;
    padding: 25px;
}

.footer-volantino p {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.footer-volantino p:first-child {
    font-weight: 900;
    color: #ffff00;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .sezione-principale {
        padding: 20px;
    }
    
    .header-completo h1 {
        font-size: 2.5em;
    }
    
    .header-completo .locale-info h2 {
        font-size: 1.5em;
    }
    
    .contatto-principale {
        flex-direction: column;
        gap: 15px;
    }
    
    .telefono, .whatsapp {
        font-size: 1.2em;
        padding: 15px 25px;
    }
}

@media (max-width: 480px) {
    .header-volantino h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .locale-info h2 {
        font-size: 1.4rem;
    }
    
    .posizioni h2,
    .esperienza h2 {
        font-size: 1.4rem;
    }
    
    .numero a {
        font-size: 2rem;
        padding: 12px 25px;
        letter-spacing: 1px;
    }
    
    .whatsapp a {
        font-size: 1.1rem;
        padding: 12px 25px;
    }
}

/* Animazioni */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Effetti di stampa */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .volantino {
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .numero a {
        animation: none;
    }
}