/* =============================================
   LEAD AUDITOR ITALIA – Main Stylesheet
   Palette: Blu Navy #2d2e83 + Arancione #f47920
   ============================================= */



/* ===== AOS OVERRIDE - elementi sempre visibili ===== */
[data-aos] {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

/* ===== VARIABLES ===== */
:root {
    --primary: #2d2e83;
    --primary-dark: #1e1f5e;
    --primary-light: #3d3ea6;
    --accent: #f47920;
    --accent-hover: #d96510;
    --accent-light: #ffa050;
    --success: #28a745;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a6a;
    --text-light: #7a7a9a;
    --bg-light: #f8f9fe;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(45, 46, 131, 0.08);
    --shadow-md: 0 8px 32px rgba(45, 46, 131, 0.12);
    --shadow-lg: 0 20px 60px rgba(45, 46, 131, 0.18);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.25;
    color: var(--text-dark);
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-family: var(--font-body); font-weight: 700; }

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== SECTION BASE ===== */
.section { padding: 100px 0; }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 70px;
}

.section-header h2 { margin: 12px 0 20px; }

.section-header p {
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(45, 46, 131, 0.08) 0%, rgba(45, 46, 131, 0.04) 100%);
    color: var(--primary);
    border: 1px solid rgba(45, 46, 131, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(244, 121, 32, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(244, 121, 32, 0.45);
    color: white;
}

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

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

.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

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

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

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

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden { opacity: 0; visibility: hidden; }

.preloader-inner { text-align: center; }

.preloader-logo {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    animation: preload 1.5s ease forwards;
}

@keyframes preload {
    from { width: 0; }
    to { width: 100%; }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 2px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 2px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
    text-decoration: none;
}

/* Logo navbar - indipendente dall'altezza della navbar */
.logo {
    overflow: visible;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo-img-wrap {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: visible;
}

.logo-img {
    height: 100px !important;
    width: auto !important;
    max-width: 280px !important;
    object-fit: contain;
    display: block;
    transition: var(--transition);
    position: relative;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Navbar su sfondo blu: logo con sfondo bianco visibile */
.logo-img--white {
    display: block;
}

/* Navbar dopo scroll su sfondo bianco: logo normale */
.logo-img--color {
    display: none;
}

.navbar.scrolled .logo-img--white {
    display: none;
}

.navbar.scrolled .logo-img--color {
    display: block;
}

.logo-text-fallback {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.navbar.scrolled .logo-text-fallback {
    color: var(--text-dark);
}

.logo-text-fallback strong { font-weight: 800; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
    background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-links a {
    color: var(--text-medium);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
    background: rgba(45, 46, 131, 0.07);
}

.btn-nav {
    background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(244, 121, 32, 0.4) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .hamburger span { background: var(--text-dark); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 160px 0 80px;
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: white;
}

.shape-1 {
    width: 600px; height: 600px;
    top: -200px; right: -150px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px; height: 400px;
    bottom: -100px; left: -100px;
    opacity: 0.04;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px; height: 200px;
    top: 40%; right: 20%;
    opacity: 0.08;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: rgba(255,255,255,0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-subtitle {
    color: rgba(255,255,255,0.82);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 640px;
    margin: 0 auto 40px;
}

.hero-subtitle strong { color: rgba(255,255,255,0.95); }

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-certifications {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cert-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.cert-pill:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

.cert-pill i { color: var(--accent); }

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== TRUST BANNER ===== */
.trust-banner {
    background: white;
    padding: 28px 0;
    box-shadow: 0 4px 30px rgba(45, 46, 131, 0.08);
    position: relative;
    z-index: 10;
}

.trust-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.trust-item i {
    font-size: 1.3rem;
    color: var(--accent);
}

.trust-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ===== SERVIZI ===== */
.servizi { background: var(--bg-light); }

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.servizio-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}

.accent-blue { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.accent-green { background: linear-gradient(90deg, #16a34a, #4ade80); }
.accent-orange { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.accent-purple { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.accent-teal   { background: linear-gradient(90deg, #0d9488, #2dd4bf); }
.accent-gold   { background: linear-gradient(90deg, #b45309, #f59e0b); }

.card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.icon-blue { background: linear-gradient(135deg, rgba(45,46,131,0.12), rgba(61,62,166,0.08)); color: var(--primary); }
.icon-green { background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(74,222,128,0.08)); color: #16a34a; }
.icon-orange { background: linear-gradient(135deg, rgba(244,121,32,0.12), rgba(255,160,80,0.08)); color: var(--accent); }
.icon-purple { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(167,139,250,0.08)); color: #7c3aed; }
.icon-teal   { background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(45,212,191,0.08)); color: #0d9488; }
.icon-gold   { background: linear-gradient(135deg, rgba(180,83,9,0.12), rgba(245,158,11,0.08)); color: #b45309; }

.card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.servizio-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.servizio-card p {
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.card-features {
    margin-bottom: 24px;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: var(--text-medium);
    padding: 5px 0;
}

.card-features li i {
    color: var(--success);
    font-size: 0.8rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 20px;
    border: 1.5px solid rgba(45,46,131,0.2);
    border-radius: 50px;
    transition: var(--transition);
}

.card-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    gap: 14px;
}

.servizio-card--featured {
    border-color: rgba(124,58,237,0.2);
    background: linear-gradient(145deg, white 0%, rgba(124,58,237,0.02) 100%);
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Integrated banner */
.integrated-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-md);
    padding: 36px 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    color: white;
}

.integrated-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    color: var(--accent);
}

.integrated-content { flex: 1; min-width: 200px; }
.integrated-content h3 { color: white; font-size: 1.25rem; margin-bottom: 8px; }
.integrated-content p { color: rgba(255,255,255,0.8); font-size: 0.93rem; margin: 0; }

/* ===== CHI SIAMO ===== */
.chi-siamo { background: white; }

.chi-siamo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.chi-siamo-visual {
    position: relative;
    height: 480px;
}

.visual-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: absolute;
    border: 1px solid var(--border);
}

.main-card {
    bottom: 0; left: 0;
    width: 280px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border: none;
}

.main-card .visual-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
}

.main-card .visual-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.float-card-1 {
    top: 40px; right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.float-card-1 i { color: var(--accent); font-size: 1.2rem; }

.float-card-2 {
    top: 140px; left: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.float-card-2 i { color: #16a34a; font-size: 1.2rem; }

.visual-orb {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, rgba(45,46,131,0.08) 0%, rgba(244,121,32,0.05) 100%);
    border-radius: 50%;
    border: 1px solid rgba(45,46,131,0.1);
}

.chi-siamo-text .section-tag { margin-bottom: 16px; }
.chi-siamo-text h2 { margin-bottom: 20px; }

.chi-siamo-text p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0 36px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.value-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 2px;
    flex-shrink: 0;
}

.value-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.value-item span {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ===== PROCESSO ===== */
.processo { background: var(--bg-light); }

.processo-timeline {
    display: grid;
    gap: 0;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.processo-timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
    opacity: 0.2;
}

.timeline-step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 20px 0;
    position: relative;
}

.step-number {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.timeline-step:hover .step-number {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.step-content {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px 32px;
    flex: 1;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-step:hover .step-content {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.step-icon {
    width: 40px;
    height: 40px;
    background: rgba(45,46,131,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 12px;
}

.step-content h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step-content p { color: var(--text-medium); font-size: 0.9rem; line-height: 1.7; margin-bottom: 14px; }

.step-duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(244,121,32,0.08);
    padding: 5px 12px;
    border-radius: 50px;
}

/* ===== STATISTICHE ===== */
.statistiche {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.statistiche::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -200px;
    right: -150px;
}

.statistiche .section-header { color: white; }
.statistiche .section-header h2 { color: white; }
.statistiche .section-tag {
    background: rgba(255,255,255,0.15);
    color: white;
    border-color: rgba(255,255,255,0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 40px 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

/* ===== SETTORI ===== */
.settori { background: white; }

.settori-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.settore-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-medium);
    transition: var(--transition);
    cursor: default;
}

.settore-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.settore-item i {
    color: var(--accent);
    font-size: 1rem;
    transition: var(--transition);
}

.settore-item:hover i { color: var(--accent-light); }

/* ===== TESTIMONIANZE ===== */
.testimonianze { background: var(--bg-light); }

.testimonials-slider { position: relative; overflow: hidden; }

.testimonials-track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonial-card {
    min-width: calc(50% - 14px);
    background: white;
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

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

.testimonial-quote {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.6;
    margin-bottom: 16px;
}

.testimonial-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-light);
}

.testimonial-stars {
    margin-left: auto;
    color: var(--accent);
    font-size: 0.8rem;
}

.testimonial-cert {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(45,46,131,0.07);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.slider-btn {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* ===== FAQ ===== */
.faq { background: white; }

.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover { border-color: rgba(45,46,131,0.2); }
.faq-item.active { border-color: rgba(244,121,32,0.3); box-shadow: var(--shadow-sm); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }
.faq-item.active .faq-question { color: var(--accent); }

.faq-icon {
    font-size: 0.85rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.75;
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -150px; right: -100px;
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== CONTATTI ===== */
.contatti { background: var(--bg-light); }

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
}

.contact-form-wrap {
    background: white;
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: var(--transition);
    background: var(--bg-white);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244,121,32,0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

.form-check label {
    font-size: 0.82rem;
    color: var(--text-medium);
    line-height: 1.5;
    cursor: pointer;
}

.form-check label a { color: var(--accent); text-decoration: underline; }

.form-success {
    display: none;
    text-align: center;
    padding: 40px 24px;
    position: absolute;
    inset: 0;
    background: white;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.form-success.show {
    display: flex;
}

.form-success i {
    font-size: 3rem;
    color: var(--success);
}

.form-success h3 { font-size: 1.3rem; color: var(--text-dark); }
.form-success p { color: var(--text-medium); font-size: 0.9rem; }

.contact-info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.contact-info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-info-card > p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(244,121,32,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-detail-item span {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.5;
}

.contact-detail-item a {
    color: var(--text-medium);
    transition: var(--transition);
}

.contact-detail-item a:hover { color: var(--accent); }

.contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(45,46,131,0.06);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.contact-badge i { color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    padding: 72px 0 0;
    color: rgba(255,255,255,0.75);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.8;
    margin: 20px 0 24px;
    color: rgba(255,255,255,0.6);
}

.footer-logo {
    display: inline-block;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

.footer-contact-list li i {
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-list li a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-contact-list li a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--accent); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(244,121,32,0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(244,121,32,0.5);
}

/* ===== MOBILE NAV ===== */
@media (max-width: 900px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.open { transform: translateX(0); }

    .nav-links a {
        font-size: 1.1rem;
        color: rgba(255,255,255,0.9);
        padding: 12px 28px;
    }

    .nav-links a:hover {
        background: rgba(255,255,255,0.1);
        color: white;
    }

    .btn-nav {
        margin-top: 8px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .chi-siamo-grid { grid-template-columns: 1fr; gap: 40px; }
    .chi-siamo-visual { height: 300px; }
    .contatti-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { gap: 12px; }
    .trust-item { padding: 8px 20px; }
    .trust-divider { display: none; }
    .testimonial-card { min-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .integrated-banner { flex-direction: column; text-align: center; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
}

@media (max-width: 480px) {
    .servizi-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .cta-actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .contact-form-wrap { padding: 24px 20px; }
    .back-to-top { bottom: 20px; right: 20px; }
}

/* ===== NAV ACTIVE LINK ===== */
.nav-links a.active {
    color: var(--accent) !important;
}

/* ===== CONSULENZE SPECIALISTICHE ===== */
.consulenze { background: white; }

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

.consulenza-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.consulenza-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(244,121,32,0.2);
    background: white;
}

.consulenza-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(244,121,32,0.12), rgba(255,160,80,0.06));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.consulenza-card h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.35;
}

.consulenza-card p {
    color: var(--text-medium);
    font-size: 0.91rem;
    line-height: 1.75;
    flex: 1;
}

.consulenza-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

.consulenza-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-medium);
    padding: 3px 0;
}

.consulenza-features li i {
    color: var(--success);
    font-size: 0.78rem;
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .consulenze-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .consulenze-grid { grid-template-columns: 1fr; }
}

/* ===== ACADEMY ===== */
.academy { background: var(--primary-dark); overflow: hidden; position: relative; }

.academy::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    top: -300px; right: -200px;
    pointer-events: none;
}

.academy::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: rgba(244,121,32,0.06);
    border-radius: 50%;
    bottom: -150px; left: -100px;
    pointer-events: none;
}

.academy-inner {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg);
    padding: 60px 56px;
    backdrop-filter: blur(10px);
}

.academy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(244,121,32,0.35);
}

.academy-header {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin-bottom: 48px;
}

.academy-logo-wrap {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 6px 20px rgba(244,121,32,0.4);
}

.academy-header h2 {
    color: white;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 14px;
}

.academy-highlight {
    color: var(--accent);
}

.academy-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 680px;
}

.academy-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 44px;
}

.academy-offer-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    transition: var(--transition);
}

.academy-offer-item:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(244,121,32,0.3);
    transform: translateY(-3px);
}

.academy-offer-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: rgba(244,121,32,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent);
}

.academy-offer-item strong {
    display: block;
    font-size: 0.92rem;
    color: white;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.academy-offer-item span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.academy-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.academy-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 620px;
    flex: 1;
}

.academy-cta p strong {
    color: white;
}

@media (max-width: 1024px) {
    .academy-offer-grid { grid-template-columns: 1fr; }
    .academy-inner { padding: 40px 32px; }
}

@media (max-width: 768px) {
    .academy-header { flex-direction: column; gap: 16px; }
    .academy-inner { padding: 32px 24px; }
    .academy-cta { flex-direction: column; align-items: flex-start; }
}

/* ===== COOKIE BANNER GDPR ===== */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 40, 0.55);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(3px);
}

.cookie-overlay.show { opacity: 1; visibility: visible; }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9995;
    transform: translateY(110%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 16px 16px;
    visibility: hidden;
}

.cookie-banner.show {
    visibility: visible;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-inner {
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(45, 46, 131, 0.18);
    border-top: 3px solid var(--accent);
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.cookie-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px 16px;
    border-bottom: 1px solid var(--border);
}

.cookie-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(244,121,32,0.3);
}

.cookie-title h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-family: var(--font-body);
}

.cookie-title p {
    font-size: 0.83rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

.cookie-body { padding: 16px 28px; }

.cookie-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.cookie-category {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    transition: var(--transition);
}

.cookie-category:hover { border-color: rgba(244,121,32,0.3); }

.cookie-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.cookie-cat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-cat-info i {
    font-size: 1rem;
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.cookie-cat-info strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.cookie-cat-info span {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 500;
}

.cookie-category > p {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle.disabled { cursor: not-allowed; opacity: 0.7; }

.cookie-toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .toggle-slider { background: var(--accent); }
.cookie-toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.cookie-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.cookie-links {
    display: flex;
    gap: 16px;
}

.cookie-links a {
    font-size: 0.78rem;
    color: var(--text-light);
    text-decoration: underline;
    transition: var(--transition);
}

.cookie-links a:hover { color: var(--primary); }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.cookie-btn-reject {
    background: transparent;
    border-color: var(--border);
    color: var(--text-medium);
}

.cookie-btn-reject:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cookie-btn-custom {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.cookie-btn-custom:hover {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 0 4px 14px rgba(244,121,32,0.35);
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244,121,32,0.45);
}

/* Toast notifica consenso */
.cookie-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--primary-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9998;
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-toast i { color: var(--accent); }
.cookie-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Responsive cookie banner */
@media (max-width: 768px) {
    .cookie-categories { grid-template-columns: 1fr; gap: 8px; }
    .cookie-header { flex-direction: column; gap: 12px; padding: 20px 20px 14px; }
    .cookie-body { padding: 12px 20px; }
    .cookie-footer { flex-direction: column; align-items: flex-start; padding: 12px 20px 18px; }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; text-align: center; }
    .cookie-inner { border-radius: 16px 16px 0 0; }
}
