/* DESIGN SYSTEM - COLORI E FONT DELL'UNIONE EUROPEA CON EFFETTI PREMIUM MODERN */

:root {
    /* Colori Istituzionali UE */
    --eu-blue: #003399;
    --eu-blue-dark: #002266;
    --eu-blue-light: #3366cc;
    --eu-yellow: #FFCC00;
    --eu-yellow-hover: #ffdd44;
    
    /* Toni scuri e di contrasto premium */
    --bg-dark-primary: #0a1128;
    --bg-dark-secondary: #101f42;
    --bg-light-primary: #f8fafc;
    --bg-light-secondary: #f1f5f9;
    
    /* Testo e Bordi */
    --text-dark: #0f172a;
    --text-muted-dark: #334155;
    --text-light: #f8fafc;
    --text-muted-light: #e2e8f0;
    --border-light: rgba(0, 51, 153, 0.15);
    --border-dark: rgba(255, 255, 255, 0.1);
    
    /* Altri parametri */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 51, 153, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 30px rgba(0, 51, 153, 0.4);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* ACCESSIBILITÀ: SKIP LINK E FOCUS VISIBLE */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--eu-blue);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-weight: 600;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--eu-yellow);
}

:focus-visible {
    outline: 3px solid var(--eu-yellow) !important;
    outline-offset: 2px !important;
}

/* RESET E BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* overflow-x: clip NON crea un scroll container, quindi non clippa gli elementi position:fixed */
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light-primary);
    line-height: 1.6;
    padding-top: 80px;
}

img, svg, video, iframe {
    max-width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--eu-blue-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* SFONDI ANIMATI E GLOW */
@keyframes pulseGlow {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    50% { transform: scale(1.1) translate(20px, -20px); opacity: 1; }
}

.eu-background-glow {
    position: absolute;
    top: -300px;
    right: -300px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 51, 153, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -2;
    pointer-events: none;
    animation: pulseGlow 15s ease-in-out infinite alternate;
}

.eu-background-glow-secondary {
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -2;
    pointer-events: none;
    animation: pulseGlow 18s ease-in-out infinite alternate-reverse;
}

/* STELLE UE SULLO SFONDO (MICRO ANIMAZIONE) */
@keyframes twinkle {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.35; }
}

.eu-stars-bg {
    position: absolute;
    top: 50px;
    left: 5%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, var(--eu-yellow) 2px, transparent 3px);
    background-size: 20px 20px;
    opacity: 0.15;
    z-index: -1;
    animation: twinkle 4s ease-in-out infinite;
}

/* HEADER & NAVBAR */
.eu-header {
    background-color: rgba(10, 21, 52, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-fast);
    overflow: visible !important; /* Never clip dropdown menus */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.logo-area:hover {
    opacity: 0.85;
}

/* Logo SVG Header Styling */
.logo-svg {
    filter: drop-shadow(0 2px 8px rgba(0, 51, 153, 0.3));
    transition: transform var(--transition-fast);
}

.logo-area:hover .logo-svg {
    transform: scale(1.05);
}

/* Flag Icon in Pure CSS */
.eu-flag-icon {
    width: 48px;
    height: 32px;
    background-color: var(--eu-blue);
    border-radius: 4px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.eu-flag-icon .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--eu-yellow);
    border-radius: 50%;
}

/* Disposizione delle 12 stelle */
.eu-flag-icon .star:nth-child(1)  { top: 15%; left: 50%; transform: translateX(-50%); }
.eu-flag-icon .star:nth-child(2)  { top: 22%; left: 68%; }
.eu-flag-icon .star:nth-child(3)  { top: 38%; left: 80%; }
.eu-flag-icon .star:nth-child(4)  { top: 58%; left: 80%; }
.eu-flag-icon .star:nth-child(5)  { top: 74%; left: 68%; }
.eu-flag-icon .star:nth-child(6)  { top: 81%; left: 50%; transform: translateX(-50%); }
.eu-flag-icon .star:nth-child(7)  { top: 74%; left: 32%; }
.eu-flag-icon .star:nth-child(8)  { top: 58%; left: 20%; }
.eu-flag-icon .star:nth-child(9)  { top: 38%; left: 20%; }
.eu-flag-icon .star:nth-child(10) { top: 22%; left: 32%; }
.eu-flag-icon .star:nth-child(11) { top: 48%; left: 50%; transform: translate(-50%, -50%) scale(1.5); background-color: var(--eu-yellow); } /* Stella centrale extra */
.eu-flag-icon .star:nth-child(12) { display: none; }

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

