/* Palette Colori */
:root {
    --color-1: #5ab0c5;
    --color-2: #1c2a48;
    --color-3: #84ecf5;
    --color-4: #6e6e73;
    --color-5: #f6f6f6;
}

/* body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Inter', sans-serif;
    color: var(--color-2);
    min-height: 100vh;
} */

/* Card Stile Apple Glass - Angoli Vivi */
.custom-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 40px;
    height: 100%;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.5);
}

.graphic-box {
    height: 200px;
    background-color: rgba(246, 246, 246, 0.5);
    margin-bottom: 30px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Tipografia */
.values-section h2 { font-weight: 700; font-size: 1.35rem; margin-bottom: 20px; color: var(--color-2); line-height: 1.3; }
.values-section .custom-card p { font-size: 0.95rem; line-height: 1.7; color: var(--color-4); margin-bottom: 0; }
strong { color: var(--color-2); font-weight: 600; }

/* --- Animazioni Card 1 (Intersezione) --- */
.sq-int { width: 85px; height: 85px; position: absolute; }
.sq-blue-dark { 
    background: rgba(28, 42, 72, 0.85); 
    animation: moveRight 3.5s infinite alternate ease-in-out;
}
.sq-cyan { 
    background: rgba(90, 176, 197, 0.75); 
    animation: moveLeft 3.5s infinite alternate ease-in-out;
    backdrop-filter: blur(4px);
}
@keyframes moveRight { from { transform: translateX(-30px); } to { transform: translateX(15px); } }
@keyframes moveLeft { from { transform: translateX(30px); } to { transform: translateX(-15px); } }

/* --- Animazioni Card 2 (Fiore) --- */
.petal {
    width: 38px; height: 38px;
    position: absolute;
    background: var(--bg);
    animation: flowerPop 4s infinite ease-in-out;
    animation-delay: var(--delay);
    opacity: 0;
}
@keyframes flowerPop {
    0% { transform: rotate(var(--r)) translateY(0) scale(0); opacity: 0; }
    50%, 90% { transform: rotate(var(--r)) translateY(-45px) scale(1); opacity: 0.8; }
    100% { transform: rotate(var(--r)) translateY(-45px) scale(1); opacity: 0; }
}

/* --- Animazioni Card 3 (Stack) --- */
.sq-stack {
    width: 95px; height: 95px;
    position: absolute;
    border: 1px solid rgba(255,255,255,0.3);
    animation: stackSlide 4s infinite ease-in-out;
}
.st-1 { z-index: 4; animation-delay: 0s; background: rgba(132, 236, 245, 0.7); }
.st-2 { z-index: 3; animation-delay: 0.2s; background: rgba(90, 176, 197, 0.7); }
.st-3 { z-index: 2; animation-delay: 0.4s; background: rgba(110, 110, 115, 0.7); }
.st-4 { z-index: 1; animation-delay: 0.6s; background: rgba(28, 42, 72, 0.9); }

@keyframes stackSlide {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(calc(var(--i) * 16px), calc(var(--i) * -16px)); }
}

/* --- Supporto Scroll Orizzontale Mobile --- */
@media (max-width: 767.98px) {
    .values-section .row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Scroll fluido su iOS */
        padding-bottom: 20px;
        scroll-snap-type: x mandatory; /* Effetto calamita */
    }

    .values-section .col-md-4 {
        flex: 0 0 85%; /* Mostra l'85% della card per far capire che si scivola */
        max-width: 85%;
        scroll-snap-align: center;
    }

    /* Nasconde la scrollbar per un look più pulito (opzionale) */
    .values-section .row::-webkit-scrollbar {
        display: none;
    }
    .values-section .row {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}