/* ============================
   PAGINA PRIVACY POLICY
============================ */

.page-privacy {
    background: #f5f7f9;
}

/* ============================
   HERO
============================ */

.page-hero {
    padding: 35px 0 25px 0;
    background: #e6eef1;
    color: #23333a;
    text-align: center;
    border-bottom: 3px solid #4d798b20;
    border-top: 2px solid #d3dde2;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #355866;
}

.page-subtitle {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================
   CONTAINER
============================ */

.page-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   ANIMAZIONI
============================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-left {
    animation: slideLeft 0.6s ease forwards;
}

.slide-right {
    animation: slideRight 0.6s ease forwards;
}

/* ============================
   GRID CARD
============================ */

.privacy-section {
    padding: 0 0 30px 0;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    align-items: stretch;
    margin-top: 40px;
}

/* ============================
   CARD PREMIUM
============================ */

.privacy-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    overflow: hidden;

    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.08),
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10);

    border: 2px solid transparent;
}

/* Bordo blu animato */
.privacy-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 2px;
    background: linear-gradient(135deg, #4d798b, #355866, #4d798b);
    opacity: 0;
    transition: opacity 0.35s ease;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

/* Hover 3D + bordo animato */
.privacy-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(1deg);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.10),
        0 30px 60px rgba(0, 0, 0, 0.08);
}

.privacy-card:hover::before {
    opacity: 1;
}

/* ============================
   ICONE COLORATE
============================ */

.privacy-icon i {
    font-size: 4rem;
    color: #4d798b;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.privacy-card:hover .privacy-icon i {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px #4d798b80);
}

/* ============================
   TESTI
============================ */

.privacy-info {
    flex: 1;
}

.privacy-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #355866;
    margin-bottom: 12px;
}

.privacy-desc {
    font-size: 1rem;
    color: #23333a;
    margin-bottom: 20px;
}

.privacy-btn {
    display: inline-block;
    background: #4d798b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease;
}

.privacy-btn:hover {
    background: #355866;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 900px) {

    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .privacy-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 25px;
    }

    .privacy-icon i {
        font-size: 3rem;
    }
}