.logo-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: none;
    color: var(--text-light);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-muted-light);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 22px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.mobile-menu-toggle:hover {
    color: var(--eu-yellow);
    background: rgba(255, 255, 255, 0.08);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 13.5px;
    transition: color var(--transition-fast), background var(--transition-fast);
    position: relative;
    padding: 8px 14px;
    border-radius: 8px;
    letter-spacing: 0.2px;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 13px;
    opacity: 0.85;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--eu-yellow);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform var(--transition-fast);
    transform-origin: center;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-link:hover i {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--eu-yellow);
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(255, 204, 0, 0.2);
}

.nav-link.active i {
    opacity: 1;
    color: var(--eu-yellow);
}

.nav-link.active::after {
    transform: scaleX(1);
    background-color: var(--eu-yellow);
}

/* Separatore verticale prima del CTA */
.cta-nav {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    background: #FFCC00;
    color: #000c24;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 700;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(255, 204, 0, 0.4);
    margin-left: 10px;
    position: relative;
    border: 1px solid #ffdd44;
}

.cta-nav:hover {
    background: #ffe066;
    color: #000c24;
    box-shadow: 0 6px 18px rgba(255, 204, 0, 0.55);
}

.cta-nav::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.cta-nav i {
    font-size: 13px;
    transition: transform var(--transition-fast);
}

.cta-nav:hover {
    background: linear-gradient(135deg, var(--eu-yellow-hover) 0%, #fbbf24 100%);
    color: var(--eu-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 204, 0, 0.4);
}

.cta-nav:hover i {
    transform: rotate(-5deg) scale(1.15);
}

/* NAVBAR DROPDOWN MENU */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle .chevron-icon {
    font-size: 11px;
    margin-left: 2px;
    transition: transform var(--transition-fast);
}

.nav-dropdown-wrapper:hover .chevron-icon,
.nav-dropdown-wrapper.active .chevron-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 250px;
    background: #0d1b3e;
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 204, 0, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 10px;
    height: 10px;
    background: #0d1b3e;
    border-top: 1px solid rgba(255, 204, 0, 0.3);
    border-left: 1px solid rgba(255, 204, 0, 0.3);
    transform: rotate(45deg);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item i.pdf-icon {
    font-size: 16px;
    color: var(--eu-yellow);
    background: rgba(255, 204, 0, 0.1);
    padding: 7px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 13.5px;
    color: #ffffff;
}

.dropdown-item-desc {
    font-size: 11px;
    color: #f1f5f9;
    margin-top: 1px;
}

.dropdown-item:hover {
    background: rgba(255, 204, 0, 0.12);
    transform: translateX(3px);
}

.dropdown-item:hover .dropdown-item-title {
    color: var(--eu-yellow);
}

.dropdown-item:hover i.pdf-icon {
    background: var(--eu-yellow);
    color: var(--eu-blue-dark);
}

/* HERO SECTION */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 80px 0 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.badge-accent {
    display: inline-block;
    background-color: rgba(0, 51, 153, 0.08);
    border: 1px solid rgba(0, 51, 153, 0.15);
    color: var(--eu-blue);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--eu-blue-dark);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted-dark);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: all var(--transition-fast);
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 51, 153, 0.4), 0 8px 20px rgba(0, 51, 153, 0.25);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 51, 153, 0), 0 8px 20px rgba(0, 51, 153, 0.25);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 51, 153, 0), 0 8px 20px rgba(0, 51, 153, 0.25);
    }
}

