:root {
    --primary: #1a56db; --primary-dark: #1e40af; --primary-light: #eff6ff;
    --green: #057a55; --green-light: #dcfce7; --red: #c81e1e; --red-light: #fee2e2;
    --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb; --gray-300: #d1d5db;
    --gray-500: #6b7280; --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2a37;
    --gray-900: #111928; --white: #ffffff;
    --radius: 10px; --radius-lg: 16px; --radius-xl: 24px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: #f8fafc; color: var(--gray-800); line-height: 1.7; min-height: 100vh; }
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

/* ========== HEADER ========== */
.site-header { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 0.75rem 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); background: rgba(255,255,255,.95); }
.header-inner { display: flex; align-items: center; gap: 1rem; }
.header-logo { font-weight: 800; font-size: 1.25rem; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; flex-shrink: 0; }
.header-logo i { margin-right: 0.5rem; }

/* Menu desktop */
.main-nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; justify-content: center; }
.main-nav a { color: var(--gray-500); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.375rem 0.75rem; border-radius: var(--radius); transition: all 0.15s; white-space: nowrap; }
.main-nav a:hover { color: var(--primary); background: var(--primary-light); }

/* Lingua desktop */
.lang-select { padding: 0.35rem 0.5rem; border: 1px solid var(--gray-200); border-radius: 6px; font-size: 0.8125rem; background: var(--white); color: var(--gray-700); cursor: pointer; font-family: inherit; margin-left: 0.5rem; }

/* Header right */
.header-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.header-user { font-size: 0.8125rem; color: var(--gray-600); white-space: nowrap; }
.btn-sm { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.8125rem; padding: 0.45rem 1rem; border-radius: 9999px; text-decoration: none; transition: all 0.15s; white-space: nowrap; cursor: pointer; font-family: inherit; border: none; }
.btn-sm-primary { background: var(--primary); color: var(--white); }
.btn-sm-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-sm-outline { border: 1.5px solid var(--gray-300); color: var(--gray-700); background: var(--white); }
.btn-sm-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Dropdown utente */
.user-dropdown { position: relative; }
.user-dropdown .dropdown-toggle i.fa-chevron-down { font-size: 0.65rem; margin-left: 0.25rem; transition: transform 0.2s; }
.user-dropdown.open .dropdown-toggle i.fa-chevron-down { transform: rotate(180deg); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 0.5rem); right: 0; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.1); min-width: 200px; z-index: 200; padding: 0.5rem; }
.user-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu .header-user { font-size: 0.8125rem; color: var(--gray-600); white-space: nowrap; padding: 0.5rem 0.75rem; display: block; }
.dropdown-menu a { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0.75rem; color: var(--gray-700); text-decoration: none; font-size: 0.875rem; border-radius: 6px; transition: all 0.1s; }
.dropdown-menu a:hover { background: var(--gray-50); color: var(--primary); }
.dropdown-menu hr { border: none; border-top: 1px solid var(--gray-100); margin: 0.25rem 0; }
.dropdown-menu .logout-link { color: var(--red); }
.dropdown-menu .logout-link:hover { background: var(--red-light); color: var(--red); }

/* Hamburger mobile */
.hamburger-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--gray-700); cursor: pointer; padding: 0.5rem; line-height: 1; z-index: 101; }

/* Overlay mobile */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.mobile-overlay.active { opacity: 1; visibility: visible; }

/* Pannelli mobile */
.mobile-panel { position: fixed; top: 0; right: -320px; width: 300px; height: 100vh; background: var(--white); z-index: 1000; padding: 2rem 1.5rem; overflow-y: auto; transition: right 0.3s ease; box-shadow: -4px 0 20px rgba(0,0,0,0.1); visibility: hidden; }
.mobile-panel.active { right: 0; visibility: visible; }
.mobile-panel .close-panel { position: absolute; top: 1rem; left: 1rem; background: none; border: none; font-size: 1.5rem; color: var(--gray-700); cursor: pointer; padding: 0.5rem; line-height: 1; z-index: 10; }
.mobile-panel .panel-content { margin-top: 2.5rem; }
.mobile-panel .panel-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-panel .panel-nav a, .mobile-panel .panel-nav .panel-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; color: var(--gray-700); text-decoration: none; font-size: 1rem; font-weight: 500; border-radius: var(--radius); transition: all 0.15s; border: none; background: none; cursor: pointer; width: 100%; font-family: inherit; text-align: left; }
.mobile-panel .panel-nav a:hover, .mobile-panel .panel-nav .panel-item:hover { background: var(--primary-light); color: var(--primary); }
.mobile-panel .panel-divider { border: none; border-top: 1px solid var(--gray-100); margin: 0.75rem 0; }
.mobile-panel .panel-header { padding: 0.5rem 1rem; color: var(--gray-600); font-size: 0.9375rem; font-weight: 500; }
.mobile-panel .panel-lang-select { margin-top: 1rem; padding: 0 0.5rem; }
.mobile-panel .panel-lang-select select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 0.9375rem; background: var(--white); color: var(--gray-700); font-family: inherit; }
.mobile-panel .logout-link { color: var(--red) !important; }
.mobile-panel .logout-link:hover { background: var(--red-light) !important; color: var(--red) !important; }

