/* =========================================
   EPI Italia & CDA Consulting Landing Page
   Modern, Elegant, Institutional Design
   Colors: Navy Blue (#1a2744) & Gold (#c9a54d)
   ========================================= */
 /* 1. Elimina l'indicatore di scroll che copre i bottoni */
    .scroll-indicator {
        display: none !important;
    }
/* CSS Variables */
:root {
    --navy: #122245; /* Il blu esatto del logo OR.G.A */
    --navy-dark: #0a152d;
    --navy-light: #1b3266;
    --gold: #c9a54d;
    --gold-light: #d4b86a;
    --gold-dark: #a88b3d;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    line-height: 1.6;
    background-color: var(--);
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

p {
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.gold-text {
    color: var(--gold);
}

.gold-text-dark {
    color: var(--gold-dark);
}

.text-white {
    color: var(--white) !important;
}

.text-dark {
    color: var(--navy) !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--navy-dark);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 165, 77, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background: var(--navy-dark);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(201, 165, 77, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--gold);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy); /* Sfondo blu esatto del logo */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    /* Opacity ridotta per dare ancora più risalto al logo */
    opacity: 0.1;
}

.neural-network {
    position: absolute;
    inset: -5%;
    opacity: 0.15;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.5) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px;
    background-position: center;
    animation: networkPulse 20s ease-in-out infinite;
    transform-origin: center;
}

.neural-network::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(201, 165, 77, 0.1) 49%, rgba(201, 165, 77, 0.1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.05) 49%, rgba(255, 255, 255, 0.05) 51%, transparent 52%);
    background-size: 60px 60px;
}

@keyframes networkPulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.05); opacity: 0.2; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 100px 24px 40px;
}

/* Analysis Logo in Hero */
.analysis-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
    width: 100%;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    width: 100%;
}

.main-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Rimosso mix-blend-mode per mantenere i colori originali dell'immagine */
}

.logo-icon {
    width: 450px; /* Ingrandito come richiesto */
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 3s ease-in-out infinite;
    transform-origin: center;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    overflow: visible;
}

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

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    padding: 8px 20px;
    border: 1px solid rgba(201, 165, 77, 0.4);
    border-radius: 30px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero h2 {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 750px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-align: justify;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 50px;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* =========================================
   TEAM SECTION - White Background
   ========================================= */
.team-section {
    padding: 120px 0;
    background: var(--white);
}

.team-section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 24px;
    color: var(--navy);
}

.-dark {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-700);
}

/* Partner Network Diagram */
/* Partner Network - Modern & Premium Hub */
.partner-network {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 450px;
    margin: 80px auto 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central Hub Styles */
.partner-node.central {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    margin-top: -70px;
    margin-left: -70px;
    z-index: 20;
    opacity: 1;
    transform: none;
}

.partner-node.central .partner-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: var(--white);
    border: 4px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 45px rgba(201, 165, 77, 0.4);
    animation: hubPulse 4s ease-in-out infinite;
    overflow: hidden;
}

.partner-node.central .partner-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.partner-node.central .partner-info {
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    text-align: center;
    margin-top: 15px;
}

/* Surrounding Nodes Styles */
.partner-node:not(.central) {
    position: absolute;
    width: 75px;
    height: 75px;
    z-index: 10;
}

.partner-node:not(.central) .partner-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.partner-node:not(.central):hover .partner-image-wrapper {
    transform: scale(1.15);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(201, 165, 77, 0.2);
}

.partner-info-small {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 0px ;
    border-radius: 0px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    border: 1px solid var(--gray-100);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-node:not(.central):hover .partner-info-small {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
    background: transparent;
    box-shadow: none;
}

/* Positions - Compact & Balanced */
.partner-node.node-1 { top: 0%; left: 50%; margin-left: -37.5px; }
.partner-node.node-2 { top: 22%; left: 10%; }
.partner-node.node-3 { top: 22%; right: 10%; }
.partner-node.node-4 { bottom: 22%; left: 10%; }
.partner-node.node-5 { bottom: 22%; right: 10%; }
.partner-node.node-6 { bottom: 0%; left: 50%; margin-left: -37.5px; }

/* SVG Connections - Animated */
.connection-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.connection-lines line {
    stroke: var(--gold);
    stroke-width: 2;
    stroke-opacity: 0.25;
    stroke-dasharray: 6 4;
    animation: flowLine 3s linear infinite;
}

@keyframes flowLine {
    to { stroke-dashoffset: -20; }
}

@keyframes hubPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 15px 45px rgba(201, 165, 77, 0.4); }
    50% { transform: scale(1.03); box-shadow: 0 20px 60px rgba(201, 165, 77, 0.6); }
}

/* =========================================
   COME FUNZIONA SECTION - Dark Background
   ========================================= */
.come-funziona {
    padding: 60px 0; /* Ridotto da 120px per tirare tutto su */
    background: var(--gray-100);
}

.come-funziona.dark-section {
    background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 100%);
    padding-top: 40px; /* Ridotto ulteriormente lo spazio sopra il titolo h2 */
}

.come-funziona.dark-section h2 {
    color: var(--white);
    margin-bottom: 50px; /* Ridotto anche il margine per compattezza */
    font-size: clamp(1.75rem, 4vw, 2.25rem); /* Rimpicciolito come richiesto */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.funziona-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: rgba(255, 255, 255, 0.05); /* Sfondo semi-trasparente scuro */
    border-radius: 16px;
    box-shadow: none; /* Rimosso l'ombra chiara */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordo leggero per definizione */
}