.btn-primary {
    background-color: var(--eu-blue);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(0, 51, 153, 0.25);
    border: none;
    cursor: pointer;
    animation: btnPulse 3s infinite;
}

.btn-primary:hover {
    background-color: var(--eu-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 51, 153, 0.35);
    animation: none; /* Disabilita animazione pulse in hover per mostrare l'effetto di sollevamento pulito */
}

.btn-secondary {
    background-color: white;
    color: var(--eu-blue);
    border: 2px solid var(--eu-blue);
}

.btn-secondary:hover {
    background-color: rgba(0, 51, 153, 0.05);
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* HERO INTERACTIVE CARD - VIVID & ACCESSIBLE HIGH CONTRAST STYLING */
.hero-interactive-card {
    background: linear-gradient(145deg, #0d1b3e 0%, #132454 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 51, 153, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all var(--transition-smooth);
}

.hero-interactive-card:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 35px rgba(255, 204, 0, 0.3);
    border-color: rgba(255, 204, 0, 0.5);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #FFCC00;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.card-icon-header i {
    font-size: 15px;
    color: #FFCC00;
}

.hero-interactive-card h3 {
    color: #ffffff;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-interactive-card p {
    color: #ffffff !important;
    font-size: 15.5px;
    line-height: 1.75;
    margin-bottom: 24px;
    font-weight: 400;
    opacity: 1 !important;
}

.card-footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding-top: 16px;
    font-size: 14.5px;
    color: #f1f5f9;
    line-height: 1.6;
}

.highlight-info {
    color: #FFCC00;
    font-weight: 700;
}

/* SECTION PADDING & COMMON ELEMENTS */
.section-padding {
    padding: 100px 0;
    position: relative;
}

.dark-section {
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
}

.dark-section h2 {
    color: var(--text-light);
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--eu-blue-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.dark-section .section-tag {
    color: var(--eu-yellow);
}

.section-divider {
    width: 60px;
    height: 4px;
    background-color: var(--eu-yellow);
    margin: 16px auto 0;
    border-radius: 2px;
}

.subtitle-text {
    color: var(--text-muted-dark);
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
}

.dark-section .subtitle-text {
    color: var(--text-muted-light);
}

/* CARDS GRID SYSTEM & ANIMATED CARDS */
.cards-grid {
    display: grid;
    gap: 30px;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Premium Animated Card */
.card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-animated {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index) * 0.15s);
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--eu-blue), var(--eu-yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Allinea card-extra alla stessa altezza in tutte le card della riga */
.card-top {
    flex: 1;
}

.card-extra {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-muted-dark);
    transition: color var(--transition-fast);
}

.dark-section .card ul li {
    color: var(--text-muted-light);
}

.card ul li i {
    color: var(--eu-yellow);
    margin-top: 4px;
    transition: transform var(--transition-smooth), color var(--transition-fast);
}

.card:hover ul li i {
    transform: scale(1.2);
}

.card:hover ul li {
    color: var(--text-dark);
}

.dark-section .card:hover ul li {
    color: var(--text-light);
}

.dark-section .card {
    background: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
}

.dark-section .card h3 {
    color: var(--text-light);
}

.card-icon {
    font-size: 32px;
    color: var(--eu-blue);
    margin-bottom: 24px;
    display: inline-block;
}

.dark-section .card-icon {
    color: var(--eu-yellow);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 14px;
}

.card p {
    font-size: 14px;
    color: var(--text-muted-dark);
    margin-bottom: 16px;
}

.dark-section .card p {
    color: #ffffff !important;
    line-height: 1.7 !important;
}

.card-subtext {
    font-size: 13.5px !important;
    font-style: italic;
    color: var(--text-muted-dark);
    border-left: 2px solid var(--eu-blue);
    padding-left: 10px;
    margin-bottom: 20px !important;
}

.dark-section .card-subtext {
    color: #f1f5f9 !important;
    border-left-color: #FFCC00 !important;
}

