/* --- RESET E BASI --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body, html { 
    height: 100%; 
    width: 100%; 
    overflow: hidden; 
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
}

.scroll-container {
    width: 100%;
    height: 100svh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
}
.scroll-container::-webkit-scrollbar { display: none; }

/* --- GRUPPI --- */
.section-group {
    position: relative;
    width: 100%;
    height: 200svh;
    background: #000;
}

.sticky-box {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100svh;
    z-index: 1;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: -1%; left: -1%; width: 102%; height: 102%;
    background-position: center center;
    background-size: cover;
    z-index: 1;
}

.blur-layer {
    position: absolute;
    top: -5%; left: -5%; width: 110%; height: 110%;
    background-position: center center;
    background-size: cover;
    filter: blur(20px) brightness(0.7);
    -webkit-filter: blur(20px) brightness(0.7);
    z-index: 2;
    opacity: 0; 
    will-change: opacity;
    transform: scale(1.1);
}

/* --- IL CONTENITORE CHE SCORRE --- */
.content-wrapper {
    position: relative;
    width: 100%;
    margin-top: -100svh; 
    z-index: 10;
}

.slide {
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: always !important; 
    position: relative;
}

/* --- TESTI E OVERLAY --- */
.testo-overlay {
    background: rgba(255, 255, 255, 0.96); 
    padding: 35px 25px;
    border-radius: 20px;
    width: 88%;
    max-width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 15;
}

/* Fix per staccare il bottone dal testo nelle schede informative */
.testo-overlay .btn {
    margin-top: 25px; 
}

.iban-box { 
    background: #fdfaf7; 
    padding: 15px 10px; 
    border: 1px dashed #d1c4be; 
    margin: 20px 0; 
    font-size: 0.9rem; 
    white-space: nowrap; 
    letter-spacing: -0.3px;
    font-family: monospace;
    color: #333;
}

.btn { 
    display: inline-block; 
    padding: 14px 28px; 
    background: #8d7d77; 
    color: white; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: 600;
}

/* --- INDICATORI (HINT) SEMPRE BIANCHI --- */
.hint { 
    position: absolute; 
    bottom: 30px; 
    left: 0;
    width: 100%; 
    font-size: 0.7rem; 
    color: #ffffff !important; 
    animation: bounce 2s infinite; 
    text-align: center;
    z-index: 20;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6); 
}

@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} }

/* --- TIPOGRAFIA --- */
h1 { font-family: 'Playfair Display', serif; font-size: 3rem; text-align: center; }
h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: #8d7d77; text-align: center; }
