/* Design WOW - Grafica istituzionale moderna */
:root{
  --bg: linear-gradient(135deg, #4a90e2 0%, #2c5aa0 100%);
  --surface: #ffffff;
  --surface-glass: rgba(255,255,255,0.85);
  --text: #1a202c;
  --text-light: #4a5568;
  --muted: #718096;
  --primary: #4299e1;
  --primary-600: #3182ce;
  --primary-gradient: linear-gradient(135deg, #4299e1 0%, #5ba7f7 100%);
  --accent: #2c5aa0;
  --accent-gradient: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
  --border: rgba(226,232,240,0.6);
  --radius: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(74,144,226,.12);
  --shadow-md: 0 8px 25px rgba(74,144,226,.15);
  --shadow-lg: 0 15px 35px rgba(74,144,226,.2);
  --shadow-xl: 0 25px 50px rgba(74,144,226,.25);
  --container: 1200px;
  --glow: 0 0 30px rgba(74,144,226,.3);
}

/* Reset e basi responsive */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }

body { 
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text); 
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Particelle animate di sfondo - più leggere */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74,144,226,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44,90,160,0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(91,167,247,0.03) 0%, transparent 50%);
    animation: floatParticles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatParticles {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Fallback per browser senza supporto clip */
@supports not (-webkit-background-clip: text) {
    h1, h2, h3, h4, h5, h6 {
        color: var(--primary);
    }
}

a {
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

.container { 
    max-width: var(--container); 
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - più luminoso */
.main-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.main-header:hover {
    box-shadow: var(--shadow-lg);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* rende il container il riferimento per il menu mobile */
    gap: 16px; /* spaziatura tra logo, nav e toggle */
}

.logo a {
    font-size: 2.2em;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.logo a:hover::after {
    width: 100%;
}

/* Fallback per browser senza supporto clip */
@supports not (-webkit-background-clip: text) {
    .logo a {
        color: var(--primary);
    }
}

.menu-toggle { 
    display: none;
    font-size: 1.8em; 
    padding: 8px 10px; 
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

/* Fallback per browser senza supporto a flex-gap */
.main-nav ul li + li { margin-left: 25px; }
@supports (gap: 25px) { .main-nav ul li + li { margin-left: 0; } }

.main-nav a { 
    position: relative; 
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-light);
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.main-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-gradient);
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.main-nav a::after{ 
    content:""; 
    position:absolute; 
    left:50%; 
    bottom:8px; 
    width:0;
    height:2px; 
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease; 
    border-radius: 2px;
}

.main-nav a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.main-nav a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.main-nav a:hover::after, .main-nav a.active::after{ 
    width: 60%;
}

.main-nav a.active {
    color: var(--primary);
    background: rgba(74,144,226,0.1);
}

/* Hero Section WOW - più luminoso */
.hero {
    min-height: clamp(400px, 65vh, 700px);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(74,144,226,0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(44,90,160,0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(91,167,247,0.2) 0%, rgba(44,90,160,0.2) 100%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.5; transform: scale(1.02); }
}

.hero-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.35) 100%);
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem); 
    text-shadow: 0 8px 20px rgba(0,0,0,.4);
    margin-bottom: 1rem;
    animation: heroTitle 1s ease-out;
}

@keyframes heroTitle {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero p {
    color: #e8eef6; 
    font-size: clamp(1.1rem, 1rem + 1vw, 1.6rem);
    text-shadow: 0 4px 12px rgba(0,0,0,.3);
    animation: heroSubtitle 1s ease-out 0.3s both;
}

@keyframes heroSubtitle {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Spaziatura uniforme tra gli elementi interni delle card */
.card > * + * { margin-top: 16px; }

/* Card WOW con Glass Morphism - più luminose */
.card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    margin-bottom: 40px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--glow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h2 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.card h2::after{
    content: ""; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 60px; 
    height: 4px; 
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    0% { box-shadow: 0 0 5px rgba(44,90,160,0.3); }
    100% { box-shadow: 0 0 15px rgba(44,90,160,0.6); }
}

.card ul {
    padding-left: 20px;
    list-style: none;
}

.card ul li {
    padding-left: 1.4em;
    text-indent: -1.4em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 0;
}

.card ul li:hover {
    background: rgba(66,153,225,0.05);
    transform: translateX(5px);
    padding-left: 10px;
}

.card ul li::before {
    content: '✓';
    color: #28a745;
    margin-right: 10px;
    font-weight: bold;
}

.inline-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin: 24px 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.inline-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover .inline-image {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), var(--glow);
}

.card:hover .inline-image::before {
    transform: translateX(100%);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

@media (min-width: 992px) {
    .grid {
        grid-template-columns: 2fr 1fr;
    }
}

/* Social Links WOW */
.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1.4em;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow);
}

.social-links a:hover::before {
    transform: scale(1);
}

/* Footer WOW */
.main-footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    text-align: center;
    padding: 50px 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
}

.main-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74,144,226,0.05) 0%, transparent 70%);
    animation: footerGlow 15s linear infinite;
}

@keyframes footerGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.main-footer p {
    margin: 0;
    position: relative;
    z-index: 1;
}