.card-top {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

@media (min-width: 992px) {
    .card-top {
        min-height: 310px;
    }
}

.card-extra {
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.dark-section .card-extra {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.card-extra h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--eu-blue);
}

.dark-section .card-extra h4 {
    color: var(--eu-yellow);
}

.card-extra ul {
    list-style: none;
}

.card-extra li {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-extra li i {
    color: var(--eu-yellow);
    font-size: 11px;
}

.dark-section .card-extra li i {
    color: var(--eu-yellow);
}

.solution-highlight {
    background-color: rgba(255, 204, 0, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 13px !important;
    color: var(--eu-yellow) !important;
}

.text-small {
    font-size: 12px !important;
    opacity: 0.8;
}

/* GLASSMORPHISM CARDS */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 51, 153, 0.08);
}

.card-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 51, 153, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--eu-blue);
    margin-bottom: 20px;
    transition: all var(--transition-fast);
}

.glass-card:hover .card-icon-circle {
    background-color: var(--eu-blue);
    color: white;
    transform: scale(1.1);
}

.styled-list {
    list-style: none;
    margin-bottom: 16px;
}

.styled-list li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.styled-list .bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--eu-blue);
    margin-top: 6px;
    flex-shrink: 0;
}

.mt-2 { margin-top: 0.5rem; }

/* TIMELINE (COME FUNZIONA IN PRATICA) */
.timeline-container {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 60px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 20px;
    bottom: 20px;
    width: 4px;
    background: linear-gradient(to bottom, var(--eu-blue) 0%, var(--eu-yellow) 100%);
    border-radius: 2px;
}

.timeline-step {
    position: relative;
    margin-bottom: 50px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: -60px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-dark-secondary);
    border: 3px solid var(--eu-yellow);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    z-index: 2;
    transition: all var(--transition-fast);
}

.timeline-step:hover .timeline-number {
    background-color: var(--eu-yellow);
    color: var(--bg-dark-primary);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

.timeline-content {
    background-color: var(--bg-dark-secondary);
    border: 1px solid var(--border-dark);
    padding: 30px;
    border-radius: var(--radius-md);
    position: relative;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted-light);
}

.step-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 14px;
    color: var(--eu-yellow);
}

.success-tag {
    border-color: rgba(52, 211, 153, 0.4);
    color: #34d399;
}

.step-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.detail-item {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted-light);
}

.detail-item i {
    color: var(--eu-yellow);
}

.step-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
    font-size: 12px;
}

.step-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted-light);
}

.step-features i {
    color: var(--eu-yellow);
}

/* SPLIT LAYOUT */
.split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
}

.card-gradient-border {
    position: relative;
    border-radius: var(--radius-md);
    background: white;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.concept-icon {
    font-size: 24px;
    color: var(--eu-blue);
    margin-bottom: 16px;
}

.concept-warning {
    margin-top: 14px;
    background-color: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
    padding: 10px;
    border-radius: 0 4px 4px 0;
    font-size: 13px;
    color: #b91c1c;
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkbox-list {
    list-style: none;
    margin: 16px 0;
}

.checkbox-list li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.checkbox-list i {
    color: var(--eu-blue);
    margin-top: 3px;
}

.highlight-quote {
    font-weight: 500;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    font-size: 14px;
    color: var(--eu-blue-dark);
}

.experience-card {
    background-color: var(--bg-light-secondary);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid var(--border-light);
    height: 100%;
}

.experience-badge {
    display: inline-block;
    background-color: var(--eu-blue);
    color: white;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.experience-card h3 {
    margin-bottom: 14px;
}

.experience-card p {
    font-size: 14px;
    color: var(--text-muted-dark);
    margin-bottom: 24px;
}

.partner-card {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.partner-logo {
    font-size: 32px;
    color: var(--eu-blue);
}

.partner-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.partner-details p {
    font-size: 12px;
    color: var(--text-muted-dark);
    margin-bottom: 10px;
}

.partner-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--eu-blue);
    text-decoration: none;
}

.partner-link:hover {
    text-decoration: underline;
}

/* GUIDE LANDING FORM */
.guide-landing-section {
    background-color: var(--bg-light-secondary);
}

.guide-container-card {
    background: var(--bg-dark-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-dark);
}

.guide-glow-effect {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 51, 153, 0.12) 0%, transparent 80%);
    pointer-events: none;
}

