/**
 * Text Genius Landing Page Styles
 * CSS separato dalla landing principale
 * 
 * @package TechVisory
 */

/* ============================================
   NASCONDI ELEMENTI GENERALI DEL SITO
   ============================================ */

/* Nascondi navbar generale */
body.page-template-page-text-genius-php #navbar,
body.page-id-73 #navbar {
    display: none !important;
}

/* Nascondi footer generale */
body.page-template-page-text-genius-php #footer,
body.page-id-73 #footer {
    display: none !important;
}

/* Nascondi background gradients globali e layer dinamici */
body.page-template-page-text-genius-php .global-bg-gradient,
body.page-id-73 .global-bg-gradient,
body.page-template-page-text-genius-php .global-bg-layer-1,
body.page-id-73 .global-bg-layer-1,
body.page-template-page-text-genius-php .global-bg-layer-2,
body.page-id-73 .global-bg-layer-2,
body.page-template-page-text-genius-php .global-bg-layer-3,
body.page-id-73 .global-bg-layer-3,
body.page-template-page-text-genius-php .parallax-blob,
body.page-id-73 .parallax-blob {
    display: none !important;
}

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

.text-genius-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

/* Video Background - metà superiore */
.text-genius-hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    z-index: 0;
}

.text-genius-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradiente fade verso bianco */
.text-genius-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.8) 70%,
        rgba(255, 255, 255, 1) 100%
    );
    z-index: 2;
}

/* Logo Centrato - animazione fluida gestita da JavaScript */
.text-genius-logo-center {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* Transizione smooth impostata via JS per maggiore controllo */
    will-change: transform, top, left;
}

.text-genius-logo-img {
    max-width: 350px;
    height: auto;
    display: block;
}

/* Logo Default */
.text-genius-logo-default {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.text-genius-logo-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.text-genius-logo-icon svg {
    width: 100%;
    height: 100%;
}

.text-genius-logo-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.text-genius-logo-text-top {
    font-size: 1.75rem;
    font-weight: 700;
    color: #EC4899;
    line-height: 1;
}

.text-genius-logo-text-bottom {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

/* Contenuto Hero */
.text-genius-hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 45vh;
}

.text-genius-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: #000;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.text-genius-hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #4a5568;
    max-width: 850px;
    margin: 0 auto;
    font-weight: 400;
}

.text-genius-hero-description strong {
    font-weight: 700;
    color: #000;
}

/* Colore rosa per "TextGenius" */
.text-genius-hero-description .text-pink {
    color: #EC4899;
    font-weight: 700;
}

/* Pulsante Hero */
.text-genius-hero-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1.25rem 2.5rem;
    background: #EC4899;
    color: #fff;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.text-genius-hero-btn:hover {
    background: #db2777;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

/* Responsive - Hero mobile */
@media (max-width: 768px) {
    .text-genius-hero-section .text-genius-hero-video-wrapper {
        height: 30%;
    }

    .text-genius-hero-content {
        margin-top: 32vh;
        padding: 0 1.5rem;
    }

    .text-genius-hero-title {
        margin-bottom: 1.5rem;
    }

    .text-genius-hero-btn {
        margin-top: 2rem;
    }
    
    .text-genius-logo-center {
        top: 20%;
    }
    
    .text-genius-logo-center.logo-moved {
        top: 1rem;
        left: 1rem;
        transform: translate(0, 0) scale(0.4);
    }
    
    .text-genius-logo-img {
        max-width: 250px;
    }
    
    .text-genius-logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .text-genius-logo-text-top {
        font-size: 1.25rem;
    }
    
    .text-genius-logo-text-bottom {
        font-size: 1.75rem;
    }
}

/* Navbar Text Genius personalizzata con effetto Liquid Glass */
.text-genius-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    padding: 1rem 2rem;
    
    /* Effetto Liquid Glass Apple-style */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    
    /* Bordo sottile per definizione */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 1px 2px rgba(0, 0, 0, 0.05);
    
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.6s;
}

.text-genius-navbar.text-genius-navbar-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
}

.text-genius-navbar-left {
    display: flex;
    align-items: center;
    min-height: 50px;
}

.text-genius-navbar-logo {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 150px;
    height: 50px;
    min-height: 50px;
    flex-shrink: 0;
    overflow: visible;
}

/* Logo in navbar: position absolute, coordinate fisse rispetto al contenitore (stessa altezza della freccia) */
.text-genius-logo-center.text-genius-logo-in-navbar {
    position: absolute !important;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.35);
    transform-origin: left center;
    width: auto;
    height: auto;
    will-change: auto;
}