/* ========== HERO ========== */
.hero { text-align: center; padding: 5rem 0 4rem; background: linear-gradient(160deg, #f0f5ff 0%, #f8fafc 60%); }
.hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; color: var(--gray-500); max-width: 650px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1rem; padding: 0.875rem 2rem; border-radius: 9999px; text-decoration: none; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(26,86,219,.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ========== SECTIONS ========== */
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-title { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.section-subtitle { text-align: center; color: var(--gray-500); margin-bottom: 3rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== PRODUCTS ========== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--primary); box-shadow: 0 12px 40px rgba(26,86,219,.1); transform: translateY(-2px); }
.product-card.featured { border-color: var(--primary); border-width: 2px; position: relative; }
.product-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--white); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 1rem; border-radius: 9999px; white-space: nowrap; }
.product-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.product-card .price { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 0.25rem; }
.product-card .price small { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.product-card .period { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.product-card .renew { font-size: 0.875rem; color: var(--green); font-weight: 600; margin-bottom: 1.5rem; }
.product-card .excerpt { color: var(--gray-500); font-size: 0.875rem; margin-bottom: 1.5rem; flex-grow: 1; }
.already-subscribed { background: var(--green-light); color: #14532d; padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; }

/* ========== ABOUT ========== */
.about-content { max-width: 700px; margin: 0 auto; text-align: center; font-size: 1.0625rem; color: var(--gray-600); line-height: 1.8; }

/* ========== STEPS VISUAL ========== */
.steps-visual { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; }
.step-visual { text-align: center; }
.step-visual .step-img { margin-bottom: 1.25rem; transition: transform 0.2s; }
.step-visual .step-img:hover { transform: translateY(-4px); }
.step-visual h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; color: #1f2937; }
.step-visual p { font-size: 0.875rem; color: #6b7280; line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ========== FAQ ========== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 0.75rem; transition: all 0.2s; cursor: pointer; }
.faq-item:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(26,86,219,.08); }
.faq-item h3 { font-size: 1rem; font-weight: 600; color: var(--gray-800); margin-bottom: 0; display: flex; justify-content: space-between; align-items: center; }
.faq-item h3 i { font-size: 0.875rem; color: var(--gray-400); transition: transform 0.2s; }
.faq-item.open h3 i { transform: rotate(180deg); color: var(--primary); }
.faq-answer { display: none; color: var(--gray-600); font-size: 0.9375rem; line-height: 1.7; padding-top: 0.75rem; }
.faq-item.open .faq-answer { display: block; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 600px; margin: 0 auto; }
.contact-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2rem; text-align: center; transition: all 0.2s; }
.contact-card:hover { border-color: var(--primary); box-shadow: 0 8px 30px rgba(26,86,219,.08); }
.contact-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.contact-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.contact-card a { color: var(--gray-600); text-decoration: none; font-size: 0.9375rem; }
.contact-card a:hover { color: var(--primary); }

/* ========== FOOTER ========== */
.footer { text-align: center; color: var(--gray-500); font-size: 0.8125rem; padding: 2rem 0; border-top: 1px solid var(--gray-200); background: var(--white); }
.footer a { color: var(--primary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* ========== CHECKOUT ========== */
.wpab-checkout-container { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; align-items: start; }
.wpab-checkout-summary { position: sticky; top: 100px; }
.wpab-checkout-image { width: 100%; border-radius: 12px; margin-bottom: 1rem; }
.wpab-checkout-total { display: flex; justify-content: space-between; font-size: 1.25rem; margin: 1rem 0; }
.wpab-checkout-secure { text-align: center; font-size: 0.8125rem; color: #6b7280; margin-top: 1rem; }
.wpab-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.wpab-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.wpab-card-subtitle { color: #6b7280; margin-bottom: 1.5rem; }
.wpab-input { width: 100%; padding: 0.875rem 1rem; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: 0.9375rem; font-family: inherit; transition: border-color 0.15s; }
.wpab-input:focus { border-color: #1a56db; outline: none; box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.wpab-input-wrapper { position: relative; margin-bottom: 1rem; }
.wpab-toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #6b7280; font-size: 1.1rem; }
.wpab-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1rem; padding: 0.875rem 2rem; border-radius: 9999px; border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; font-family: inherit; width: 100%; justify-content: center; }
.wpab-btn-primary { background: #1a56db; color: #fff; box-shadow: 0 4px 14px rgba(26,86,219,.3); }
.wpab-btn-primary:hover { background: #1e40af; transform: translateY(-1px); }
.wpab-checkbox-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #374151; margin-bottom: 1rem; }
.wpab-checkbox-item input[type="checkbox"] { accent-color: #1a56db; width: 18px; height: 18px; }
.wpab-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wpab-checkout-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid #e5e7eb; }
.wpab-tab { padding: 0.75rem 1.5rem; background: none; border: none; cursor: pointer; font-weight: 600; color: #6b7280; font-size: 0.9375rem; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; }
.wpab-tab.active { color: #1a56db; border-bottom-color: #1a56db; }
.wpab-checkout-welcome { font-size: 1.125rem; margin-bottom: 1.5rem; color: #374151; }
.wpab-checkout-forgot { text-align: center; margin-top: 0.75rem; }
.wpab-checkout-forgot a { color: #6b7280; font-size: 0.875rem; text-decoration: none; }
.wpab-checkout-forgot a:hover { color: #1a56db; }

/* ========== POPUP COOKIE ========== */
.cookie-popup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: none; justify-content: center; align-items: center; z-index: 99999; padding: 20px; }
.cookie-popup.show { display: flex; }
.cookie-content { background: white; border-radius: 16px; padding: 30px; max-width: 500px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); animation: cookieSlideIn 0.3s ease; }
@keyframes cookieSlideIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-icon { text-align: center; font-size: 48px; margin-bottom: 15px; color: #f59e0b; }
.cookie-content h3 { text-align: center; color: #1e293b; margin-bottom: 10px; font-size: 20px; }
.cookie-content p { text-align: center; color: #64748b; margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.cookie-preferences { background: #f8fafc; border-radius: 10px; padding: 15px; margin-bottom: 20px; }
.cookie-option { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.cookie-option:last-child { border-bottom: none; }
.cookie-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.cookie-checkbox input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }
.option-label { color: #334155; font-size: 14px; }
.option-badge { background: #dcfce7; color: #166534; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cookie-buttons .btn { padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s; }
.cookie-buttons .btn-primary { background: var(--primary); color: white; }
.cookie-buttons .btn-primary:hover { background: #1e40af; }
.cookie-buttons .btn-outline { background: white; color: #334155; border: 1px solid #e2e8f0; }
.cookie-buttons .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.cookie-buttons .btn-secondary { background: #f1f5f9; color: #334155; }
.cookie-buttons .btn-secondary:hover { background: #e2e8f0; }
.cookie-footer { display: flex; justify-content: center; gap: 20px; margin-top: 15px; flex-wrap: wrap; }
.cookie-link { color: #64748b; text-decoration: none; font-size: 13px; display: flex; align-items: center; gap: 5px; transition: color 0.2s; }
.cookie-link:hover { color: var(--primary); }
.cookie-confirmation { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px); background: #057a55; color: white; padding: 12px 24px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 10000; transition: transform 0.3s ease; opacity: 0; }
.cookie-confirmation.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.confirmation-content { display: flex; align-items: center; gap: 10px; }
.confirmation-content i { font-size: 20px; }

/* ========== MODALE IMMAGINI ========== */
.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 99999; justify-content: center; align-items: center; cursor: pointer; }
.image-modal.active { display: flex; }
.image-modal img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: modalZoomIn 0.2s ease; }
@keyframes modalZoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.image-modal .close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 2rem; font-weight: 300; cursor: pointer; z-index: 10; transition: opacity 0.2s; }
.image-modal .close-modal:hover { opacity: 0.7; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: nowrap; justify-content: space-between; }
    .header-logo { font-size: 1.1rem; }
    .main-nav, .header-right .lang-select { display: none !important; }
    .hamburger-toggle { display: flex; align-items: center; justify-content: center; }
    .user-dropdown .dropdown-menu { display: none !important; }
    .contact-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .wpab-checkout-container { grid-template-columns: 1fr; padding: 0; }
    .wpab-checkout-summary { position: static; }
}

@media (max-width: 400px) {
    .header-right .btn-sm span.btn-text { display: none; }
    .header-right .btn-sm i { margin: 0; }
}