* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, Arial, sans-serif;
    background: #dfe8f1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../img/cruz.png") center 55% no-repeat;
    background-size: clamp(320px, 60vw, 520px);
    opacity: .25;
    pointer-events: none;
    z-index: -1;
}

.topbar {
    background: #2d2b47;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 20px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.container {
    max-width: 600px;
    margin: auto;
    padding: 10px;
    padding-bottom: 60px;
}

.footer {
    background: #2d2b47;
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 5px;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.grupo-pai {
    margin-bottom: 25px;
}

.card {
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card .card-bar {
    width: 8px;
    min-height: 70px;
    flex-shrink: 0;
}

a.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

a.card:active {
    transform: scale(.98);
}

.evento-data {
    width: 105px;
    text-align: center;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
}

.evento-semana {
    font-size: 13px;
    color: #444;
}

.evento-hora {
    margin-top: 4px;
}

.evento-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.evento-titulo {
    font-size: 20px;
    color: #1d2b66;
}

.evento-extra {
    font-size: 15px;
    color: #555;
    margin-top: 4px;
}

.riscado {
    text-decoration: line-through;
}

.tipo-mes {
    background: #ececec;
    display: block;
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: none;
}

.tipo-mes .card-bar {
    display: none;
}

.tipo-mes .evento-info {
    display: block;
    padding: 10px 12px 5px 12px;
    text-align: center;
}

.card-titulo {
    font-size: 20px;
    font-weight: 600;
    color: #3f5667;
    margin-bottom: 0;
}

.mes-eventos {
    background: #ececec;
    padding: 15px 5px 10px 5px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,.12);
}

.mes-eventos .card {
    margin-bottom: 8px;
}

.mes-eventos .card:last-child {
    margin-bottom: 0;
}

.tipo1 { background: #e8e9f2; }
.tipo1 .card-bar { background: #8b8fc2; }

.tipo2 { background: #cfd9ea; }
.tipo2 .card-bar { background: #5a7fc2; }

.tipo3 { background: #efe3c5; }
.tipo3 .card-bar { background: #d3a633; }

.tipo4 { background: #f2d2d2; }
.tipo4 .card-bar { background: #c95c5c; }

.tipo-hoje { background: #d6f2d2; }
.tipo-hoje .card-bar { background: #5cc961; }

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple .6s linear;
    background: rgba(255,255,255,0.7);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}