/* Pulsante Torna indietro: float in basso a destra, sempre visibile */
.text-genius-back-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1400;
    pointer-events: none;
}

.text-genius-back-float-btn {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #111827;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.25s ease;
}

.text-genius-back-float-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.text-genius-back-float-icon {
    width: 24px;
    height: 24px;
    display: block;
}

@media (max-width: 768px) {
    .text-genius-back-float {
        bottom: 1rem;
        right: 1rem;
    }
    .text-genius-back-float-btn {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .text-genius-back-float-icon {
        width: 22px;
        height: 22px;
    }
}

/* ============================================
   COMPLIANCE SECTION
   ============================================ */

.text-genius-compliance-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    background: #0a0a1a;
}

/* Background Image con Overlay */
.compliance-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.compliance-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Layer duplicato con effetto multiply - come in Illustrator */
.compliance-bg-image-multiply {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
    opacity: 0.7;
    filter: contrast(1.3) saturate(1.2);
}

.compliance-bg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Base colorata per intensificare l'effetto multiply */
.compliance-bg-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
    z-index: 0;
}

.compliance-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 20, 40, 0.9) 100%
    );
    z-index: 2;
}

/* Grid Decorativa in basso a destra */
.compliance-decorative-grid {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 0.75rem;
    z-index: 3;
    opacity: 0.5;
    pointer-events: none;
}

.compliance-grid-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 100%;
    animation: gradientShift 6s ease-in-out infinite;
}

/* Contenuto */
.compliance-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Titolo con Gradiente Rosa-Viola Animato */
.compliance-title-gradient {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, 
        #ec4899 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #8b5cf6 75%, 
        #ec4899 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
    letter-spacing: -0.02em;
}

/* Sottotitolo */
.compliance-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4rem;
}

