body {
    font-family: 'Fredoka', Arial, sans-serif;
    background: #fff8ef;
    color: #1c2541;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

header {
    background: #ffd200;
    padding: 0.7em 0;
    box-shadow: 0 2px 6px #ffd20030;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 60px;
}

nav a {
    color: #1c2541;
    text-decoration: none;
    margin-left: 1.3em;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.2s;
}

nav a:hover {
    color: #f05e5e;
}

/* HERO */
.hero {
    background: linear-gradient(180deg, #87d2f9 60%, #fff8ef 100%);
    padding: 2.5em 0 1.2em 0;
}

.hero-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.hero-text {
    max-width: 450px;
}

.hero h1 {
    font-size: 2.6em;
    color: #ff901f;
    margin-bottom: 0.2em;
}

.hero p {
    font-size: 1.3em;
    color: #1c2541;
}

.cta-btn {
    display: inline-block;
    background: #ff901f;
    color: #fff;
    padding: 0.7em 1.7em;
    border-radius: 25px;
    font-size: 1.15em;
    font-weight: bold;
    margin-top: 1.2em;
    text-decoration: none;
    box-shadow: 0 4px 12px #ff901f30;
    transition: background 0.2s;
}

.cta-btn:hover {
    background: #e66622;
}

.hero-imgs {
    display: flex;
    align-items: end;
    gap: 1.5em;
}

.hero-imgs .bambino,
.hero-imgs .vigile {
    width: 110px;
    height: auto;
}

/* GIOCHI */
.games {
    padding: 2.5em 0 1em 0;
}

.games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
}

/* Riquadro Quiz cliccabile */
.game-card {
    cursor: pointer;
    text-decoration: none;
    color: #1c2541;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 4px 10px #ffb00080;
    padding: 1.2em 1em 1.4em 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.game-card img {
    width: 120px;
    height: 120px;
    margin-bottom: 0.7em;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px #ffb000cc;
}

/* BOX "PRESTO NUOVI GIOCHI" */
.coming-soon {
    background: #fffbe9;
    border: 2px dashed #ff901f;
    border-radius: 18px;
    text-align: center;
    padding: 2em 0.7em;
    font-size: 1.4em;
    color: #ff901f;
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 2em;
    box-shadow: 0 2px 6px #ffd20025;
    letter-spacing: 0.01em;
    transition: background 0.2s, border 0.2s;
}

.coming-soon:hover {
    background: #ffeabf;
    border-color: #ffd200;
}

/* EMERGENZE */
.emergenze {
    background: #e8f8fd;
    padding: 2.5em 0 1.2em 0;
}

.emergenze-list {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5em;
}

.emergenza-card {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 2px 7px #0077b63b;
    width: 160px;
    padding: 1.2em 0.5em 0.7em 0.5em;
    text-align: center;
}

.emergenza-card img {
    width: 68px;
    height: 68px;
    margin-bottom: 0.6em;
}

.emergenza-card small {
    display: block;
    color: #888;
    font-size: 0.93em;
    margin-top: 0.4em;
}

/* FOOTER */
footer {
    background: #ffd200;
    color: #1c2541;
    text-align: center;
    padding: 1.1em 0;
    margin-top: 2em;
    font-size: 1.05em;
    border-top: 2px solid #ff901f38;
}

/* Responsive */
@media (max-width: 850px) {

    .emergenze-list {
        flex-direction: column;
        align-items: center;
        gap: 1.3em;
    }

    .hero-content {
        flex-direction: column;
        gap: 2em;
    }
}