/* ======================================================
   ONBOARDING - Adorazione Eucaristica
   File CSS completamente isolato (classi prefisso "onb-")
   Non modifica né dipende da style.css esistente
   ====================================================== */

.onb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to top, rgba(120,55,10,0.85) 0%, rgba(150,75,15,0.28) 35%, rgba(191,87,0,0.5) 100%),
        url('/assets/images/adorazione-ostensorio.jpg') center 30%/cover no-repeat,
        linear-gradient(135deg,#7a3c10 0%,#2e1608 100%);
    z-index: 20000; /* sopra a tutto, incluso GDPR (10000) */
    display: none;
    flex-direction: column;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.onb-overlay.onb-active {
    display: flex;
}

.onb-skip {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
}

.onb-slides {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.onb-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    box-sizing: border-box;
    animation: onb-fadein 0.4s ease;
}

.onb-slide.onb-slide-active {
    display: flex;
}

@keyframes onb-fadein {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.onb-textbox {
    background: radial-gradient(ellipse at center, rgba(15,8,0,0.65) 0%, rgba(15,8,0,0.45) 60%, rgba(15,8,0,0) 100%);
    border-radius: 50px;
    padding: 34px 32px;
    max-width: 340px;
}

.onb-slide h2 {
    font-size: 27px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.onb-slide p {
    font-size: 17px;
    line-height: 1.7;
    color: #ffffff;
    opacity: 0.98;
    max-width: 320px;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

.onb-footer {
    padding: 20px 30px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.onb-dots {
    display: flex;
    gap: 8px;
}

.onb-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.onb-dot.onb-dot-active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.onb-btn-next {
    width: 100%;
    max-width: 320px;
    padding: 15px;
    background: white;
    color: #BF5700;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.onb-btn-next:active {
    transform: scale(0.97);
}

@media (max-width: 380px) {
    .onb-slide h2 { font-size: 23px; }
    .onb-slide p { font-size: 15px; }
    .onb-textbox { padding: 26px 22px; }
}
