/* ==================================================================
   1. VARIABILI E RESET GLOBALE
================================================================== */
:root {
    --bg-color: #FAFAFB;
    --text-dark: #2A2A2A;
    --text-light: #555555;
    --white: #FFFFFF;
    --dark-footer: #1A1A1A;
    
    --magenta: #FF2D8A;
    --viola: #7A3CFF;
    --azzurro: #3FA9FF;
    --turchese: #27D7C6;
    --brand-gradient: linear-gradient(135deg, var(--magenta), var(--viola), var(--azzurro), var(--turchese));
    
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 60px rgba(122, 60, 255, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background-color: var(--bg-color); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ==================================================================
   2. CLASSI UTILITY GLOBALI
================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 120px 0; }
.text-center { text-align: center; }
.section-title { font-size: 2.8rem; margin-bottom: 24px; font-weight: 700; }
.section-subtitle { font-size: 1.2rem; color: var(--text-light); max-width: 700px; margin: 0 auto 60px auto; }

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-block; padding: 16px 36px; background: var(--brand-gradient);
    color: var(--white); font-family: var(--font-heading); font-weight: 600;
    border-radius: 50px; box-shadow: 0 10px 20px rgba(122, 60, 255, 0.2);
    transition: var(--transition); border: none; cursor: pointer; text-align: center;
}
.btn:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(122, 60, 255, 0.4); color: var(--white); }

/* ==================================================================
   3. HEADER & FAB (Bottone Flottante)
================================================================== */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 24px 0; transition: var(--transition); }
header.scrolled { padding: 15px 0; background: rgba(250, 250, 251, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05); }
.header-wrap { display: flex; justify-content: space-between; align-items: center; }
.logo-box { display: flex; align-items: center; }
.header-logo { height: 50px; width: auto; display: block; transition: var(--transition); }
.logo-box:hover .header-logo { transform: scale(1.03); }nav ul { display: flex; gap: 40px; }
nav a { font-weight: 500; font-size: 1rem; transition: color 0.3s; }
nav a:hover { color: var(--magenta); }
nav a.active { color: var(--magenta); }

.fab { position: fixed; bottom: 30px; right: 30px; z-index: 999; background: var(--brand-gradient); color: white; padding: 18px 32px; border-radius: 50px; font-family: var(--font-heading); font-weight: 600; box-shadow: 0 10px 25px rgba(39, 215, 198, 0.4); transition: var(--transition); }
.fab:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 35px rgba(39, 215, 198, 0.6); }

.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 21px; cursor: pointer; z-index: 1001; position: relative; }
.hamburger span { display: block; height: 3px; width: 100%; background-color: var(--text-dark); border-radius: 3px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--magenta); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--magenta); }

