body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.3;
    color: #a72626;
    background-color: #5f5050;
    overflow-x: hidden;
}

/* Barra in alto e menu: definiti in ../style.css (come index.php) */

/* Immagine di fondo */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../immagini/campo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Contenuto principale */
.main-content {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.costruzione-container {
    width: 100%;
    max-width: 700px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    padding-bottom: 0;
}

/* Nastro da cantiere giallo e nero */
.nastro {
    height: 22px;
    background: repeating-linear-gradient(-45deg,
            #ffcc00 0 20px,
            #111 20px 40px);
    animation: scorri 1.5s linear infinite;
    background-size: 56.57px 22px;
}

@keyframes scorri {
    from { background-position: 0 0; }
    to   { background-position: 56.57px 0; }
}

/* Omino */
.omino {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 30px auto 10px auto;
}

/* Il braccio col martello ruota attorno alla spalla */
.braccio-martello {
    transform-origin: 152px 114.5px;
    transform-box: view-box;
    animation: martella 0.9s ease-in-out infinite;
}

@keyframes martella {
    0%   { transform: rotate(-50deg); }
    55%  { transform: rotate(28deg); }
    65%  { transform: rotate(24deg); }
    100% { transform: rotate(-50deg); }
}

/* L'omino si piega leggermente a ogni colpo */
.omino-corpo {
    transform-origin: 130px 210px;
    transform-box: view-box;
    animation: piega 0.9s ease-in-out infinite;
}

@keyframes piega {
    0%, 100% { transform: rotate(0deg); }
    55%      { transform: rotate(3deg); }
}

/* Scintille visibili solo nel momento del colpo */
.scintille {
    opacity: 0;
    animation: scintilla 0.9s linear infinite;
}

@keyframes scintilla {
    0%, 50% { opacity: 0; }
    56%     { opacity: 1; }
    75%     { opacity: 0; }
    100%    { opacity: 0; }
}

/* Testi */
.costruzione-titolo {
    font-family: 'Oswald', sans-serif;
    color: #a72626;
    text-transform: uppercase;
    font-size: 2.2em;
    margin: 10px 20px;
    letter-spacing: 1px;
}

.costruzione-testo {
    color: #333;
    font-size: 1.1em;
    line-height: 1.5;
    margin: 0 20px 25px 20px;
}

.costruzione-bottone {
    display: inline-block;
    margin-bottom: 35px;
    padding: 10px 22px;
    background-image: linear-gradient(to bottom right, red, black, red);
    color: gold;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    transition: opacity 0.3s ease;
}

.costruzione-bottone:hover {
    opacity: 0.85;
}

.costruzione-bottone i {
    margin-right: 6px;
}

/* Chi preferisce meno movimento vede l'omino fermo */
@media (prefers-reduced-motion: reduce) {
    .nastro,
    .braccio-martello,
    .omino-corpo,
    .scintille {
        animation: none;
    }
}

/* Footer (stesso stile delle altre pagine) */
.main-footer {
    background-color: #0a0a0a;
    color: #fff;
    margin-top: 100px;
    padding: 20px;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin: 20px 10px;
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    color: #FFD700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.3em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contact i {
    margin-right: 8px;
    color: #FFD700;
}

.footer-social-links a {
    color: #fff;
    font-size: 1.8em;
    margin-right: 18px;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: #FFD700;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    color: #ccc;
}

/* Tablet e telefono */
@media (max-width: 768px) {
    .main-content {
        padding: 15px;
    }

    .costruzione-titolo {
        font-size: 1.7em;
    }

    .footer-col {
        text-align: center;
        min-width: unset;
        width: 100%;
        margin: 10px 0;
    }

    .footer-social-links {
        text-align: center;
    }

    .footer-social-links a {
        margin: 0 10px;
    }
}
