﻿/* ============================
   COMPONENTI GLOBALI
============================ */

/* ----------------------------
   CARD STANDARD
---------------------------- */
.card {
    background: #F4F4F4;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #1f4fa8;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }

/* ----------------------------
   GLASS CARD (riutilizzabile)
---------------------------- */
.glass-card {
    background: #ffffffcc;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
    padding: 25px;
}

/* Variante più forte */
.glass-card-strong {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
}

/* ----------------------------
   REVEAL ANIMATIONS
---------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s ease-out;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ----------------------------
   COOKIE BANNER
---------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: #062A18;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    display: none;
    z-index: 9999;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

    .cookie-banner p {
        margin: 0;
        font-size: 1rem;
    }

.cookie-btn {
    margin-top: 12px;
    background: #0B7A3E;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

    .cookie-btn:hover {
        background: #0d8f4a;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ----------------------------
   SCROLL ARROW
---------------------------- */
.scroll-arrow-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -110px;
}

.scroll-arrow {
    animation: arrowBounce 1.6s ease-in-out infinite;
}

@keyframes arrowBounce {
    0% {
        transform: translateY(0);
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(10px);
        opacity: 0.3;
    }
}

/* ----------------------------
   FORM GLOBALI
---------------------------- */
.form-control {
    width: 100%;
    padding: 14px;
    border: 2px solid #1f4fa8;
    border-radius: 8px;
    background: #ffffffee;
    transition: 0.3s;
}

    .form-control:focus {
        border-color: #397fe2;
        box-shadow: 0 0 8px rgba(31,79,168,0.3);
        outline: none;
    }

/* ----------------------------
   BUTTONS GLOBALI (varianti)
---------------------------- */
.btn-green {
    background: #0B7A3E;
    color: white;
}

    .btn-green:hover {
        background: #095f30;
    }

.btn-blue {
    background: #1f4fa8;
    color: white;
}

    .btn-blue:hover {
        background: #397fe2;
    }

/* ----------------------------
   GRID UTILITY
---------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
