/* Personalizzazioni del sito sopra al tema corpo (style.css + red.css) */

body {
    background: #fff url(../img/body-bg.jpg) repeat left top fixed;
}

/* Nel tema ospitava le icone social: tiene lo spazio sopra l'header */
#top-bar { height: 24px; }

/* Banner cookie, generato da main.js */
#cookieChoiceInfo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    margin: 0;
    padding: 4px;
    background-color: #fff;
    color: #000;
    text-align: center;
}
#cookieChoiceInfo a { margin-left: 10px; }

/* Il tema riserva spazio a una sidebar che il sito non ha: contenuto a tutta larghezza */
#content { float: none; width: auto; }

/* Componenti di home e servizi */
.lead { font-size: 15px; line-height: 24px; color: #5a5a5a; }

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 0 12px;
}
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
    padding: 16px;
    background: #f7f7f7;
    border-top: 3px solid #ed422c;
}
.card h3, .card h4 { margin: 0 0 8px; }
.card p { margin: 0 0 12px; }
.card > :last-child { margin-bottom: 0; }
.card .icon {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    color: #ed422c;
}
.entry-content .card ul { margin-bottom: 0; }
.entry-content .card li { margin-bottom: 8px; }

.cards + h3 { margin-top: 32px; }

.more { text-align: right; }
.more a { font-weight: 600; }

/* Fasi di lavoro numerate */
.entry-content ol.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 0 20px;
    list-style: none;
    counter-reset: step;
}
.entry-content ol.steps li {
    margin: 0;
    padding-top: 44px;
    position: relative;
    counter-increment: step;
}
.entry-content ol.steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ed422c;
    color: #fff;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
}
ol.steps strong { display: block; color: #404040; margin-bottom: 4px; }

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding: 20px 24px;
    background: #3b3b3b;
    color: #fff;
}
.cta p { margin: 0; font-size: 15px; line-height: 24px; }

a.button {
    display: inline-block;
    flex-shrink: 0;
    padding: 8px 20px;
    background: #ed422c;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}
a.button:hover, a.button:focus { background: #c9331f; color: #fff; }

@media only screen and (max-width: 959px) {
    .cards, .entry-content ol.steps { grid-template-columns: repeat(2, 1fr); }
}
@media only screen and (max-width: 479px) {
    .cards, .cards.two, .entry-content ol.steps { grid-template-columns: 1fr; }
    .cta { flex-direction: column; align-items: flex-start; }
}