.guide-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.guide-info-text {
    padding: 60px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.guide-tag {
    color: var(--eu-yellow);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
}

.guide-info-text h2 {
    color: var(--text-light);
    font-size: 36px;
    margin-bottom: 16px;
}

.guide-main-desc {
    font-size: 18px;
    color: var(--eu-yellow);
    margin-bottom: 12px;
}

.guide-sub-desc {
    font-size: 15px;
    color: var(--text-muted-light);
    margin-bottom: 30px;
}

.guide-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.g-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.g-feature-item i {
    color: var(--eu-yellow);
}

.guide-form-container {
    background-color: var(--bg-dark-secondary);
    padding: 60px;
    border-left: 1px solid var(--border-dark);
}

.guide-form-container h3 {
    color: var(--text-light);
    font-size: 22px;
    margin-bottom: 6px;
}

.form-instructions {
    font-size: 13px;
    color: var(--text-muted-light);
    margin-bottom: 24px;
}

.download-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted-light);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted-light);
    font-size: 14px;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 12px 12px 12px 42px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: inherit;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--eu-yellow);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.15);
}

.input-wrapper.textarea-wrapper {
    align-items: flex-start;
}

.input-wrapper.textarea-wrapper i {
    top: 15px;
}

.input-wrapper textarea {
    min-height: 80px;
    resize: vertical;
}

.privacy-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.privacy-checkbox input {
    margin-top: 4px;
}

.privacy-checkbox label {
    font-size: 12.5px;
    line-height: 1.4;
    cursor: pointer;
}