.step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.step.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(15px);
}

.step.active .step-icon {
    background: var(--gold);
}

.step.active .step-icon svg {
    color: var(--navy);
}

.step.active h3 {
    color: var(--gold);
}

.step.active p {
    color: var(--white);
}

.step-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: rgba(201, 165, 77, 0.15); /* Icona con fondo oro trasparente di default */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 165, 77, 0.3);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.step-content h3 {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white); /* Titolo bianco di default */
}

.step-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7); /* Testo bianco opaco di default */
    line-height: 1.6;
}

/* Mockup Styles */
.mockup-container {
    display: flex;
    justify-content: center;
}

.mockup {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.mockup-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: var(--gray-200);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

/* Mockup Styles - Premium & Modern */
.mockup-container {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.mockup {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden; /* Manteniamo overflow hidden per i bordi arrotondati */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; /* Necessario per posizionare l'header in modo assoluto se necessario */
}

.mockup:hover {
    transform: translateY(-5px) rotateX(2deg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    background: #f1f3f6; /* Torniamo a un fondo solido e pulito */
    border-bottom: 1px solid var(--gray-200);
    position: relative; /* Ora è relativo, quindi non copre nulla */
    width: 100%;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.mockup-content {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--white); /* Fondo  per il mockup */
    padding-top: 0;
}

.mockup-screen {
    position: absolute;
    inset: 0;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--navy); /* Testo bianco di default nel mockup */
}

.mockup-screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Screen Test - Modern Question Style */
.test-header {
    font-size: 0.75rem;
    color: var(--gold); /* Oro per l'header */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.test-progress {
    width: 100%;
    margin-bottom: 32px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.test-progress span {
    font-size: 0.8rem;
    color: var(--gray-600);
    font-weight: 500;
}

.test-question p {
    font-size: 1.1rem;
    color: var(--navy-dark);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 30px;
}

.test-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.option {
    padding: 12px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    width: 100%;
    font-size: 0.85rem;
    color: var(--navy-dark) !important;;
    text-align: left;
    transition: all 0.2s ease;
    cursor: default;
}

.option.selected {
    background: rgba(201, 165, 77, 0.2);
    border-color: var(--gold);
    color: var(--navy-dark) !important;;
    font-weight: 600;
}

/* Screen Report - Elegant Visualization */
.report-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.report-main-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-dark);
}

.report-badge {
    background: var(--gold);
    color: var(--navy-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.radar-chart {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
}

.radar-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.radar-circle {
    stroke: var(--gray-400);
    stroke-width: 1;
}

.radar-grid-line {
    stroke: var(--gray-300);
    stroke-width: 1;
    stroke-dasharray: 2;
}

.radar-chart text {
    fill: var(--gray-700) !important;
}

.report-stats {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    width: 100%;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 6px;
    text-align: left;
}

.stat-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
}

/* Screen Certification */
.certification-seal {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.certification-seal svg {
    width: 100%;
    height: 100%;
}
.screen-certification {
    position: absolute;
    inset: 0;
    display: flex !important;
    flex-direction: column !important;
    /* Centra tutto verticalmente nello spazio disponibile */
    justify-content: center !important; 
    align-items: center !important;
    /* Creiamo "zone di rispetto" per ID (sopra) e Firma (sotto) */
    padding-top: 50px !important;
    padding-bottom: 70px !important;
    background: var(--white) !important;
}

/* Abbassiamo leggermente il sigillo (l'icona SVG) per riempire il centro */
.screen-certification .certification-seal {
    margin-top: 10px !important;
    margin-bottom: 15px !important;
}


/* ID Protocollo in alto (Grigio) */
.screen-certification::before {
    content: "ID PROTOCOLLO: ORG-2031-0892-IT";
    position: absolute;
    top: 15px !important;
    left: 15px !important;
    font-family: monospace;
    font-size: 9px;
    color: var(--gray-500);
}

/* Firma in basso (Oro) */
.screen-certification::after {
    content: "Validato da Intelligenza Artificiale e persone umane \A Sigillo Digitale Applicato";
    white-space: pre;
    position: absolute;
    bottom: 15px !important; /* La tiene ferma in basso */
    right: 15px !important;  /* La tiene ferma a destra */
    font-size: 8px;
    color: var(--gold);
    text-align: right;
    line-height: 1.2;
}

.cert-desc {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-bottom: 25px;
    line-height: 1.5;
}

.cert-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
   margin-bottom: 20px !important; /* Impedisce ai bollini di schiacciare la firma */
}


.cert-tags span {
    background: var(--gray-200);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;-dark
    color: var(--gold);
    border: 1px solid var(--gray-300);
}

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 3px;
}

/* =========================================
   AUTOREVOLEZZA SECTION
   ========================================= */
.autorevolezza {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.autorevolezza h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 24px;
}

. {
    max-width: 700px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-700);
}

.join-committee .section-intro {
    color: rgba(255, 255, 255, 0.95);
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.authority-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.authority-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.authority-icon svg {
    width: 100%;
    height: 100%;
}

/* =========================================
   PERCORSI SECTION
   ========================================= */
.percorsi {
    padding: 80px 0 40px;
    background: var(--white);
}

.percorsi h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-bottom: 40px;
}

.percorsi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.percorso-card {
    padding: 32px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
   flex-direction: column;
}
/* TESTO GIUSTIFICATO NELLE SCHEDE */
.percorso-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: left !important; /* Forza il giustificato */
}

