/* =========================================
   CAMERA.CSS - STILI UNIFICATI PER SEZIONE CAMERA
   Include: header, footer, layout base + stili quiz
   VERSIONE OTTIMIZZATA PER RENDERING - TUTTE LE CLASSI MANTENUTE
   ========================================= */

/* ===== VARIABILI GLOBALI (UNIFICATE) ===== */
:root {
    /* Variabili base (da sonno.css) */
    --bg-body: #f8fafc;       
    --bg-card: #ffffff;       
    --bg-accent-light: #e0f2fe; 
    --text-main: #334155;     
    --text-heading: #0f172a;  
    --text-muted: #64748b;    
    --primary: #2563eb;       
    --primary-hover: #1d4ed8; 
    --accent: #d97706;        
    --success: #16a34a;       
    --danger: #dc2626;        
    --border: #e2e8f0;        
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    
    /* Variabili home page */
    --primary: #1e3a5f;
    --primary-light: #2b4c7c;
    --secondary: #7c3aed;
    --accent: #f59e0b;
    --bg-light: #f8fafc;
    --text-dark: #0f2a3f;
    --text-soft: #334155;
    --white: #ffffff;
    --shadow: 0 20px 40px -15px rgba(0,20,40,0.2);
    --shadow-hover: 0 30px 50px -15px rgba(0,20,40,0.3);
    --radius-lg: 48px;
    --radius-md: 24px;
    --radius-sm: 16px;
}

/* ===== RESET E BASE ===== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 18px;
}

h1, h2, h3, h4 { 
    color: var(--text-heading); 
    line-height: 1.2; 
    margin-bottom: 1rem; 
}

h1 { 
    font-size: 2.5rem; 
    font-weight: 800; 
    letter-spacing: -0.05rem; 
    background: linear-gradient(120deg, var(--primary), var(--text-heading));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

h2 { 
    font-size: 1.8rem; 
    margin-top: 3rem; 
    border-left: 5px solid var(--accent); 
    padding-left: 15px; 
}

h3 { 
    font-size: 1.4rem; 
    margin-top: 2rem; 
    color: var(--primary); 
}

h4 { 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--text-muted); 
    margin-top: 1.5rem; 
}

p { 
    margin-bottom: 1.5rem; 
}

strong { 
    color: var(--text-heading); 
}

a { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.2s; 
}

a:hover { 
    text-decoration: underline; 
    color: var(--primary-hover); 
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* ========== HEADER & MOBILE MENU ========== */
header {
    background: var(--bg-card);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.5px; color: var(--text-heading); z-index: 1001; }
.logo span { color: var(--primary); }

/* Wrapper per i controlli a destra */
.header-controls {
    display: flex; 
    gap: 15px; 
    align-items: center;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-heading);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    z-index: 1002;
}
.theme-toggle:hover { background: var(--bg-body); border-color: var(--primary); }

/* Hamburger (Nascosto su desktop) */
.hamburger {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-heading);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1003;
    padding: 0.5rem;
}

/* Navigazione Desktop */
.desktop-nav {
    display: flex;
    gap: 15px;
}
.desktop-nav a {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Menu Mobile (separato) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.3s ease-in-out;
    box-shadow: -10px 0 20px rgba(0,0,0,0.2);
    z-index: 1003;
}
.mobile-nav.nav-active {
    right: 0;
}
.mobile-nav a {
    margin-right: 0;
    font-size: 1.2rem;
    border-bottom: 2px solid transparent;
}
.mobile-nav a:hover {
    border-bottom-color: var(--primary);
    text-decoration: none;
}

/* MEDIA QUERY MOBILE */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .desktop-nav { display: none; }
}

/* Desktop */
@media (min-width: 769px) {
    .hamburger { display: none; }
    .mobile-nav { display: none; }
}