.main-footer a {
    color: var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.main-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.main-footer a:hover {
    color: var(--accent);
}

.main-footer a:hover::after {
    width: 100%;
}

/* Responsive Navigation WOW */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(20px);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: var(--shadow-xl);
        border-radius: 0 0 var(--radius) var(--radius);
        border: 1px solid var(--border);
        border-top: none;
        overflow: hidden;
    }

    .main-nav.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        0% { opacity: 0; transform: translateY(-20px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
    }

    .main-nav li {
        text-align: center;
        margin: 8px 0;
    }

    .main-nav a {
        margin: 0 20px;
        border-radius: var(--radius);
    }

    .menu-toggle {
        display: block;
        background: var(--primary-gradient);
        border: none;
        border-radius: 12px;
        color: white;
        font-size: 1.5em;
        padding: 12px 15px;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .menu-toggle:hover {
        transform: scale(1.05);
        box-shadow: var(--glow);
    }
}

/* Fix specifico per la pagina Download: esclude gli stili delle checklist */
.card ul.download-list { padding-left: 0; list-style: none; }
.card ul.download-list li { padding-left: 0; text-indent: 0; margin-bottom: 0; overflow: visible; }
.card ul.download-list li::before { content: none; }

/* Button robusto: evita tagli dello sfondo su alcuni browser */
.download-btn{
  background-color: var(--primary);
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(13,110,253,.22);
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.download-btn:hover{ background-color: var(--primary-600); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(13,110,253,.26); }
.download-btn:active{ transform: translateY(0); }
.download-btn:focus-visible{ outline: 3px solid rgba(13,110,253,.35); outline-offset:2px; }

/* Focus globale accessibile */
:focus-visible{ outline: 3px solid rgba(13,110,253,.35); outline-offset:2px; border-radius:8px; }

/* Gallery responsive e mobile friendly */
.gallery-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 18px; }
@media (min-width: 480px){ .gallery-grid{ grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); } }
@media (min-width: 768px){ .gallery-grid{ grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; } }
@media (min-width: 1200px){ .gallery-grid{ grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); } }
.gallery-item{ display:block; position:relative; border-radius: var(--radius); overflow:hidden; background:#f0f2f5; aspect-ratio: 4 / 3; box-shadow: var(--shadow-sm); }
.gallery-item img{ width:100%; height:100%; object-fit: cover; display:block; transition: transform .35s ease; }
.gallery-item:hover img{ transform: scale(1.04); }
.gallery-item:focus-visible{ outline: 3px solid rgba(13,110,253,.35); outline-offset: 2px; }

/* Migliorie minori */
.inline-image{ border-radius: var(--radius); box-shadow: var(--shadow-md); }
.main-footer{ box-shadow: 0 -1px 0 var(--border) inset; }

/* Animazioni aggiuntive WOW */
.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effetto hover per le liste */
.card ul li {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 0;
}

.card ul li:hover {
    background: rgba(74,144,226,0.05);
    transform: translateX(5px);
    padding-left: 10px;
}

/* Scroll smooth e effetti */
html {
    scroll-behavior: smooth;
}

/* Focus accessibile enhanced */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 8px;
    box-shadow: var(--glow);
}

/* Parallax text effect */
.hero h1, .hero p {
    animation: parallaxText 10s ease-in-out infinite alternate;
}

@keyframes parallaxText {
    0% { transform: translateZ(0); }
    100% { transform: translateZ(20px); }
}

/* Gallery Modal Custom - Mobile Optimized */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    transition: opacity 0.2s ease;
}

.modal-content img.loading {
    opacity: 0.5;
}

/* Gallery Controls */
.gallery-close {
    position: absolute;
    top: -60px;
    right: 0;
    font-size: 2.5em;
    color: white;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: white;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.gallery-prev {
    left: -80px;
}

.gallery-next {
    right: -80px;
}

.gallery-prev:hover, .gallery-next:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .gallery-close {
        top: -50px;
        right: 10px;
        font-size: 2em;
        width: 45px;
        height: 45px;
    }
    
    .gallery-prev, .gallery-next {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    
    .gallery-prev {
        left: -60px;
    }
    
    .gallery-next {
        right: -60px;
    }
    
    .gallery-counter {
        bottom: -40px;
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .gallery-prev {
        left: 10px;
        top: 50%;
    }
    
    .gallery-next {
        right: 10px;
        top: 50%;
    }
    
    .gallery-close {
        top: 10px;
        right: 10px;
    }
    
    .gallery-counter {
        bottom: 10px;
    }
    
    .modal-content img {
        max-height: 70vh;
    }
}

/* Gallery Grid Enhanced */
.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.gallery-item::after {
    content: '⊕';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

/* Cookie Banner GDPR */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(20px);
    color: #e2e8f0;
    padding: 20px;
    z-index: 9999;
    border-top: 2px solid var(--primary);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
    font-size: 0.95em;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--primary-gradient);
    color: white;
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.cookie-btn.reject {
    background: transparent;
    color: #cbd5e0;
    border: 1px solid #4a5568;
}

.cookie-btn.reject:hover {
    background: #4a5568;
    color: white;
}

.cookie-btn.settings {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.cookie-btn.settings:hover {
    background: var(--primary);
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.cookie-modal h3 {
    margin-top: 0;
    color: var(--text);
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
}

.cookie-category h4 {
    margin: 0 0 10px 0;
    color: var(--text);
}

.cookie-category p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: var(--text-light);
}

.cookie-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.switch.active {
    background: var(--primary);
}

.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.switch.active::after {
    transform: translateX(26px);
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .cookie-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
}