/* Sezione Inferiore (più scura) */
.compliance-bottom-section {
    position: relative;
    z-index: 5;
    background: rgba(0, 10, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.compliance-section-title {
    font-size: clamp(1.2rem, 2.6vw, 1.85rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.compliance-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: #d1d5db;
    max-width: 800px;
    margin: 0 auto;
}

.compliance-description strong {
    color: #ffffff;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .text-genius-compliance-section {
        padding: 4rem 0;
    }
    
    .compliance-content {
        padding: 0 1.5rem;
    }
    
    .compliance-bottom-section {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }
    
    .compliance-decorative-grid {
        display: none;
    }
}

@media (min-width: 1024px) {
    .compliance-title-gradient,
    .compliance-section-title {
        white-space: nowrap;
    }
}

/* ============================================
   GRADIENTE ANIMATO GLOBALE
   ============================================ */

/* Classe per testi con gradiente rosa-viola animato */
.text-gradient-animated {
    background: linear-gradient(90deg, 
        #ec4899 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #8b5cf6 75%, 
        #ec4899 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

/* Keyframe per animazione gradiente */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   SEZIONE BASSO RISCHIO
   ============================================ */

.text-genius-basso-rischio-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2a 100%);
    position: relative;
    overflow: hidden;
}

.basso-rischio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Content Left */
.basso-rischio-content {
    padding-right: 2rem;
    z-index: 2;
    position: relative;
}

.basso-rischio-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.text-gradient-textgenius {
    background: linear-gradient(90deg, 
        #ec4899 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #8b5cf6 75%, 
        #ec4899 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

.basso-rischio-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.subtitle-label {
    background: linear-gradient(90deg, 
        #ec4899 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #8b5cf6 75%, 
        #ec4899 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
    font-weight: 600;
}

.subtitle-highlight {
    background: linear-gradient(90deg, 
        #ec4899 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #8b5cf6 75%, 
        #ec4899 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
    font-weight: 700;
}

.subtitle-text {
    color: #a0a0c0;
    font-weight: 500;
}

.basso-rischio-description {
    color: #b0b0d0;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Box con Punti Chiave */
.basso-rischio-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 120%;
}

.basso-rischio-point {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.point-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.point-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    stroke-width: 2.5;
}

.point-content {
    flex: 1;
}

.point-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.point-title-first {
    color: #ffffff;
}

.point-title-second {
    background: linear-gradient(90deg, 
        #ec4899 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #8b5cf6 75%, 
        #ec4899 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

.point-description {
    color: #b0b0d0;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Immagine Floating Right */
.basso-rischio-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.basso-rischio-floating-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(236, 72, 153, 0.3));
    
    /* Animazione Floating */
    animation: floating 6s ease-in-out infinite;
}

/* Keyframe Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
    75% {
        transform: translateY(-25px) rotate(1deg);
    }
}

/* Responsive Mobile */
@media (max-width: 1023px) {
    .text-genius-basso-rischio-section {
        padding: 5rem 0;
    }
    
    .basso-rischio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .basso-rischio-content {
        padding-right: 0;
        order: 2;
        min-width: 0;
    }
    
    .basso-rischio-image-wrapper {
        order: 1;
    }
    
    .basso-rischio-title {
        font-size: 2rem;
    }
    
    .basso-rischio-subtitle {
        font-size: 1rem;
    }
    
    .basso-rischio-description {
        font-size: 1rem;
    }
    
    .basso-rischio-box {
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        gap: 1.5rem;
        box-sizing: border-box;
    }

    .point-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .point-title {
        font-size: 1.125rem;
    }
    
    .basso-rischio-floating-image {
        max-width: 400px;
    }
}

/* ============================================
   SEZIONE TRASPARENZA TOTALE
   ============================================ */

.text-genius-trasparenza-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2a 100%);
    position: relative;
    overflow: hidden;
}

/* Griglia decorativa in alto a destra */
.trasparenza-decorative-grid {
    position: absolute;
    top: 5%;
    right: 5%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.trasparenza-grid-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 100%;
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite, gradientShift 7s ease-in-out infinite;
}

.trasparenza-grid-dot:nth-child(2n) {
    animation-delay: 0.3s;
}

.trasparenza-grid-dot:nth-child(3n) {
    animation-delay: 0.6s;
}

/* Header centrato */
.trasparenza-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.trasparenza-main-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.trasparenza-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #b0b0d0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.trasparenza-subtitle .subtitle-highlight {
    background: linear-gradient(90deg, 
        #ec4899 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #8b5cf6 75%, 
        #ec4899 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
    font-weight: 600;
}

/* Grid delle Card */
.trasparenza-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.trasparenza-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.trasparenza-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trasparenza-card:hover {
    transform: translateY(-10px);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 20px 60px rgba(236, 72, 153, 0.2);
}

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

/* Icona Card */
.trasparenza-card-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trasparenza-icon-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(236, 72, 153, 0.3));
    transition: transform 0.4s ease;
}

.trasparenza-card:hover .trasparenza-icon-img {
    transform: scale(1.1) translateY(-5px);
}

/* Titolo Card */
.trasparenza-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, 
        #ec4899 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #8b5cf6 75%, 
        #ec4899 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Descrizione Card */
.trasparenza-card-description {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #b0b0d0;
    margin: 0;
}

/* Responsive Mobile */
@media (max-width: 1023px) {
    .text-genius-trasparenza-section {
        padding: 5rem 0;
    }
    
    .trasparenza-decorative-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        top: 3%;
        right: 3%;
    }
    
    .trasparenza-grid-dot {
        width: 6px;
        height: 6px;
    }
    
    .trasparenza-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .trasparenza-main-title {
        font-size: 2rem;
    }
    
    .trasparenza-subtitle {
        font-size: 1rem;
    }
    
    .trasparenza-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .trasparenza-card {
        padding: 2rem 1.5rem;
    }
    
    .trasparenza-icon-img {
        width: 100px;
        height: 100px;
    }
    
    .trasparenza-card-title {
        font-size: 1.375rem;
    }
    
    .trasparenza-card-description {
        font-size: 1rem;
    }
}

/* ============================================
   SEZIONE ECOSISTEMA AZIENDALE
   ============================================ */

.text-genius-ecosistema-section {
    background: #f4f4f6;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

/* Griglia decorativa in alto a destra */
.ecosistema-decorative-grid {
    position: absolute;
    top: 6%;
    right: 4%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.ecosistema-grid-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 100%;
    animation: gradientShift 6.5s ease-in-out infinite;
    border-radius: 50%;
}

/* Header */
.ecosistema-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
    z-index: 2;
    width:90%;
}

.ecosistema-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #93a1ad!important;
    margin: 0;
}

.ecosistema-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #93a1ad!important;
    margin: 0;
}

/* Card Piccole */
.ecosistema-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
    align-items: stretch;
}

/* Flipper Container */
.ecosistema-card-flipper {
    perspective: 1000px;
    height: 100%;
    display: flex;
    min-height: 550px;
}

.ecosistema-card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 550px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    flex: 1;
}