/* CENTRARE IL TESTO NEI BOTTONI */
.percorso-card .btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100%; /* Su mobile è meglio a larghezza piena */
    margin-top: auto; /* Spinge il bottone sempre in fondo alla scheda */
}


.percorso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}

.percorso-card.imprenditori {
    background: linear-gradient(145deg, var(--gray-100) 0%, var(--white) 100%);
    border: 1px solid var(--gray-200);
}

.percorso-card.professionisti {
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
}

.percorso-card.professionisti h3,
.percorso-card.professionisti .card-label {
    color: var(--white);
}

.percorso-card.professionisti p {
    color: rgba(255, 255, 255, 0.85);
}

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

.percorso-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.percorso-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.imprenditori .card-icon svg { color: var(--navy); }
.professionisti .card-icon svg { color: var(--gold); }

.card-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

/* =========================================
   VISIONE SECTION
   ========================================= */
.visione {
    padding: 40px 0 80px;
}

.visione.light-section {
    background: var(--white);
    color: var(--gray-800);
}

.visione.light-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.section-intro-dark {
    max-width: 750px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1rem;
    color: var(--gray-700);
}

.badges-grid-light {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.badge-item-light {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--gray-100);
    border: 1.5px solid var(--navy);
    border-radius: 50px;
    transition: var(--transition);
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-item-light:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-4px);
}

.badge-item-light svg {
    width: 24px;
    height: 24px;
}

/* =========================================
   JOIN COMMITTEE SECTION
   ========================================= */
.join-committee {
    padding: 80px 0 120px;
    background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
}

.join-committee h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 60px; /* Aumentato da 40px */
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.committee-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.committee-text h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.committee-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.committee-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.committee-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.committee-benefits li svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
}

.cta-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 165, 77, 0.3);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.cta-box h4 {
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.profile-tag {
    padding: 8px 16px;
    background: rgba(201, 165, 77, 0.15);
    border: 1px solid rgba(201, 165, 77, 0.4);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--gold);
}

/* =========================================
   CTA FINALE
   ========================================= */
.cta-finale {
    padding: 100px 0;
    background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
    text-align: center;
}

.cta-finale h2 {
    color: var(--gold);
    margin-bottom: 20px;
}