/* ==================================================================
   4. SEZIONI HERO (Home e Pagine Interne)
================================================================== */
#hero { padding-top: 160px; padding-bottom: 80px; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-content h1 { font-size: 4rem; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-content p { font-size: 1.25rem; color: var(--text-light); margin-bottom: 40px; max-width: 90%; }
.hero-image { width: 100%; aspect-ratio: 1; background: var(--brand-gradient); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: morph 8s ease-in-out infinite alternate; box-shadow: var(--shadow-soft); display: flex; justify-content: center; align-items: center; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-bg, .hero-bg-graphic, .hero-bg-consulting, .hero-bg-portfolio {
    position: relative; padding: 180px 0 120px 0; background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-bg { background-image: linear-gradient(rgba(250, 250, 251, 0.92), rgba(250, 250, 251, 0.98)), url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1920&q=80'); }
.hero-bg-graphic { background-image: linear-gradient(rgba(250, 250, 251, 0.92), rgba(250, 250, 251, 0.98)), url('https://images.unsplash.com/photo-1561070791-2526d30994b5?auto=format&fit=crop&w=1920&q=80'); }
.hero-bg-consulting { background-image: linear-gradient(rgba(250, 250, 251, 0.92), rgba(250, 250, 251, 0.98)), url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1920&q=80'); }
.hero-bg-portfolio { background-color: var(--bg-color); background-image: radial-gradient(circle at top right, rgba(122, 60, 255, 0.05), transparent 40%); padding: 180px 0 100px 0; }

/* ==================================================================
   5. COMPONENTI COMUNI (Cards, Split, FAQ)
================================================================== */
.benefits-grid, .solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.benefit-card, .sol-card { background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: var(--transition); text-align: center; border: 1px solid rgba(122, 60, 255, 0.05); }
.benefit-card:hover, .sol-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-color: rgba(122, 60, 255, 0.3); }
.b-icon, .sol-icon { width: 70px; height: 70px; background: rgba(122, 60, 255, 0.08); color: var(--viola); border-radius: var(--radius-md); display: flex; justify-content: center; align-items: center; margin: 0 auto 24px auto; transition: var(--transition); }
.benefit-card:hover .b-icon, .sol-card:hover .sol-icon { background: var(--brand-gradient); color: var(--white); transform: scale(1.1); }
.b-icon svg, .sol-icon svg { width: 36px; height: 36px; }
.benefit-card h3, .sol-card h3 { font-size: 1.3rem; margin-bottom: 16px; color: var(--text-dark); line-height: 1.4; }
.benefit-card p, .sol-card p { color: var(--text-light); }

.cta-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); margin: 80px 0; }
.cta-split-img { width: 100%; height: 100%; object-fit: cover; min-height: 450px; }
.cta-split-content { padding: 60px; display: flex; flex-direction: column; justify-content: center; }

/* FAQ Accordion */
.faq-wrapper { max-width: 800px; margin: 60px auto 0 auto; }
.faq-item { background: var(--white); margin-bottom: 15px; border-radius: var(--radius-md); box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow: hidden; border: 1px solid transparent; transition: var(--transition); }
.faq-item.active { border-color: rgba(122, 60, 255, 0.3); }
.faq-header { width: 100%; text-align: left; padding: 24px 30px; background: none; border: none; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-header:hover { color: var(--turchese); }
.faq-icon { font-size: 1.5rem; color: var(--viola); transition: transform 0.4s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--turchese); }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.faq-body { padding: 0 30px 24px 30px; color: var(--text-light); line-height: 1.7; }

/* ==================================================================
   6. PAGINA HOME
================================================================== */
.services-grid-exploded { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 50px; }
.service-box { background: var(--white); padding: 50px 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: var(--transition); position: relative; overflow: hidden; z-index: 1; display: flex; flex-direction: column; }
.service-box::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--brand-gradient); transition: var(--transition); }
.service-box:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(122, 60, 255, 0.15); }
.service-box:hover::before { height: 10px; }
.s-icon { width: 64px; height: 64px; background: rgba(122, 60, 255, 0.1); color: var(--viola); border-radius: 16px; display: flex; justify-content: center; align-items: center; margin-bottom: 30px; }
.s-icon svg { width: 32px; height: 32px; }
.service-box h3 { font-size: 1.6rem; margin-bottom: 15px; }
.s-intro { font-size: 1rem; color: var(--text-dark); font-weight: 500; margin-bottom: 25px; line-height: 1.6; }
.service-box ul { list-style: none; margin-top: auto; }
.service-box ul li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 0.95rem; color: var(--text-light); line-height: 1.5; }
.service-box ul li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--turchese); font-weight: bold; font-size: 1.2rem; }