.ecosistema-card-flipper.is-flipped .ecosistema-card-flip-inner {
    transform: rotateY(180deg);
}

.ecosistema-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 15px 30px rgba(17, 24, 39, 0.08);
    border-top: 6px solid transparent;
    backdrop-filter: blur(6px);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
    width: 100%;
}

.ecosistema-card-front,
.ecosistema-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.ecosistema-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ecosistema-card-pink {
    border-top-color: #ec4899;
}

.ecosistema-card-green {
    border-top-color: #10b981;
}

.ecosistema-card-purple {
    border-top-color: #8b5cf6;
}

.ecosistema-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #93a1ad!important;
    margin-bottom: 0.75rem;
}

.ecosistema-card-text {
    font-size: 0.98rem;
    color: #93a1ad!important;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    flex-shrink: 0;
}

/* Liste all'interno delle card */
.ecosistema-card-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(147, 161, 173, 0.2);
    padding-top: 1.25rem;
    flex-shrink: 0;
}

.ecosistema-card-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: #93a1ad!important;
    line-height: 1.6;
}

.ecosistema-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.ecosistema-card-pink .ecosistema-card-list li::before {
    background: #ec4899;
    opacity: 1;
}

.ecosistema-card-green .ecosistema-card-list li::before {
    background: #10b981;
    opacity: 1;
}

.ecosistema-card-purple .ecosistema-card-list li::before {
    background: #8b5cf6;
    opacity: 1;
}

/* Pulsante Scopri di più */
.ecosistema-card-front {
    justify-content: flex-start;
}

.ecosistema-card-front > *:not(.ecosistema-card-discover-btn) {
    flex-shrink: 0;
}

.ecosistema-card-discover-btn {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 8px;
    color: #93a1ad;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ecosistema-card-pink .ecosistema-card-discover-btn {
    border-color: #ec4899;
    color: #ec4899;
}
.ecosistema-card-pink .ecosistema-card-discover-btn:hover {
    background-color: #ec4899;
}

.ecosistema-card-green .ecosistema-card-discover-btn {
    border-color: #10b981;
    color: #10b981;
}
.ecosistema-card-green .ecosistema-card-discover-btn:hover {
    background-color: #10b981;
}

.ecosistema-card-purple .ecosistema-card-discover-btn {
    border-color: #8b5cf6;
    color: #8b5cf6;
}
.ecosistema-card-purple .ecosistema-card-discover-btn:hover {
    background-color: #8b5cf6;
}

.ecosistema-card-discover-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Contenuto retro card */
.ecosistema-card-back-content {
    flex: 1;
    overflow-y: auto;
    color: #93a1ad;
    line-height: 1.7;
    font-size: 0.95rem;
}

.ecosistema-card-back-content p {
    margin-bottom: 1rem;
}

.ecosistema-card-back-content ul,
.ecosistema-card-back-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.ecosistema-card-back-content li {
    margin-bottom: 0.5rem;
}

.ecosistema-card-back-content strong {
    color: #1f2937;
    font-weight: 700;
}

/* Pulsante Indietro */
.ecosistema-card-back-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid #93a1ad;
    border-radius: 8px;
    color: #93a1ad;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.ecosistema-card-back-btn:hover {
    background: #93a1ad;
    color: #ffffff;
}

/* Hover effect per card con flip */
.ecosistema-card-flipper.has-flip:hover .ecosistema-card-front {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.12);
}