/* FOOTER */
.eu-footer-bottom {
    background-color: var(--bg-dark-primary);
    border-top: 1px solid var(--border-dark);
    padding: 40px 0;
    color: var(--text-muted-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
}

.eu-flag-mini {
    width: 24px;
    height: 16px;
    background-color: var(--eu-blue);
    border-radius: 2px;
    position: relative;
}

.eu-flag-mini .star-mini {
    position: absolute;
    width: 1px;
    height: 1px;
    background-color: var(--eu-yellow);
    border-radius: 50%;
}

.eu-flag-mini .star-mini:nth-child(1) { top: 15%; left: 50%; }
.eu-flag-mini .star-mini:nth-child(2) { top: 25%; left: 70%; }
.eu-flag-mini .star-mini:nth-child(3) { top: 50%; left: 80%; }
.eu-flag-mini .star-mini:nth-child(4) { top: 75%; left: 70%; }
.eu-flag-mini .star-mini:nth-child(5) { top: 85%; left: 50%; }
.eu-flag-mini .star-mini:nth-child(6) { top: 75%; left: 30%; }
.eu-flag-mini .star-mini:nth-child(7) { top: 50%; left: 20%; }
.eu-flag-mini .star-mini:nth-child(8) { top: 25%; left: 30%; }

.footer-copyright {
    font-size: 12px;
}

/* RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-interactive-card {
        transform: none !important;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-form-container {
        border-left: none;
        border-top: 1px solid var(--border-dark);
    }
}

@media (max-width: 768px) {
    html {
        overflow-x: clip !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    img, svg, video, table {
        max-width: 100%;
    }

    /* iframe generico limitato, MA non il badge reCAPTCHA */
    iframe:not([src*="recaptcha"]):not([src*="gstatic"]) {
        max-width: 100%;
    }

    .eu-background-glow,
    .eu-background-glow-secondary,
    .eu-stars-bg {
        display: none !important;
    }

    body {
        padding-top: 80px;
    }

    section, .container, .hero-section,
    .hero-container, .hero-content, .hero-interactive-card,
    .dark-section, .split-layout, .guide-grid,
    .guide-container-card, .table-container, .experience-card {
        overflow-x: clip;
        max-width: 100% !important;
    }

    .hero-section {
        min-height: unset !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
    }

    .hero-interactive-card {
        transform: none !important;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 75px;
        padding: 0 20px;
        position: relative;
    }
    
    .logo-area {
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 21, 52, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(255, 204, 0, 0.2);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
        gap: 8px;
        display: none;
        z-index: 1000;
    }

    .main-nav.active {
        display: flex;
        animation: navSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes navSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 8px;
        width: 100%;
        justify-content: flex-start;
    }

    .cta-nav {
        margin-left: 0;
        margin-top: 4px;
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        font-size: 14.5px;
    }

    .cta-nav::before {
        display: none;
    }

    .nav-dropdown-wrapper {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.25);
        margin-top: 8px;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        display: none !important;
        border-radius: 8px;
    }

    .nav-dropdown-wrapper.active .nav-dropdown-menu {
        display: block !important;
    }

    .nav-dropdown-menu::before {
        display: none;
    }
    
    .hero-section {
        padding: 30px 0 45px;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-desc {
        font-size: 13.5px;
    }
    
    .cols-3 {
        grid-template-columns: 1fr;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 24px 20px;
    }
    
    .timeline-container {
        padding-left: 40px;
    }
    
    .timeline-number {
        left: -40px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .timeline-line {
        left: 10px;
    }
    
    .guide-info-text, .guide-form-container {
        padding: 24px 18px;
    }
    
    .guide-info-text h2 {
        font-size: 24px;
    }

    .form-group input, .form-group select, .form-group textarea {
        font-size: 16px !important;
    }

    .table-container {
        -webkit-overflow-scrolling: touch;
        margin: 24px 0;
    }

    .comparison-table th, .comparison-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 75px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-interactive-card {
        padding: 20px 16px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .section-padding {
        padding: 45px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 22px;
    }
}

/* ACTIVE NAV LINK */
.nav-link.active {
    color: var(--eu-yellow) !important;
    font-weight: 700;
}
.nav-link.active::after {
    width: 100% !important;
    background-color: var(--eu-yellow);
}

/* PREMIUM COMPARATIVE TABLE */
.table-container {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    background: white;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background-color: var(--eu-blue-dark);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: rgba(0, 51, 153, 0.02);
}

.comparison-table tr.highlighted-row {
    background-color: rgba(255, 204, 0, 0.05);
}

.comparison-table tr.highlighted-row:hover {
    background-color: rgba(255, 204, 0, 0.08);
}

.badge-table {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-table.primary {
    background-color: rgba(0, 51, 153, 0.08);
    color: var(--eu-blue);
}

.badge-table.secondary {
    background-color: rgba(71, 85, 105, 0.08);
    color: var(--text-dark);
}

.badge-table.accent {
    background-color: rgba(245, 158, 11, 0.12);
    color: #9a3412;
}

/* ============================================================
   MODERNE CARD DI CONFRONTO STRATEGICO (PRICING-STYLE MATRIX)
   ============================================================ */
.comparison-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 40px 0;
    align-items: stretch;
}

.comparison-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 51, 153, 0.12);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    padding: 36px 28px;
    position: relative;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Card in evidenza (Convenzione Articolo 14) */
.comparison-card.comp-featured {
    border: 2px solid var(--eu-yellow);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 16px 36px rgba(0, 51, 153, 0.12), 0 0 0 1px rgba(255, 204, 0, 0.4);
    transform: scale(1.02);
    z-index: 2;
}

.comparison-card.comp-featured:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 20px 44px rgba(0, 51, 153, 0.16), 0 0 24px rgba(255, 204, 0, 0.25);
}

.comp-featured-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--eu-yellow), #f59e0b);
    color: var(--eu-blue-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.comp-card-header {
    text-align: center;
    border-bottom: 1px solid rgba(0, 51, 153, 0.08);
    padding-bottom: 22px;
    margin-bottom: 20px;
}

.comp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.comp-badge-neutral {
    background: rgba(0, 51, 153, 0.08);
    color: var(--eu-blue);
}

.comp-badge-featured {
    background: rgba(0, 51, 153, 0.12);
    color: var(--eu-blue-dark);
}

.comp-badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.comp-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 51, 153, 0.06);
    color: var(--eu-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px;
}