.reviews-container { display: flex; gap: 30px; overflow-x: auto; padding: 20px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.reviews-container::-webkit-scrollbar { display: none; }
.review-card { min-width: 350px; background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); scroll-snap-align: center; }
.stars { color: #FFB800; font-size: 1.2rem; margin-bottom: 16px; }
.review-text { font-style: italic; margin-bottom: 24px; font-size: 1.05rem; }
.review-author { font-family: var(--font-heading); font-weight: 700; color: var(--text-dark); }
.carousel-dots { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.dot { width: 16px; height: 8px; background-color: #E2E8F0; border-radius: 10px; cursor: pointer; transition: var(--transition); }
.dot:hover { background-color: #CBD5E1; }
.dot.active { width: 40px; background: var(--brand-gradient); }

/* ==================================================================
   7. PAGINA CHI SONO
================================================================== */
.about-text p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-light); line-height: 1.8; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 50px; }
.help-card { background: var(--white); padding: 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: var(--transition); border-left: 5px solid transparent; }
.help-card:hover { transform: translateX(10px); box-shadow: var(--shadow-hover); border-left: 5px solid var(--viola); }
.help-icon { width: 56px; height: 56px; background: rgba(122, 60, 255, 0.1); color: var(--viola); border-radius: 14px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; transition: var(--transition); }
.help-card:hover .help-icon { background: var(--brand-gradient); color: var(--white); transform: scale(1.1); }
.help-icon svg { width: 28px; height: 28px; }
.help-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.help-card p { font-size: 1rem; color: var(--text-light); line-height: 1.6; }
.local-seo-box { background: var(--brand-gradient); color: var(--white); padding: 80px 40px; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-soft); margin: 60px 0; }
.local-seo-box h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 20px; }
.local-seo-box p { font-size: 1.2rem; max-width: 800px; margin: 0 auto; opacity: 0.9; }
.maxi-cta { background-color: var(--white); border: 2px solid #E2E8F0; border-radius: var(--radius-lg); padding: 80px 40px; text-align: center; margin-bottom: 40px; }

/* ==================================================================
   8. PAGINE SERVIZI (Web, Graphic, Consulenza)
================================================================== */
.nine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }
.nine-card { background: var(--white); padding: 40px 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: var(--transition); border: 1px solid rgba(122, 60, 255, 0.1); }
.nine-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--viola); }
.nine-icon { width: 50px; height: 50px; background: rgba(122, 60, 255, 0.08); color: var(--viola); border-radius: 12px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; transition: var(--transition); }
.nine-card:hover .nine-icon { background: var(--brand-gradient); color: var(--white); }
.nine-icon svg { width: 24px; height: 24px; }
.nine-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--text-dark); }
.nine-card p { font-size: 0.95rem; color: var(--text-light); }

/* Blocco "Steps" (I 6 Passi / Consulenze) con sfondo scuro */
.steps-section, .graphic-services-section, .consulting-services-section {
    background-size: cover; background-position: center; background-attachment: fixed; color: var(--white); padding: 120px 0;
}
.steps-section { background-image: linear-gradient(rgba(25, 15, 45, 0.92), rgba(15, 8, 30, 0.96)), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1920&q=80'); }
.graphic-services-section { background-image: linear-gradient(rgba(25, 15, 45, 0.32), rgba(15, 8, 30, 0.66)), url('https://images.unsplash.com/photo-1626785774573-4b799315345d?auto=format&fit=crop&w=1920&q=80'); }
.consulting-services-section { background-image: linear-gradient(rgba(25, 15, 45, 0.92), rgba(15, 8, 30, 0.96)), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1920&q=80'); }

.steps-section .section-title, .graphic-services-section .section-title, .consulting-services-section .section-title { color: var(--white); }
.steps-section .section-subtitle, .graphic-services-section .section-subtitle, .consulting-services-section .section-subtitle { color: rgba(255,255,255,0.8); }

.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 60px; }
.step-box { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 40px; border-radius: var(--radius-lg); display: flex; gap: 24px; backdrop-filter: blur(10px); transition: var(--transition); }
.step-box:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--turchese); }
.step-num { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; line-height: 0.9; opacity: 0.4; }
.step-text h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.step-text p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.7; }

