/* Struttura Base */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    overflow: hidden; /* Evita scroll inutili su questa pagina */
}

/* Contenitore Errore */
.error-container {
    max-width: 600px;
    width: 90%;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top: 8px solid #B52025;
    position: relative;
}

/* Icona Animata */
.icon-box {
    font-size: 80px;
    color: #B52025;
    margin-bottom: 20px;
}

.icon-box i {
    display: inline-block; /* Necessario per l'animazione rotate */
    animation: wrench-move 2.5s infinite ease-in-out;
}

/* Testi */
h1 {
    font-size: 100px;
    margin: 0;
    color: #333;
    line-height: 1;
    font-weight: 800;
}

h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #B52025;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Pulsante Home */
.btn-home {
    background-color: #B52025;
    color: white !important;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(181, 32, 37, 0.3);
}

.btn-home:hover {
    background-color: #8e181c;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(181, 32, 37, 0.4);
}

/* Nastro di Segnalazione Lavori */
.warning-tape {
    height: 30px;
    background: repeating-linear-gradient(
        45deg,
        #f39c12,
        #f39c12 20px,
        #222 20px,
        #222 40px
    );
    margin: 40px -40px -40px -40px;
    border-radius: 0 0 15px 15px;
    box-shadow: inset 0 5px 10px rgba(0,0,0,0.15);
}

/* Definizione Animazione Chiave Inglese */
@keyframes wrench-move {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(25deg); }
}

/* Responsive */
@media (max-width: 480px) {
    h1 { font-size: 70px; }
    h2 { font-size: 20px; }
    .error-container { padding: 30px 20px; }
}