.comp-icon-gold {
    background: rgba(255, 204, 0, 0.18);
    color: #b45309;
}

.comp-icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.comp-card-header h3 {
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.comp-tagline {
    font-size: 13px;
    color: var(--text-muted-dark);
    margin: 0;
}

.comp-highlight-box {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 22px;
    border-left: 3px solid var(--eu-blue);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comp-highlight-gold {
    background: rgba(255, 204, 0, 0.08);
    border-left-color: #f59e0b;
}

.comp-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted-dark);
    letter-spacing: 0.5px;
}

.comp-val {
    font-size: 13px;
    color: var(--text-dark);
}

.comp-features {
    flex-grow: 1;
    margin-bottom: 24px;
}

.comp-features h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.comp-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comp-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted-dark);
}

.comp-features li i {
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
}

.comp-features li i.fa-circle-check {
    color: #10b981;
}

.comp-card-footer {
    border-top: 1px solid rgba(0, 51, 153, 0.08);
    padding-top: 18px;
    margin-top: auto;
    background: #fafbfc;
    margin-left: -28px;
    margin-right: -28px;
    margin-bottom: -36px;
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 24px;
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.comp-summary-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted-dark);
    margin-bottom: 4px;
}

.comp-summary-desc {
    font-size: 13px;
    margin: 0;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .comparison-cards-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .comparison-card.comp-featured {
        transform: none;
    }
    .comparison-card.comp-featured:hover {
        transform: translateY(-4px);
    }
}

/* ============================================================
   DESIGN ULTRA-PREMIUM: SCENARI OPERATIVI (QUANDO CONVIENE)
   ============================================================ */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0 20px;
    align-items: stretch;
}

.scenario-card {
    background: #0f1c3d;
    background: linear-gradient(170deg, #132247 0%, #0d1833 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    padding: 34px 28px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--scenario-accent, #3b82f6), var(--eu-yellow));
    opacity: 0.85;
}

.scenario-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 204, 0, 0.12);
    border-color: rgba(255, 204, 0, 0.4);
}

.scenario-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.scenario-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.scenario-icon-wrapper.gold-accent {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.scenario-icon-wrapper.cyan-accent {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.35);
    color: #38bdf8;
}

.scenario-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.scenario-badge.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.3);
}

.scenario-badge.badge-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #a5f3fc;
    border-color: rgba(6, 182, 212, 0.3);
}