.cta-finale p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(201, 165, 77, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    font-size: 0.95rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.footer-contact svg { color: var(--gold); width: 18px; height: 18px; }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal { display: flex; gap: 24px; }

/* =========================================
   ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE DESIGN: RIGA 1459+ (VERSIONE RIPRISTINO)
   ============================================================ */


@media (min-width: 768px) {
  .partner-image-wrapper {
    border-radius: 0px !important;
  }
}

/* --- 2. TABLET --- */
@media (max-width: 1024px) {
  .funziona-grid { grid-template-columns: 1fr; }
  .authority-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .percorsi-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .committee-content { grid-template-columns: 1fr; }
}

/* --- 3. MOBILE: SCHEMA DIAMANTE 1-2-1-2-1 --- */
@media (max-width: 768px) {
  .partner-network {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    row-gap: 60px !important;
    column-gap: 20px !important; /* Spazio 0.5cm tra i due affiancati */
    justify-items: center !important;
    align-items: start !important;
    width: 100% !important;
    margin: 40px auto !important;
    height: auto !important;
  }

  .connection-lines { display: none !important; }

  /* Nodi Singoli (Centrati su 2 colonne) */
  .node-1, .partner-node.central, .node-6 {
    grid-column: 1 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
   .team-section {
        padding-top: 250px !important; /* Aumenta questo valore finché non raggiungi lo spazio che desideri */
    }

    .team-section h2 {
        margin-top: 40px !important; /* Questo aggiunge ulteriore spazio specifico sopra il titolo */
    }
   /* --- AGGIUNGI QUESTO DENTRO IL MEDIA QUERY --- */
  .section-intro-dark {
    margin-top: -0px !important; /* Questo tira su la scritta */
    position: relative !important;
    z-index: 10 !important;
  }
}

  /* Nodi in Coppia (Uno a sinistra, uno a destra) */
  .node-2, .node-4 { 
    grid-column: 1 / 2 !important; 
    justify-self: end !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .node-3, .node-5 { 
    grid-column: 2 / 3 !important; 
    justify-self: start !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  /* ISO-CORE GRANDE (Solo immagine) */
  .partner-node.central .partner-image-wrapper {
    width: 110px !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* QUADRATI PARTNER (1.5cm x 1.5cm) */
  .partner-node:not(.central) .partner-image-wrapper {
    width: 60px !important;
    height: 60px !important;
    background-color: #ffffff !important;
    border: 1px solid #c9a54d !important;
    border-radius: 0px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .partner-img {
    max-width: 80% !important;
    max-height: 80% !important;
    object-fit: contain !important;
  }

  /* TESTO (Niente pillole, solo testo bianco) */
  .partner-info, .partner-info-small {
    background: transparent !important;
    margin-top: 10px !important;
    text-align: center !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .partner-name, .partner-name-small {
    font-size: 0.75rem !important;
    color: #ffffff !important;
    font-weight: bold !important;
  }
}

/* --- 4. NAV & FOOTER --- */
@media (max-width: 992px) {
  .nav {
    position: fixed; top: 0; right: -100%;
    width: 80%; height: 100vh;
    background: var(--navy-dark);
    display: flex; align-items: center; justify-content: center;
    transition: 0.5s; z-index: 1000;
  }
  .nav.active { right: 0; }
  .nav-list { flex-direction: column; text-align: center; gap: 40px; }
  .mobile-menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
/* --- STRUTTURA GENERALE --- */
.team-pillar-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
}

.pillar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Spazio compatto tra le righe */
}

/* QUADRATI FISSI PARTNER */
.sq-fixed {
    width: 120px !important;
    height: 120px !important;
    background: #ffffff;
    border: 1px solid #c9a54d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* QUADRATO FISSO ISO-CORE */
.sq-fixed-big {
    width: 220px !important;
    height: 220px !important;
    background: #ffffff;
    border: 3px solid #c9a54d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pillar-item, .pillar-item-big {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sq-tag {
    font-size: 10px;
    font-weight: bold;
    color: #001f3f;
    margin-top: 8px;
    letter-spacing: 1px;
}

.sq-tag-big {
    font-size: 14px;
    font-weight: 900;
    color: #001f3f;
    margin-top: 12px;
    letter-spacing: 2px;
}

.sq-fixed img, .sq-fixed-big img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* --- CONFIGURAZIONE DESKTOP (3-1-3) --- */
@media (min-width: 769px) {
    .pillar-row {
        display: flex;
        gap: 50px; /* Spazio tra i partner sulla stessa riga */
    }
}

/* --- CONFIGURAZIONE MOBILE (COLONNA CENTRATA) --- */
@media (max-width: 768px) {
    /* La scritta sale e riduce il bianco */
    .section-intro-dark {
        margin-top: -120px !important;
        position: relative;
        z-index: 10;
    }

    .pillar-row {
        flex-direction: column; /* Incolonna i partner */
        gap: 30px;
    }

    .sq-fixed {
        width: 110px !important;
        height: 110px !important;
    }

    .sq-fixed-big {
        width: 160px !important;
        height: 160px !important;
    }
}
/* --- FIX EMERGENZA MOBILE --- */
@media (max-width: 768px) {
    
    /* 1. Sistemiamo la sezione che contiene tutto */
    .team-section, section[id*="team"], section[id*="committee"] {
        padding-top: 80px !important; /* Riduce il bianco sopra senza far sparire i testi */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 2. Sistemiamo il Titolo (La Tecnologia...) */
    .team-section h2, .section-intro-dark h2 {
        position: relative !important; /* Impedisce che voli sopra il paragrafo */
        margin: 0 0 20px 0 !important;
        line-height: 1.2 !important;
        font-size: 28px !important; /* Regola la grandezza per farlo stare in pagina */
        transform: none !important;
        top: auto !important;
        left: auto !important;
    }

    /* 3. Sistemiamo il Paragrafo (In un mercato complesso...) */
    .team-section p, .section-intro-dark p {
        position: relative !important;
        margin: 0 0 30px 0 !important; /* Crea spazio per i quadrati sotto */
        line-height: 1.5 !important;
        font-size: 16px !important;
        transform: none !important;
        top: auto !important;
    }

    /* 4. Forza il contenitore dei testi a non sovrapporre nulla */
    .section-intro-dark {
        position: relative !important;
        margin-top: 0 !important;
        display: block !important;
    }
}
@media (max-width: 768px) {
    /* Impedisce al titolo di uscire dai bordi */
    h2, .section-intro-dark h2 {
        font-size: 24px !important; /* Ridotto per farlo stare in una riga o due */
        line-height: 1.2 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        width: 100% !important;
        padding: 0 15px !important; /* Margine interno per non toccare i bordi fisici */
        text-align: center !important;
    }

    /* Sistema anche il paragrafo per coerenza */
    p, .section-intro-dark p {
        font-size: 15px !important;
        line-height: 1.4 !important;
        padding: 0 20px !important;
        text-align: center !important;
    }
}



@media (max-width: 768px) {
    /* 1. COMPATTA I QUADRATI A COPPIE */
    .pillar-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Forza 2 colonne */
        gap: 20px !important;
        justify-items: center !important;
        width: 100% !important;
    }

    /* 2. ISO-CORE RESTA GRANDE E CENTRATO */
    .pillar-center {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 20px 0 !important;
    }

    /* 3. DIMENSIONI QUADRATI (Per farne stare due vicini) */
    .sq-fixed {
        width: 100px !important; /* Leggermente più piccoli per stare affiancati */
        height: 100px !important;
       padding: 0 !important; 
       border: 1px solid #c9a54d !important;
    background: #fff !important;
    display: flex !important; 
    align-items: center; 
    justify-content: center;
    overflow: hidden !important;        /* <--- AGGIUNGI QUESTO: evita che l'immagine esca dai bordi */
    }

    .sq-fixed-big {
        width: 280px !important; 
    height: 280px !important;
    padding: 0 !important;             /* <--- AGGIUNGI QUESTO */
    border: none !important;
    background: transparent !important;
    display: flex !important; 
    align-items: center; 
    justify-content: center;
}

    /* 4. FIX TESTO CHE ESCE (Sostenibile, ecc.) */
    h2, .section-intro-dark h2 {
        font-size: 26px !important; /* Rimpicciolisce il titolo quanto basta */
        line-height: 1.2 !important;
        padding: 0 10px !important;
        text-align: center !important;
        word-wrap: break-word !important; /* Spezza le parole lunghe se necessario */
    }

    p, .section-intro-dark p {
        font-size: 15px !important;
        padding: 0 15px !important;
    }
}
/* --- LAYOUT DESKTOP (3x3 con ISO-CORE al centro) --- */
@media (min-width: 1024px) {
    .pillar-grid-dynamic {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px !important;
        max-width: 1000px;
        margin: 50px auto;
        align-items: center;
        justify-items: center;
    }
    /* Forza ISO-CORE al centro della griglia 3x3 */
    .pillar-item-big { grid-column: 2; grid-row: 2; }
}

/* --- LAYOUT MOBILE (SCHEMA 2-2-1-2-2) --- */
@media (max-width: 1023px) {
    /* Titolo sicuro */
    .section-intro-dark h2 {
        font-size: 20px !important;
        line-height: 1.2 !important;
        padding: 0 10px !important;
        text-align: center !important;
    }

    .pillar-grid-dynamic {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 2 colonne */
        gap: 20px 15px !important;
        padding: 20px !important;
    }

    /* ISO-CORE occupa tutta la riga (il "1" nel 2-2-1-2-2) */
    .pillar-item-big {
        grid-column: span 2 !important;
        margin: 15px 0 !important;
    }

    .sq-fixed { width: 100px !important; height: 100px !important; }
    .sq-fixed-big { width: 160px !important; height: 160px !important; }
}

/* --- REGOLE COMUNI QUADRATI --- */
.sq-fixed, .sq-fixed-big {
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1/1 !important;
}

.sq-fixed { border: 1px solid #c9a54d !important; width: 120px; height: 120px; }
.sq-fixed-big { border: 3px solid #c9a54d !important; width: 220px; height: 220px; }

.pillar-item, .pillar-item-big { display: flex; flex-direction: column; align-items: center; }
.sq-tag { font-size: 10px; font-weight: bold; margin-top: 5px; color: #001f3f; text-transform: uppercase; }
.sq-tag-big { font-size: 13px; font-weight: 900; margin-top: 10px; color: #001f3f; }
.sq-fixed img, .sq-fixed-big img { max-width: 85%; max-height: 85%; object-fit: contain; }

/* =============================================
   ARCHITETTURA TEAM 3x3 (DESK) & 2-2-1-2-2 (MOB) funzionanti 100426
   ============================================= */

/* REGOLE BASE */
.team-pillar-section {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* DESKTOP 3x3 */
@media (min-width: 1024px) {
    .pillar-grid-dynamic {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 40px !important;
        max-width: 1100px;
        align-items: center;
        justify-items: center;
    }
    /* Posiziona ISO-CORE al centro della griglia (Cella 5) */
    .pillar-item-big { grid-column: 2; grid-row: 2; }
}

/* MOBILE 2-2-1-2-2 */
@media (max-width: 1023px) {
    .pillar-grid-dynamic {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 15px !important;
        width: 100%;
        padding: 0 10px;
    }
    .pillar-item-big { 
    grid-column: span 2 !important; /* Mantiene la larghezza doppia */
    margin: 20px 0 !important;      /* Mantiene lo spazio sopra e sotto */
    background: transparent !important; /* <--- AGGIUNGI QUESTO */
    border: none !important;             /* <--- AGGIUNGI QUESTO */
    box-shadow: none !important;         /* <--- AGGIUNGI QUESTO */
    
    
}
}
/* QUADRATI BLOCCATI (Mai rettangoli) */
.sq-fixed {
    width: 110px !important; height: 110px !important;
    border: 1px solid #c9a54d !important;
    background: #fff !important;
    display: flex !important; align-items: center; justify-content: center;
}

.sq-fixed-big {
    width: 280px !important; height: 280px !important;
    border: none !important;
    background: transparent !important;
    display: flex !important; align-items: center; justify-content: center;
   box-shadow: none !important;        /* <--- AGGIUNGI QUESTO: toglie l'effetto ombra */
    display: flex !important; 
    align-items: center; 
    justify-content: center;
}

/* IMMAGINI DENTRO I QUADRATI */
.sq-fixed img {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
}
   .sq-fixed-big img {
    /* Prova ad aumentare o diminuire questa percentuale per decidere la grandezza */
    width: 100% !important; 
    max-width: 100% !important; 
    max-height: 100% !important;
    
    /* Assicura che non venga tagliata o deformata */
    object-fit: contain !important; 
}

/* ETICHETTE */
.pillar-item, .pillar-item-big { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: center !important;     /* <--- Centra i contenuti (immagine e testo) */
    justify-content: center !important; 
    text-align: center !important;     /* <--- AGGIUNGI QUESTO: centra il contenuto testuale */
    width: 100% !important;             /* <--- Assicura che occupi tutto lo spazio */
}
..sq-tag { 
    display: block !important;          /* Forza il testo a occupare la sua larghezza */
    width: 100px !important;            /* Forza il testo a essere largo quanto il quadrato */
   max-width: 110px !important;       /* Ma non supera il quadratino */
    text-align: center !important;       /* Centra le parole */
    margin: 8px auto 0 auto !important; /* Centra la scatola del testo*/
    line-height: 1.2 !important;        /* Crea spazio tra le righe se va a capo */
    font-size: 10px; 
    font-weight: bold; 
    margin-top: 8px;                    /* Aumentato un po' per dare aria */
    text-transform: uppercase; 
    color: #001f3f; 
}
.sq-tag-big { 
    display: block !important;
    width: 280px !important;            /* Largo quanto il logo Isocore */
    text-align: center !important;
    line-height: 1.2 !important;
    font-size: 14px; 
    font-weight: 900; 
    margin-top: 10px; 
    color: #001f3f; 
}
   
/* =========================================
   AGGIUNTA: MODIFICHE HEADER SOLO PER MOBILE 090426
   ========================================= */
@media (max-width: 768px) {
  
  /* 1. Nascondiamo i bottoni e il menu per liberare spazio */
  .nav,
  .mobile-menu-toggle {
    display: none !important;
  }

  /* 2. Assicuriamoci che il contenitore parta da sinistra */
  .header-container {
    display: flex;
    justify-content: flex-start !important; 
    width: 100%;
  }

  /* 3. Allineiamo il testo a sinistra, uno sopra l'altro */
  .logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
  }
   /* 4. Titolo principale: Ingrandito e su un solo rigo */
  .logo-text {
    white-space: nowrap !important; 
    font-size: 28px !important; /* <--- MODIFICA QUESTO NUMERO PER INGRANDIRE O RIMPICCIOLIRE */
  }

  /* 5. Forziamo i testi su un solo rigo */
  .logo-text,
  .logo-subtext {
    white-space: nowrap !important; 
  }

  /* 6. Rendiamo il sottotitolo un po' più piccolo per farlo entrare nello schermo */
  .logo-subtext {
    font-size: 11px !important; 
    margin-top: 2px;
  }
}
/* =========================================
   SOSTITUZIONE: MODIFICHE SEZIONE HERO SOLO MOBILE 090426
   ========================================= */
@media (max-width: 768px) {
  
  /* 1. Diamo spazio ai bordi e aggiungiamo spazio SOPRA */
  .hero-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 100px !important; 
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2. FIX IMMAGINE: Blocchiamo rigorosamente al centro tutti i suoi contenitori */
   .analysis-logo, .logo-placeholder, .logo-icon {
        display: flex !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
  


  .main-logo-img {
        width: 95% !important; /* <--- Torna a essere quasi quanto la larghezza schermo */
        max-width: 450px !important; /* Limite per non farla sgranare troppo */
        height: auto !important;
     display: block !important;
        margin: 0 auto !important;
    }
 /* Eyebrow e Titolo H1: CENTRATI */
    .eyebrow, .hero-content h1 {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }

    .eyebrow {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
   .hero-content h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-top: 15px !important;
        margin-bottom: 20px !important;
    }

  /* 3. TESTO GIUSTIFICATO: Diamo l'aspetto autorevole e da documento */
 .hero-content h2 {
        font-size: 15px !important;
        text-align: justify !important; 
        font-weight: normal !important;
        line-height: 1.6 !important;
        hyphens: auto; /* Aiuta il giustificato a spezzare le parole se necessario */
    }

  /* Riduciamo il titolo principale */
  .hero-content h1 {
    font-size: 30px !important; 
    line-height: 1.2 !important; 
    margin-bottom: 15px !important;
    word-wrap: break-word !important; 
  }

  /* Sistemiamo il paragrafo lungo (h2) */
  .hero-content h2 {
    font-size: 15px !important; 
    line-height: 1.5 !important;
    font-weight: normal !important; 
    margin-bottom: 30px !important;
  }

  /* 4. Sistemiamo i due bottoni (uno sopra l'altro, centrati) */
  .cta-buttons {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    gap: 15px !important; 
  }

  .cta-buttons .btn {
    width: 100% !important;
    max-width: 280px !important;
    text-align: center !important;
  }
}
   /* ==================================================
   FIX SOLO LOGO CENTRALE (MOBILE)
   ================================================== */
@media (max-width: 768px) {

    /* 1. Forza i contenitori a occupare tutto lo spazio orizzontale */
    .analysis-logo, 
    .logo-placeholder, 
    .logo-icon {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 auto !important;
        background: transparent !important;
        border: none !important;
    }

    /* 2. Forza l'immagine a essere grande quanto lo schermo */
    img.main-logo-img {
        display: block !important;
        width: 90vw !important;       /* 90% della larghezza dello schermo */
        max-width: 500px !important;   /* Limite massimo per sicurezza */
        height: auto !important;
        margin: 0 auto 20px auto !important; /* Centrata con spazio sotto */
    }
}
/* ==================================================
   PULIZIA E SEZIONE TEAM (SOLO MOBILE)
   ================================================== */
@media (max-width: 768px) {

   

    /* 2. Titolo Team: Centrato e forzato su due righe */
    .team-section h2 {
        text-align: center !important;
        font-size: 26px !important; /* Ridotto leggermente per farlo stare su due righe */
        line-height: 1.2 !important;
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* 3. Paragrafo Team: Giustificato */
    .section-intro-dark {
        text-align: left !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        padding-left: 15px !important;  /* Margine di sicurezza laterale */
        padding-right: 15px !important;
        margin-bottom: 40px !important;
    }

   

/* 2. MODIFICHE SEZIONE COME FUNZIONA (Solo Mobile) */
@media (max-width: 768px) {

    /* Titolo: Centrato e forzato su due righe */
    .come-funziona h2 {
        text-align: center !important;
        font-size: 20px !important; /* Grandezza ideale per iPhone 11 */
        line-height: 1.3 !important;
        display: block !important;
        margin-bottom: 30px !important;
        padding: 0 10px !important;
    }

   /* ==================================================
   RE-DESIGN TOTALE SEZIONE COME FUNZIONA
   (Desktop + Mobile)
   ================================================== */

/* --- 1. FONDO E TITOLI --- */
.come-funziona.dark-section {
    background-color: #0a152d !important; /* Blu Navy */
    padding: 60px 0 !important;
}

.come-funziona h2 {
    text-align: center !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 40px !important;
}

/* ==================================================
   RE-DESIGN MASTER: APPLICATO A TUTTO IL SITO
   ================================================== */

/* RESET GLOBALE ANTI-SBORDAMENTO */
*, ::before, ::after {
    box-sizing: border-box !important;
}
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}
.scroll-indicator { display: none !important; }

/* --- 1. SEZIONE COME FUNZIONA (BIANCO & ORO) --- 
   Queste regole sono FUORI dai media query per funzionare su DESKTOP */

.come-funziona.dark-section { 
    background-color: #0a152d !important; 
    padding: 80px 0 !important; 
}

/* Forziamo il BIANCO su Desktop e Mobile */
.step, 
.mockup, 
.mockup-content, 
.mockup-screen, 
.screen-test, 
.screen-report, 
.screen-certification {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.step {
    border: 1px solid rgba(201, 165, 77, 0.4) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
    display: flex !important;
    gap: 20px !important;
}

/* Icone e Testi Step */
.step-icon { color: #c9a54d !important; min-width: 50px; display: flex; justify-content: center; }
.step-content h3 { color: #0a152d !important; margin-bottom: 8px !important; text-align: left !important; }
.step-content p { color: #4a5568 !important; text-align: left !important; margin: 0 !important; }

/* Fix Mockup e Radar */
.mockup { border: 1px solid #c9a54d !important; border-radius: 15px !important; overflow: hidden !important; }
.mockup-screen *, .test-header, .report-main-title { color: #0a152d !important; }
.radar-circle, .radar-grid-line { stroke: #0a152d !important; stroke-opacity: 0.2 !important; }
.radar-chart text { fill: #0a152d !important; font-weight: bold !important; }

/* FIX TAG PNRR (Per non farli allungare) */
.cert-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 15px !important;
}
.cert-tags span {
    display: inline-block !important; /* <--- Evita l'allungamento */
    width: auto !important;
    padding: 5px 12px !important;
    border: 1px dashed #c9a54d !important;
    color: #c9a54d !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
}

/* --- 2. IL TASTO (Richiedi Analisi) --- */
.funziona-cta {
    display: flex !important;
    justify-content: center !important;
    padding: 40px 20px !important;
   margin-top: 50px !important;
    width: 100% !important;
   clear: both !important;
}

/* --- 3. OTTIMIZZAZIONE SOLO MOBILE (iPhone 11) --- */
@media (max-width: 768px) {
    /* Header e Hero */
    .header-container { padding: 0 20px !important; }
    .logo-text { font-size: 22px !important; }
    .hero-content { padding: 80px 20px !important; }

    /* Come Funziona Mobile */
    .come-funziona.dark-section { padding: 40px 20px !important; } /* Aggiunge spazio ai bordi */
    .funziona-grid { padding: 0 !important; }
    .step { 
        flex-direction: column !important; 
        align-items: center !important; 
        text-align: center !important; 
        width: 100% !important;
    }
    .step-icon { margin: 0 auto 10px auto !important; }
    .step-content h3 { text-align: center !important; }

    /* Certificato Mobile */
    .screen-certification { padding: 60px 15px !important; }
    .screen-certification::before, .screen-certification::after { font-size: 8px !important; }
}
/* ==================================================
   OTTIMIZZAZIONE SEZIONE AUTOREVOLEZZA (MOBILE) 090426
   ================================================== */
@media (max-width: 768px) {

    /* 1. "Tiriamo su" la sezione riducendo lo spazio in alto */
    .autorevolezza {
        padding-top: 30px !important; /* Ridotto drasticamente il vuoto iniziale */
        padding-bottom: 40px !important;
    }

    /* 2. Titolo: riduciamo il margine superiore se presente */
    #autorevolezza h2 {
        margin-top: 0 !important;
        text-align: center !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
    }

    /* 3. Paragrafo introduttivo: GIUSTIFICATO */
    #autorevolezza .section-intro {
        text-align: left !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        padding: 0 5px !important; /* Un po' di margine dai bordi */
        margin-bottom: 45px !important; /* "Aria" prima delle schede */
    }


    /* 5. Interno delle schede: Testo GIUSTIFICATO */
    .authority-card {
        text-align: center !important; /* Icona e Titolo restano centrati */
    }

    .authority-card h3 {
        margin-bottom: 12px !important;
    }

    .authority-card p {
        text-align: left !important; /* TESTO SCHEDE GIUSTIFICATO */
        font-size: 14px !important;
        line-height: 1.5 !important;
        padding: 0 5px !important;
    }
   
}
@media (max-width: 768px) {
    /* Assicuriamoci che su mobile tutto il blocco testo sia armonioso */
    .percorso-card h3 {
        text-align: center !important;
    }
    
    .percorso-card p {
        text-align: left !important;
    }   OTTIMIZZAZIONE CTA FINALE (SOLO MOBILE)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. "Tiriamo su" la sezione riducendo il padding superiore */
    .cta-finale {
        padding: 50px 20px !important; /* Ridotto da 100px a 50px */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 2. Titolo: Centrato e senza margini eccessivi sopra */
    .cta-finale h2 {
        margin-top: 0 !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    /* 3. Paragrafo: GIUSTIFICATO */
    .cta-finale p {
        text-align: left !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 35px !important; /* Spazio prima del bottone */
        hyphens: auto;
    }
   }
   
   /* ==================================================
   BANNER FISSO DI CONVERSIONE (RE-DESIGN) 100426
   ================================================== */
  /* Questa regola agisce SOLO sul tuo nuovo footer */
#custom-footer-analisi {
      display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 50px !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}


/* Stile unico per il tuo bottone */
.btn-gold-unique {
    background-color: #D4AF37 !important;
    color: #ffffff !important;
    padding: 12px 25px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border-radius: 5px !important;
    display: inline-block !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.btn-gold-unique:hover {
    background-color: #b8962d !important;
    transform: translateY(-2px) !important;
}


/* Regola solo per il mobile, isolata dall'ID */
@media screen and (max-width: 768px) {
    #custom-footer-analisi {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .btn-gold-unique {
        width: 100% !important;
        text-align: center !important;
    }
}
@keyframes pulse-isocore {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo-pulsante {
    /* Aggiungiamo queste 3 righe per forzare il desktop */
    display: block !important; 
    margin: 0 auto !important;
    backface-visibility: hidden; /* Rende l'animazione fluida su Chrome/Edge */
    
    animation: pulse-isocore 2s infinite ease-in-out !important;
}
/* ==================================================
   STILE BLOCCO 4: TITOLI ORO E GRIGLIA SIMMETRICA 2704
   ================================================== */

.section-video-pdf {
    background-color: #0a152d !important; /* Navy Dark */
    padding: 100px 0 !important;
    width: 100% !important;
    display: block !important;
}

/* TITOLI ORO (Forzati per Desktop e Mobile) */
.titolo-gold-center {
    color: #c9a54d !important; /* ORO */
    text-align: center !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 2.5rem !important;
    margin-bottom: 60px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

.label-gold {
    color: #c9a54d !important; /* ORO */
    text-align: center !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    display: block !important;
}

/* GRIGLIA DESKTOP */
.grid-video-pdf {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 colonne uguali */
    gap: 50px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    align-items: start !important;
}

.col-media {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* CORNICI IDENTICHE (VIDEO E PDF) */
.box-media-style {
    width: 100% !important;
    max-width: 450px !important;
    aspect-ratio: 1 / 1 !important; /* Quadrati perfetti */
    background: #000 !important;
    border-radius: 20px !important;
    border: 2px solid rgba(201, 165, 77, 0.4) !important; /* Bordo oro sfumato */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important;
    position: relative !important;
}

.box-media-style video, 
.box-media-style img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Riempie il quadrato senza deformarsi */
}

/* EFFETTO PDF */
.pdf-link-wrapper {
    width: 100%;
    display: block;
    text-decoration: none;
}

.pdf-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(201, 165, 77, 0.9);
    padding: 15px;
    text-align: center;
    transform: translateY(101%);
    transition: transform 0.3s ease-in-out;
}

.pdf-overlay span {
    color: #0a152d;
    font-weight: 900;
    font-size: 0.9rem;
}

.pdf-link-wrapper:hover .pdf-overlay {
    transform: translateY(0);
}

/* REGOLE SPECIFICHE PER MOBILE (iPhone 11) */
@media (max-width: 768px) {
    .grid-video-pdf {
        grid-template-columns: 1fr !important; /* Una colonna */
        gap: 60px !important;
    }

    .titolo-gold-center {
        font-size: 1.8rem !important;
    }

    .box-media-style {
        max-width: 100% !important;
    }
}
   /* --- AGGIUNTA MENU MOBILE (In fondo al file 270426) --- */
@media (max-width: 768px) {
  
  /* 1. Riattiviamo il tasto menu (sovrascrive il display:none precedente) */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute !important; /* Non occupa spazio, non sposta il logo */
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
  }

  /* 2. Creiamo le 3 linee (che devono essere dentro il button nell'HTML) */
  .mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #c9a54d;
    border-radius: 2px;
    transition: 0.3s;
  }

  /* 3. Riattiviamo la navigazione ma la mettiamo a tutto schermo */
  .nav {
    display: none !important; /* Resta nascosta finché non clicchi */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #122245; /* Blu Navy */
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* 4. Classe che attiveremo col JavaScript per mostrare il menu */
  .nav.active {
    display: flex !important;
  }

  /* 5. Trasformazione delle linee in X */
  .mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .nav-list {
    flex-direction: column;
    gap: 30px;
  }
}