/* Card Grande */
.ecosistema-big-card {
    margin-top: 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 32px;
    border-top: 8px solid #ec4899;
    box-shadow: 0 25px 50px rgba(17, 24, 39, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.ecosistema-big-content {
    padding: 3rem 3.25rem 2.25rem;
}

.ecosistema-big-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #93a1ad!important;
    margin-bottom: 1rem;
}

.ecosistema-big-description {
    font-size: 1.05rem;
    color: #93a1ad!important;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.ecosistema-big-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ecosistema-big-list li {
    font-size: 0.98rem;
    color: #93a1ad!important;
    line-height: 1.6;
}

.ecosistema-list-title {
    font-weight: 700;
    color: #93a1ad!important;
}

.ecosistema-list-text {
    margin-left: 0.25rem;
}

.ecosistema-big-image {
    background: #ffffff;
    padding: 0;
}

.ecosistema-image {
    width: 100%;
    display: block;
    height: auto;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
}

/* Responsive */
@media (max-width: 1023px) {
    .text-genius-ecosistema-section {
        padding: 5rem 0;
    }
    
    .ecosistema-top-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ecosistema-cards-row {
        grid-template-columns: 1fr;
    }
    
    .ecosistema-card {
        min-height: auto;
    }
    
    .ecosistema-card-flipper {
        min-height: auto;
    }
    
    .ecosistema-card-flip-inner {
        min-height: auto;
    }
    
    .ecosistema-card-discover-btn {
        margin-top: 1.5rem;
    }
    
    .ecosistema-big-content {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .ecosistema-decorative-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }
}

/* ============================================
   SEZIONE CARATTERISTICHE TRASVERSALI
   ============================================ */

.text-genius-caratteristiche-trasversali-section {
    background: #f4f4f6;
    padding: 6rem 0;
    position: relative;
    overflow: visible;
}

/* Griglia decorativa in alto a destra */
.caratteristiche-decorative-grid {
    position: absolute;
    top: 6%;
    right: 4%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.8rem;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.caratteristiche-grid-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 100%;
    animation: gradientShift 6.5s ease-in-out infinite;
    border-radius: 50%;
}

.caratteristiche-content {
    width: 85%;
    margin: 0;
    margin-left: 0;
    position: relative;
    z-index: 2;
    background: #e0e0e0;
    border-radius: 0 24px 24px 0;
    padding: 4rem 3.5rem;
    padding-left: 13.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.caratteristiche-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    text-align: left;
    color: #6b21a8;
    margin-bottom: 3rem;
}

.caratteristiche-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.caratteristiche-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.caratteristiche-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    display: block;
    text-align: left;
}

.caratteristiche-item-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
    text-align: left;
}

/* Responsive */
@media (max-width: 1023px) {
    .text-genius-caratteristiche-trasversali-section {
        padding: 4rem 0;
    }
    
    .caratteristiche-content {
        padding: 3rem 2rem;
        padding-left: 2rem;
        width: 90%;
        margin: 0;
        border-radius: 0 20px 20px 0;
    }
    
    .caratteristiche-decorative-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }
}

@media (max-width: 767px) {
    .caratteristiche-content {
        padding: 2.5rem 1.5rem;
        padding-left: 1.5rem;
        width: 95%;
        margin: 0;
        border-radius: 0 16px 16px 0;
    }
    
    .caratteristiche-decorative-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .caratteristiche-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .caratteristiche-list {
        gap: 1.5rem;
    }
    
    .caratteristiche-item-title {
        font-size: 1rem;
    }
    
    .caratteristiche-item-text {
        font-size: 0.95rem;
    }
}

/* ============================================
   SEZIONE INNOVAZIONE GIURIDICA
   ============================================ */

/* ============================================
   SEZIONE COMPRENSIONE PROFONDA
   ============================================ */

.text-genius-comprensione-profonda-section {
    background: #0a0a1a;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.comprensione-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* Colonna Sinistra */
.comprensione-left {
    color: #ffffff;
    font-weight: 300!important;
}

.comprensione-title {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.comprensione-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 2.5rem;
}

.comprensione-intro strong {
    color: #ffffff;
    font-weight: 700;
}

.comprensione-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comprensione-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comprensione-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
}

.comprensione-feature-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #d1d5db;
}

/* Colonna Destra - Card Stack */
.comprensione-right {
    position: relative;
}

.comprensione-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.comprensione-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.75rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    border-top: 4px solid transparent;
}