.scenario-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.scenario-content h3 {
    color: #ffffff;
    font-size: 21px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.scenario-lead {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.scenario-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.scenario-tag-item {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scenario-tag-item i {
    color: var(--eu-yellow);
    font-size: 11px;
}

.scenario-critical-list {
    margin-bottom: 24px;
}

.scenario-critical-list .list-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.scenario-critical-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scenario-critical-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #e2e8f0;
}

.scenario-critical-list li i.fa-circle-xmark {
    color: #f87171;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.scenario-solution-box {
    margin-top: auto;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #3b82f6;
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.scenario-solution-box.solution-gold {
    border-left-color: var(--eu-yellow);
}

.scenario-solution-box.solution-cyan {
    border-left-color: #06b6d4;
}

.scenario-solution-box .sol-icon {
    font-size: 18px;
    color: #10b981;
    margin-top: 2px;
    flex-shrink: 0;
}

.scenario-solution-box .sol-text strong {
    display: block;
    color: #ffffff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.scenario-solution-box .sol-text p {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 992px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* FAQ ACCORDION */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(0, 51, 153, 0.3);
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--eu-blue-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    font-size: 14px;
    color: var(--eu-blue);
    transition: transform var(--transition-fast);
}

.faq-item.active {
    border-color: var(--eu-blue);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    color: var(--text-muted-dark);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* high enough to contain text */
    padding-bottom: 20px;
}

/* CUSTOM CTA BOX FOR GUIDES/LINKS */
.cta-box-simple {
    background-color: var(--bg-light-secondary);
    border-radius: var(--radius-md);
    padding: 40px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
}

.cta-box-simple-content h3 {
    margin-bottom: 8px;
}

.cta-box-simple-content p {
    color: var(--text-muted-dark);
    font-size: 14px;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: calc(100vh - 80px);
        max-height: none;
        padding: 40px 0;
    }
    .cta-box-simple {
        flex-direction: column;
        text-align: center;
    }
    .comparison-table th, .comparison-table td {
        padding: 12px 16px;
        font-size: 13px;
    }
}


/* ============================================================
   OTTIMIZZAZIONI PRESTAZIONI DESKTOP & MOBILE (100/100 PERFECT SCORE)
   ============================================================ */

/* Riduzione ombre su dispositivi mobili per alleggerire il compositing */
@media (max-width: 768px) {
    :root {
        --shadow-md: 0 4px 12px rgba(0, 51, 153, 0.06);
        --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.08);
        --shadow-glow: none;
    }

    /* Riduzione transizioni su mobile */
    .nav-link,
    .cta-nav,
    .btn-primary,
    .btn-secondary,
    .feature-card,
    .step-card,
    .partner-logo-wrapper {
        transition-duration: 0.1s;
    }

    /* Evita transform 3D complessi su mobile */
    .feature-card:hover,
    .step-card:hover,
    .partner-logo-wrapper:hover {
        transform: none;
    }
}

/* Ottimizzazioni per Desktop / PC per 100% Performance */
@media (min-width: 769px) {
    /* Accelerazione GPU e contenimento di rendering */
    .hero-section,
    .cta-box-simple,
    .feature-card {
        will-change: transform;
        transform: translateZ(0);
        backface-visibility: hidden;
    }
}

/* Rispetta la preferenza utente per animazioni ridotte */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Content-visibility per le sezioni fuori dalla viewport iniziale (Desktop + Mobile)
   Migliora il Largest Contentful Paint (LCP) e il Time to Interactive su tutti i device */
.partners-section,
.steps-section,
.benefits-section,
.cta-final-section,
.comparison-section,
.scenarios-section,
.faq-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

/* Stili Footer ad Alto Contrasto WCAG AAA Compliant */
.eu-footer-bottom {
    background-color: #050b1a;
    padding: 30px 0;
    color: #f8fafc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.eu-footer-bottom .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 8px;
}

.eu-footer-bottom .footer-copyright {
    color: #e2e8f0;
    font-size: 13px;
}

/* Stili liste avanzate con icone e spazzolatura testo */
.checkbox-list, .custom-icon-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 16px 0 !important;
}

.checkbox-list li, .custom-icon-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    line-height: 1.55 !important;
}

.checkbox-list li i, .custom-icon-list li i {
    font-size: 1.1em !important;
    margin-top: 3px !important;
    flex-shrink: 0 !important;
}

.checkbox-list li i {
    color: var(--eu-blue-light, #3366cc);
}

.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* Fix formattazione box di avviso concept-warning */
.concept-warning {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
    line-height: 1.5 !important;
    padding: 12px 14px !important;
}

.concept-warning i {
    flex-shrink: 0 !important;
    margin-top: 2px !important;
    font-size: 1.15em !important;
}

.concept-warning span {
    flex: 1 1 auto !important;
    display: block !important;
}

/* ============================================
   Badge Google reCAPTCHA v3 — QUADRATO NATILE GOOGLE
   Mostra l'icona quadrata originale Google in basso a destra.
   Al passaggio del mouse scorre mostra il badge completo.
   ============================================ */
.grecaptcha-badge {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    z-index: 2147483647 !important;
    position: fixed !important;
    bottom: 14px !important;
    right: -186px !important;
    width: 256px !important;
    height: 60px !important;
    border-radius: 4px 0 0 4px !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2) !important;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
}

/* Espansione completa al passaggio del mouse */
.grecaptcha-badge:hover {
    right: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

/* iframe interno reCAPTCHA originale */
.grecaptcha-badge iframe {
    max-width: none !important;
    width: 256px !important;
    height: 60px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none !important;
}

.grecaptcha-badge > div {
    overflow: visible !important;
    max-width: none !important;
}