/* ==================================================================
   9. PAGINA PORTFOLIO
================================================================== */
.portfolio-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 50px; }
.filter-btn { padding: 10px 24px; background: var(--white); border: 2px solid #E2E8F0; border-radius: 50px; font-family: var(--font-heading); font-weight: 600; color: var(--text-dark); cursor: pointer; transition: var(--transition); }
.filter-btn:hover { border-color: var(--viola); color: var(--viola); }
.filter-btn.active { background: var(--brand-gradient); border-color: transparent; color: var(--white); box-shadow: 0 8px 20px rgba(122, 60, 255, 0.25); }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; transition: var(--transition); }
.portfolio-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: #E2E8F0; cursor: pointer; display: block; transition: transform 0.4s ease, opacity 0.4s ease; }
.portfolio-item.hide { display: none; }
.portfolio-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.portfolio-overlay { flex-direction: column; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.6)); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; }
.portfolio-item:hover .portfolio-img { transform: scale(1.08); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: var(--white); font-size: 2rem; transform: translateY(20px); transition: transform 0.4s ease; text-align: center; padding: 0 20px; }
.portfolio-item:hover .portfolio-overlay h3 { transform: translateY(0); }
.portfolio-overlay p { color: var(--turchese); font-family: var(--font-body); font-size: 1.1rem; margin-top: 10px; transform: translateY(20px); transition: transform 0.4s ease 0.1s, opacity 0.4s ease 0.1s; opacity: 0; }
.portfolio-item:hover .portfolio-overlay p { transform: translateY(0); opacity: 1; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 8, 30, 0.85); backdrop-filter: blur(8px); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-container { width: 90%; max-width: 1200px; height: 85vh; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; display: flex; box-shadow: 0 25px 50px rgba(0,0,0,0.5); position: relative; transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
.modal-overlay.open .modal-container { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: #f1f5f9; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; z-index: 10; transition: var(--transition); }
.modal-close:hover { background: var(--magenta); color: var(--white); }
.modal-left { flex: 1; overflow-y: auto; padding: 40px; background: #f8fafc; }
.modal-left::-webkit-scrollbar { width: 6px; }
.modal-left::-webkit-scrollbar-track { background: transparent; }
.modal-left::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.modal-image-wrapper img { width: 100%; border-radius: 16px; margin-bottom: 30px; box-shadow: var(--shadow-soft); display: block; }
.modal-right { width: 400px; padding: 60px 40px; background: var(--white); border-left: 1px solid #e2e8f0; display: flex; flex-direction: column; overflow-y: auto; }
.modal-right h2 { font-size: 2.2rem; margin-bottom: 10px; line-height: 1.2; }
.modal-right .modal-cat { color: var(--viola); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 30px; }
.modal-info-block { margin-bottom: 20px; }
.modal-info-block h4 { font-size: 0.9rem; color: var(--text-light); text-transform: uppercase; margin-bottom: 5px; }
.modal-info-block p { font-size: 1.1rem; font-weight: 500; color: var(--text-dark); }
.modal-desc { margin-top: 20px; color: var(--text-light); line-height: 1.8; font-size: 1rem; margin-bottom: 40px; }
.modal-btn { display: inline-block; padding: 16px 0; text-align: center; background: var(--brand-gradient); color: var(--white); font-family: var(--font-heading); font-weight: 600; border-radius: 50px; transition: var(--transition); margin-top: auto; }
.modal-btn:hover { box-shadow: 0 10px 20px rgba(122, 60, 255, 0.3); transform: translateY(-3px); }

/* ==================================================================
   10. CONTATTI E FOOTER
================================================================== */
.contact-box { max-width: 800px; margin: 0 auto; background: var(--white); padding: 60px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.form-group { margin-bottom: 24px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-control { width: 100%; padding: 16px 20px; border: 2px solid #E2E8F0; border-radius: 12px; font-family: var(--font-body); font-size: 1rem; background: var(--bg-color); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--viola); background: var(--white); }
textarea.form-control { min-height: 160px; resize: vertical; }

footer { background: var(--dark-footer); color: var(--white); padding: 80px 0 40px; text-align: center; }
footer h2 { color: var(--white); margin-bottom: 40px; }
.social-icons { display: flex; justify-content: center; gap: 24px; margin-bottom: 40px; }
.social-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-gradient); display: flex; justify-content: center; align-items: center; color: var(--dark-footer); font-weight: bold; font-size: 1.2rem; transition: var(--transition); }
.social-icon:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255, 45, 138, 0.4); color: var(--white); }
.footer-copy { color: #888; font-size: 0.9rem; }

/* ==================================================================
   11. CLASSI DI ANIMAZIONE SCROLL
================================================================== */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.fade-up { transform: translateY(50px); }
.slide-left { transform: translateX(-50px); }
.slide-right { transform: translateX(50px); }
.reveal.active { opacity: 1; transform: translate(0, 0); }

/* ==================================================================
   12. MEDIA QUERIES (RESPONSIVE)
================================================================== */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 40px auto; }
    .hero-image { max-width: 500px; margin: 0 auto; }
    .benefits-grid, .solutions-grid, .steps-grid, .cta-split, .help-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .cta-split-img { min-height: 300px; }
    nav ul { display: none; /* In futuro metteremo un menu hamburger */ }
    .hamburger { display: flex; }
    #main-nav { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: rgba(250, 250, 251, 0.98); backdrop-filter: blur(15px); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1000; }
    #main-nav.active { right: 0; }
    .main-menu { flex-direction: column; gap: 30px; text-align: center; }
    .main-menu a { font-size: 1.5rem; }
    
    /* Regole per sottomenu su Mobile */
    .has-dropdown > a { justify-content: center; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; display: none; padding: 15px 0 0 0; min-width: 100%; }
    .has-dropdown.open .dropdown { display: flex; }
    .dropdown a { font-size: 1.1rem; color: var(--text-light); }
    .dropdown a:hover { background: transparent; padding-left: 0; }
    /* Ingrandisce l'area cliccabile (touch target) della freccetta su mobile */
    .has-dropdown > a svg { padding: 15px; margin: -15px; box-sizing: content-box; }
    
    /* Responsive Modale Portfolio */
    .modal-container { flex-direction: column; height: 90vh; }
    .modal-right { width: 100%; border-left: none; border-top: 1px solid #e2e8f0; padding: 40px 30px; }
    .modal-left { padding: 30px 20px; }
    
    
}

@media (max-width: 768px) {
    .section-pad { padding: 80px 0; }
    .section-title { font-size: 2.2rem; }
    .hero-content h1 { font-size: 3rem; }
    .contact-box { padding: 30px; }
    .fab { width: calc(100% - 40px); right: 20px; bottom: 20px; text-align: center;
    .error-code { font-size: 6rem; } .error-title { font-size: 1.8rem; } .error-text { font-size: 1rem; }}
}
/* ==================================================================
   13. MENU DROPDOWN (Sottomenu)
================================================================== */
.main-menu { display: flex; gap: 30px; align-items: center; }
.has-dropdown { position: relative; padding: 10px 0; }
.has-dropdown > a { display: flex; align-items: center; gap: 6px; }
.dropdown { position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: var(--shadow-hover); border-radius: var(--radius-md); padding: 10px 0; min-width: 250px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: var(--transition); display: flex; flex-direction: column; z-index: 100; }
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 12px 24px; display: block; color: var(--text-dark); font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.dropdown a:hover { background: rgba(122, 60, 255, 0.05); color: var(--viola); padding-left: 30px; }

/* ==================================================================
   14. PAGINA 404
================================================================== */
.error-section { min-height: calc(100vh - 200px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 180px 24px 100px; background-color: var(--bg-color); background-image: radial-gradient(circle at center, rgba(122, 60, 255, 0.05), transparent 60%); }
.error-code { font-family: var(--font-heading); font-size: 10rem; font-weight: 800; line-height: 1; margin-bottom: 20px; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; filter: drop-shadow(0 10px 20px rgba(122, 60, 255, 0.2)); }
.error-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--text-dark); }
.error-text { font-size: 1.2rem; color: var(--text-light); max-width: 600px; margin: 0 auto 40px auto; line-height: 1.6; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }
.floating-error { animation: float 4s ease-in-out infinite; }
/* ==================================================================
   15. COOKIE BANNER GDPR
================================================================== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 24px;
    max-width: 400px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: bottom 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #E2E8F0;
}
.cookie-banner.show {
    bottom: 24px;
}
.cookie-title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; color: var(--text-dark); }
.cookie-text { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.5; }
.cookie-text a { color: var(--viola); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; }
.cookie-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}
.cookie-btn-accept { background: var(--brand-gradient); color: var(--white); }
.cookie-btn-reject { background: #f1f5f9; color: var(--text-dark); }
.cookie-btn-accept:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(122, 60, 255, 0.3); }
.cookie-btn-reject:hover { background: #e2e8f0; }

@media (max-width: 768px) {
    .cookie-banner { left: 16px; right: 16px; max-width: none; width: auto; padding: 20px; }
    .cookie-buttons { flex-direction: column; }
}
 