.comprensione-card:first-child {
    margin-top: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.comprensione-card:last-child {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.comprensione-card:first-child::before {
    display: none;
}

.comprensione-card:last-child::after {
    display: none;
}

/* Bordo superiore esteso */
.comprensione-card-magenta {
    border-top-color: #ec4899;
    border-top-width: 4px;
}

.comprensione-card-magenta::before {
    background: #ec4899;
}

.comprensione-card-teal {
    border-top-color: #14b8a6;
}

.comprensione-card-purple {
    border-top-color: #8b5cf6;
}
/* Estensione bordo oltre la card */
.comprensione-card-magenta::before,
.comprensione-card-teal::before,
.comprensione-card-purple::before {
    width: 120%;
    max-width: 140%;
}

.comprensione-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.comprensione-card-text {
    font-size: 0.98rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 1023px) {
    .text-genius-comprensione-profonda-section {
        padding: 5rem 0;
    }
    
    .comprensione-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .comprensione-cards-stack {
        gap: 1.5rem;
    }
    
    .comprensione-card {
        margin-top: 0;
        border-radius: 20px;
    }
    
    .comprensione-card::before,
    .comprensione-card::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .comprensione-title {
        font-size: 2rem;
    }
    
    .comprensione-intro {
        font-size: 1rem;
    }
    
    .comprensione-feature-title {
        font-size: 0.95rem;
    }
    
    .comprensione-feature-text {
        font-size: 0.9rem;
    }
    
    .comprensione-card {
        padding: 1.5rem 1.25rem;
    }
}

/* ============================================
   INNOVAZIONE SECTION
   ============================================ */

.text-genius-innovazione-section {
    background: #0a0a1a;
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

.innovazione-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 10rem 0;
}

.innovazione-left {
    color: #ffffff;
}

.innovazione-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
}

.innovazione-title {
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.innovazione-title-top {
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.innovazione-title-bottom {
    font-weight: 800;
    text-transform: none;
}

.innovazione-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5f5;
    margin-bottom: 2rem;
}

.innovazione-description strong {
    color: #ffffff;
    font-weight: 700;
}

.innovazione-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff4fb3 0%, #c01879 100%);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.innovazione-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(236, 72, 153, 0.45);
}

.innovazione-right {
    display: flex;
    justify-content: flex-start;
}

.innovazione-image-wrapper {
    width: 100%;
    max-width: 520px;
    border-radius: 24px;
    overflow: hidden;
}

.innovazione-image {
    width: 100%;
    display: block;
    height: auto;
    transform: scaleX(-1);
}

.innovazione-decorative-grid {
    position: absolute;
    top: 10%;
    right: 8%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

.innovazione-grid-dot {
    width: 6px;
    height: 6px;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 100%;
    animation: gradientShift 6s ease-in-out infinite;
    border-radius: 50%;
}

@media (max-width: 1023px) {
    .text-genius-innovazione-section {
        padding: 5rem 0;
    }
    
    .innovazione-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .innovazione-right {
        justify-content: center;
    }
    
    .innovazione-logo {
        width: 100px;
    }
    
    .innovazione-title {
        font-size: 2rem;
    }
    
    .innovazione-decorative-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
        top: 6%;
        right: 6%;
    }
}

/* ============================================
   SEZIONE ISTITUZIONALE (stessa estetica HERO)
   ============================================ */

.text-genius-istituzionali-section {
    text-align: center;
}

.text-genius-istituzionali-section .text-genius-hero-video-wrapper {
    height: 50%;
}

.istituzionali-content {
    margin-top: 45vh;
}

.istituzionali-title {
    font-size: clamp(1.6rem, 3.4vw, 2rem);
    font-weight: 700;
    color: #1f1f2e;
    margin-bottom: 2rem;
}

.istituzionali-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.istituzionali-logos img {
    height: 34px;
    width: auto;
    opacity: 0.9;
}

.istituzionali-note {
    font-size: 0.85rem;
    color: #6b7280;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 1023px) {
    .istituzionali-content {
        margin-top: 40vh;
    }
    
    .istituzionali-title {
        font-size: 1.25rem;
        padding: 0 1.5rem;
    }
    
    .istituzionali-logos img {
        height: 28px;
    }
}

/* ============================================
   INFO TOOLTIP
   ============================================ */

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    vertical-align: middle;
}

.info-tooltip-trigger {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 1px solid #0a0a1a;
    background: #ffffff;
    color: #0a0a1a;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.info-tooltip-balloon {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, -8px);
    background: #0a0a1a;
    color: #ffffff;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
    width: max-content;
    max-width: 340px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    z-index: 10;
}

.info-tooltip-balloon::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #0a0a1a transparent transparent transparent;
}

.info-tooltip:hover .info-tooltip-balloon,
.info-tooltip:focus-within .info-tooltip-balloon {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (max-width: 768px) {
    .info-tooltip-balloon {
        max-width: 260px;
        left: auto;
        right: 0;
        transform: translate(0, -8px);
    }

    .info-tooltip:hover .info-tooltip-balloon,
    .info-tooltip:focus-within .info-tooltip-balloon {
        transform: translate(0, 0);
    }
}

/* ============================================
   LIQUID GLASS (APPLE MODE) - TEXT GENIUS
   ============================================ */

.liquid-glass-active .trasparenza-card,
.liquid-glass-active .ecosistema-card,
.liquid-glass-active .ecosistema-big-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.liquid-glass-active .trasparenza-card {
    border-color: rgba(255, 255, 255, 0.35);
}

.liquid-glass-active .basso-rischio-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
}