/* ===== FOOTER ===== */
footer {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sources-list { 
    list-style: none; 
    text-align: left; 
    margin-top: 2rem; 
    font-size: 0.85rem; 
}

.sources-list li { 
    margin-bottom: 0.5rem; 
    padding-left: 1.5rem; 
    position: relative; 
}

.sources-list li::before { 
    content: "🔗"; 
    position: absolute; 
    left: 0; 
    filter: grayscale(1); 
    opacity: 0.5; 
}

/* ===== SUBMENU GILDA ===== */
.camera-subnav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.camera-subnav .container {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.95rem;
}

.camera-subnav-link {
    color: var(--text-heading);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.camera-subnav-link:hover {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.camera-subnav-separator {
    color: var(--text-muted);
    font-weight: 300;
}

/* ===== STILI QUIZ BASE ===== */
.camera-container {
    max-width: 780px;
    margin: 40px auto;
	padding: 0 1.5rem;  /* ← AGGIUNGI QUESTA RIGA */
}

.camera-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 48px;
    box-shadow: 0 30px 60px -20px rgba(25, 65, 105, 0.3);
    overflow: hidden;
    padding: 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Progress bar */
.camera-progress-container {
    height: 12px;
    background: #dbe4ed;
    border-radius: 100px;
    margin-bottom: 28px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05) inset;
}

.camera-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #db2777);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 12px #3b82f6;
}

/* Titoli e testi quiz */
.camera-title {
    font-size: 2.1rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #0f2b40, #234a6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.camera-subhead {
    color: #33638b;
    margin-bottom: 28px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.camera-subhead span {
    background: #d1e0f0;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    color: #113755;
    font-weight: 600;
}

.camera-question-badge {
    background: #e1eefb;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #234e73;
    display: inline-block;
    margin-right: 12px;
}

.camera-question-text {
    font-size: 1.45rem;
    font-weight: 670;
    margin-bottom: 26px;
    color: #0a2338;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Bottoni risposta */
.camera-answers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.camera-answer-btn {
    background: white;
    border: 2px solid #cbdae9;
    border-radius: 80px;
    padding: 18px 24px 18px 68px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    color: #142f46;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(29, 53, 86, 0.08);
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.camera-answer-btn::before {
    content: '';
    position: absolute;
    left: 24px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid #8ba4c2;
    background: white;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.camera-answer-btn.selected {
    background: #ecf3fe;
    border-color: #2563eb;
    transform: scale(1.01);
    box-shadow: 0 10px 20px -12px #1e4fd0;
}

.camera-answer-btn.selected::before {
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.2), 0 0 0 2px white inset;
}

.camera-answer-emoji {
    font-size: 1.3rem;
    margin-right: 8px;
}

/* Pulsanti */
.camera-btn-primary {
    background: linear-gradient(145deg, #1b3b57, #102c40);
    color: white;
    border: none;
    border-radius: 80px;
    padding: 20px 32px;
    font-size: 1.25rem;
    font-weight: 650;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 24px;
    box-shadow: 0 20px 30px -12px #102c40;
    border: 1px solid rgba(255,255,255,0.2);
}

.camera-btn-primary:disabled {
    background: #b0c6db;
    box-shadow: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.camera-btn-primary:active:not(:disabled) {
    transform: scale(0.97);
}

.camera-btn-secondary {
    background: transparent;
    border: 2px solid #b6cfec;
    color: #1e3f60;
    font-weight: 600;
    padding: 18px 26px;
    border-radius: 60px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.15s;
}

.camera-btn-secondary:hover {
    background: #e2efff;
    border-color: #7fa4cc;
}

/* Profilo risultato */
.camera-profile-icon {
    font-size: 5.8rem;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 12px 14px #bacfe3);
    animation: gentlePulse 3s infinite ease-in-out;
}

.camera-profile-name {
    font-size: 2.3rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    background: linear-gradient(125deg, #183c58, #2d577b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.camera-profile-desc {
    font-size: 1.1rem;
    color: #1f405e;
    margin-bottom: 36px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
    padding: 28px;
    border-radius: 36px;
    text-align: left;
    border: 1px solid white;
}

.camera-next-box {
    background: linear-gradient(125deg, #12334b, #1b4a6b);
    color: white;
    padding: 30px 22px;
    border-radius: 40px;
    margin: 24px 0 20px;
}

.camera-next-label {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9ac0dd;
    margin-bottom: 12px;
}

.camera-next-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: white;
}

.camera-link {
    display: inline-block;
    background: white;
    color: #123a55;
    text-decoration: none;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 60px;
    font-size: 1.15rem;
    transition: all 0.15s;
    border: 2px solid white;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    text-align: center;
}

.camera-link:hover {
    background: #f2f8ff;
    transform: scale(1.02);
    box-shadow: 0 10px 20px -10px #152e41;
}

/* Utility */
.camera-hidden {
    display: none !important;
}

/* ===== SUPERQUIZ (estensioni) ===== */
.superquiz-container {
    max-width: 820px;
    margin: 0 auto;
}

.superquiz-container .camera-card {
    padding: 36px 28px;
}

.superquiz-container .camera-progress-container {
    height: 14px;
}

.superquiz-container .camera-progress-fill {
    background: linear-gradient(90deg, #2563eb, #a855f7, #ec4899);
    box-shadow: 0 0 16px #3b82f6;
}

.superquiz-container .camera-title {
    font-size: 2.3rem;
    background: linear-gradient(135deg, #0b2b44, #2b4f72, #4f3b7c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.superquiz-container .camera-answer-btn {
    padding: 20px 28px 20px 76px;
    min-height: 88px;
    font-size: 1.15rem;
}

.superquiz-container .camera-answer-btn::before {
    left: 28px;
    width: 32px;
    height: 32px;
}

.superquiz-container .camera-answer-btn.selected::before {
    box-shadow: 0 0 0 5px rgba(37,99,235,0.2);
}

.superquiz-container .camera-btn-primary {
    background: linear-gradient(145deg, #1b3f5c, #0e2b40);
    padding: 22px 36px;
    font-size: 1.3rem;
    box-shadow: 0 25px 35px -15px #102c40;
}

.superquiz-container .camera-profile-icon {
    font-size: 6.5rem;
    animation: gentlePulse 3s infinite ease-in-out;
}

.superquiz-container .camera-profile-name {
    font-size: 2.5rem;
    background: linear-gradient(125deg, #1a3f5c, #2f5b83, #5e3a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.superquiz-container .camera-next-box {
    background: linear-gradient(125deg, #12334b, #1f4a6b, #2a3f6e);
    padding: 36px 28px;
}

.superquiz-container .camera-next-title {
    font-size: 2rem;
}

.superquiz-container .camera-link {
    padding: 20px 42px;
    font-size: 1.2rem;
    max-width: 360px;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #1a1a1a;
    color: white;
    border-top: 3px solid #333333;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    animation: slideUp 0.4s ease-out;
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-flex p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.banner-link {
    color: #f4f4f4;
    text-decoration: underline;
    font-weight: 600;
}

.btn-privacy-close {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    background: white;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-privacy-close:hover {
    background: #cccccc;
}

/* ===== HOME PAGE GILDA ===== */
/* CONTAINER PRINCIPALE */
.home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* HEADER CON NAVIGAZIONE */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 2px dashed rgba(30, 58, 95, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 8px 12px rgba(124, 58, 237, 0.3));
}

.logo-text h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e3a5f, #5b21b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.logo-text p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 40px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all 0.2s;
}

.nav-links a:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* INTRO SECTION - IL SENSO DEL GIOCO */
.intro-section {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin: 40px 0 60px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.9);
}

.intro-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(125deg, #0f2a3f, #3b2e7c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.intro-highlight {
    color: var(--secondary);
    font-weight: 700;
}

.intro-text {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 900px;
    margin-bottom: 32px;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 40px 0 20px;
}

.intro-card {
    background: white;
    padding: 28px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
    border: 1px solid #e9f0f8;
    transition: transform 0.2s;
}

.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.intro-card-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.intro-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.intro-card p {
    color: var(--text-soft);
}

/* SEZIONE QUIZ - I 3 PERCORSI */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 60px 0 30px;
    color: var(--primary);
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(to bottom, #2563eb, #a855f7);
    border-radius: 6px;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0 20px;
}

.quiz-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
    display: flex;
    flex-direction: column;
}

.quiz-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.quiz-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    z-index: 2;
}

.quiz-header {
    padding: 30px 25px 20px;
    background: linear-gradient(145deg, #f0f7ff, #ffffff);
}

.quiz-icon {
    font-size: 3.8rem;
    margin-bottom: 16px;
}

.quiz-header h3 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}

.quiz-meta {
    display: flex;
    gap: 16px;
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.quiz-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.quiz-desc {
    padding: 0 25px 20px;
    color: var(--text-soft);
    flex-grow: 1;
}

.quiz-profiles {
    padding: 0 25px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-tag {
    background: #eef2ff;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: var(--primary);
    border: 1px solid #cbd5e1;
}

.quiz-footer {
    padding: 20px 25px 30px;
    border-top: 1px solid #e9f0f8;
}

.quiz-button {
    display: inline-block;
    background: linear-gradient(145deg, #1e3a5f, #2d4f7a);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 20px -8px #1e3a5f;
}

.quiz-button:hover {
    background: linear-gradient(145deg, #2d4f7a, #1e3a5f);
    transform: scale(1.02);
    box-shadow: 0 15px 25px -8px #1e3a5f;
}

.button-small {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary-light);
    box-shadow: none;
    margin-top: 12px;
    padding: 14px 24px;
}

.button-small:hover {
    background: var(--primary-light);
    color: white;
}

/* SEZIONE ARTICOLI */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.article-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.article-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.article-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.article-card p {
    color: var(--text-soft);
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-link {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-link:hover {
    gap: 10px;
    color: var(--primary);
}

/* MATRICE RIASSUNTIVA */
.matrix-section {
    margin: 60px 0;
    background: linear-gradient(145deg, #0f2a3f, #1b3f5c);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: white;
}

.matrix-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: white;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.matrix-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-sm);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.matrix-item h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #fbbf24;
}

.matrix-item ul {
    list-style: none;
}

.matrix-item li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.matrix-item li a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.3);
}

.matrix-item li a:hover {
    border-bottom-color: white;
}



/* ===== SOCIAL SHARE BUTTONS ===== */
.social-share-container {
    display: flex;
    align-items: center;
    justify-content: center;  /* CENTRATO */
    gap: 16px;                /* più spazio tra i bottoni */
    margin: 3rem auto;        /* centrato automaticamente */
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 600px;         /* larghezza massima */
    width: 100%;
}

.social-share-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;              /* PIÙ GRANDI: 48px invece di 40px */
    height: 48px;              /* PIÙ GRANDI */
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-share-btn:hover {
    transform: translateY(-4px);  /* effetto più evidente */
    text-decoration: none;
    box-shadow: var(--shadow-hover, 0 10px 20px rgba(0,0,0,0.1));
}

.social-share-btn.social-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-share-btn.social-whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.social-share-btn.social-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.social-icon {
    width: 24px;              /* icone più grandi */
    height: 24px;
    display: block;
}

@media (max-width: 480px) {
    .social-share-container {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .social-share-label {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .social-share-btn {
        width: 44px;           /* comunque grandi anche su mobile */
        height: 44px;
    }
}

/* FAQ SECTION - ACCORDION SOLO CSS */
.faq-section {
    margin: 70px 0 40px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.9);
}

.faq-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ACCORDION PURE CSS CON DETAILS/SUMMARY */
details {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    overflow: hidden;
}

details:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

details[open] {
    background: #fafdff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.08);
}

summary {
    padding: 22px 28px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 60px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '▼';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--primary-light);
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 28px 28px 28px;
    color: var(--text-soft);
    line-height: 1.6;
    border-top: 1px dashed #d1e0f0;
    margin-top: 0;
}

.faq-answer p {
    margin-top: 20px;
}


/* FIX PER FAQ - Supporto classi camera- */
.camera-faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.camera-faq-item, 
details.camera-faq {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    overflow: hidden;
}

.camera-faq-item:hover,
details.camera-faq:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.camera-faq-item[open],
details.camera-faq[open] {
    background: #fafdff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.08);
}

.camera-faq-item summary,
details.camera-faq summary {
    padding: 22px 28px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 60px;
}

.camera-faq-item summary::-webkit-details-marker,
details.camera-faq summary::-webkit-details-marker {
    display: none;
}

.camera-faq-item summary::after,
details.camera-faq summary::after {
    content: '▼';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--primary-light);
    transition: transform 0.3s;
}

.camera-faq-item[open] summary::after,
details.camera-faq[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.camera-faq-answer {
    padding: 0 28px 28px 28px;  /* QUESTO È IL PADDING CHE MANCAVA */
    color: var(--text-soft);
    line-height: 1.6;
    border-top: 1px dashed #d1e0f0;
    margin-top: 0;
}

.camera-faq-answer p {
    margin-top: 20px;
}

.camera-faq-answer ul,
.camera-faq-answer ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}


/* FOOTER (per la home) */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px dashed rgba(30, 58, 95, 0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--text-soft);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-soft);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== MEDIA QUERY ===== */
/* Media query raggruppate per modulo ma mantenute separate */

/* Mobile per submenu */
@media (max-width: 768px) {
    .camera-subnav .container {
        gap: 16px;
        padding: 0 16px;
    }
    .camera-subnav-separator {
        display: none;
    }
}

/* Header mobile */
@media (max-width: 768px) {
    .hamburger { 
        display: block; 
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.3s ease-in-out;
        box-shadow: -10px 0 20px rgba(0,0,0,0.2);
        z-index: 1001;
    }
    
    nav.nav-active { 
        right: 0; 
    }

    nav a { 
        margin-right: 0; 
        font-size: 1.2rem; 
        border-bottom: 2px solid transparent;
    }
    nav a:hover { 
        border-bottom-color: var(--primary); 
        text-decoration: none; 
    }
}

/* Responsive generale */
@media (max-width: 640px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .camera-title { font-size: 1.8rem; }
    .camera-profile-name { font-size: 1.8rem; }
    .camera-next-title { font-size: 1.4rem; }
    .camera-card { padding: 24px 16px; }
}

/* Responsive per home */
@media (max-width: 640px) {
    .intro-title { font-size: 2rem; }
    .intro-section { padding: 30px 20px; }
    .section-title { font-size: 1.8rem; }
    .quiz-header h3 { font-size: 1.6rem; }
}

/* Cookie banner mobile */
@media (max-width: 600px) {
    .banner-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== ANIMAZIONI GLOBALI ===== */
@keyframes gentlePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}


/* =========================================
   FIX MOBILE OVERFLOW - 
   ========================================= */

/* 1. Forza il contenimento su tutti gli elementi */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* =========================================
   INTEGRAZIONE STILI ARTICOLO E FIX MOBILE
   ========================================= */

/* Spaziature e background ricorrenti */
.camera-mb-2 { margin-bottom: 2rem; }
.camera-mt-0 { margin-top: 0; }
.camera-spacing-y { margin: 2rem 0; }
.camera-bg-accent { background: var(--bg-accent-light); }
.camera-text-center { text-align: center; }

/* Tag e Badge */
.camera-tags-wrap { display: flex; gap: 1rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.camera-tag { background: var(--bg-accent-light); padding: 0.5rem 1rem; border-radius: 40px; font-size: 0.9rem; }

/* Griglie interne all'articolo */
.camera-grid-autofit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem; }
.camera-grid-autofit-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.camera-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

/* Liste "5 Motivi" (Flex Cards) */
.camera-flex-card { display: flex; gap: 1.5rem; margin-bottom: 2rem; background: var(--bg-body); padding: 1.5rem; border-radius: var(--radius-md); }
.camera-flex-icon { font-size: 3rem; line-height: 1; }

/* Box Errori (Alert) */
.camera-alert-danger { background: #fff0f0; padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; border-left: 4px solid var(--danger); }
.camera-alert-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.camera-alert-title { margin-top: 0; color: var(--danger); }
.camera-text-success { color: var(--success); }
.camera-text-danger { color: var(--danger); }

/* Componenti di prodotto interni */
.camera-product-card { padding: 1.5rem; border-radius: var(--radius-md); } /* Estensione se mancante nel core */
.camera-image-mock { background: var(--bg-body); padding: 2rem; border-radius: var(--radius-md); text-align: center; font-size: 5rem; }
.camera-feature-list { list-style-type: none; padding: 0; }
.camera-feature-item { margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.camera-feature-icon { color: var(--primary); }

.camera-card-inner { background: var(--bg-body); padding: 1.5rem; border-radius: var(--radius-md); }
.camera-card-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

/* Link extra e Footer */
.camera-index-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.camera-index-link:hover { text-decoration: underline; }
.camera-link-sm { max-width: 200px; margin: 1rem 0; }
.camera-footer-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* Fix Tabelle su Mobile (Fondamentale per evitare overflow orizzontale) */
.camera-table-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.camera-comparison-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.camera-comparison-table th, .camera-comparison-table td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; }
.camera-comparison-table th { background: var(--bg-accent-light); color: var(--text-heading); }

/* =========================================
   MEDIA QUERIES (IL VERO FIX PER IL MOBILE)
   ========================================= */
@media (max-width: 768px) {
    /* Impila i modelli (Anna, Paola, Gioia) */
    .camera-grid-2 { grid-template-columns: 1fr; gap: 1.5rem; }
    
    /* Impila l'icona e il testo dei "5 Motivi" */
    .camera-flex-card { flex-direction: column; gap: 1rem; }
    .camera-flex-icon { font-size: 2.5rem; }
    
    /* Ridimensiona l'immagine finta */
    .camera-image-mock { font-size: 3.5rem; padding: 1.5rem; }
    
    /* I link bottoni nel footer prendono tutta la larghezza */
    .camera-link-sm { max-width: 100%; margin: 0.5rem 0; }
}

