/* ============================================
   DIGITALIZZATI - CSS Styles
   Con 3 palette colori selezionabili
   ============================================ */

/* ---------- CSS Variables / Themes ---------- */

/* Theme A - Blu/Verde (Professionale) - DEFAULT */
:root,
.theme-a {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #3b82f6;
    --color-cta: #10b981;
    --color-cta-dark: #059669;
    --color-cta-light: #34d399;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #1e293b;
    --color-text: #1e293b;
    --color-text-light: #334155;
    --color-text-inverse: #ffffff;
    --color-border: #e2e8f0;
    --color-shadow: rgba(37, 99, 235, 0.1);
    --gradient-hero: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    --color-success: #16A34A;
    --color-error: #DC2626;
    --color-card-bg: #EFF6FF;
}

/* Theme B - Viola/Rosa (Moderno) */
.theme-b {
    --color-primary: #7c3aed;
    --color-primary-dark: #6d28d9;
    --color-primary-light: #8b5cf6;
    --color-cta: #ec4899;
    --color-cta-dark: #db2777;
    --color-cta-light: #f472b6;
    --color-bg: #ffffff;
    --color-bg-alt: #faf5ff;
    --color-bg-dark: #1e1b4b;
    --color-text: #1e1b4b;
    --color-text-light: #374151;
    --color-text-inverse: #ffffff;
    --color-border: #e9d5ff;
    --color-shadow: rgba(124, 58, 237, 0.1);
    --gradient-hero: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 100%);
}

/* Theme C - Teal/Arancione (Energico) */
.theme-c {
    --color-primary: #0d9488;
    --color-primary-dark: #0f766e;
    --color-primary-light: #14b8a6;
    --color-cta: #f97316;
    --color-cta-dark: #ea580c;
    --color-cta-light: #fb923c;
    --color-bg: #ffffff;
    --color-bg-alt: #f0fdfa;
    --color-bg-dark: #134e4a;
    --color-text: #134e4a;
    --color-text-light: #334155;
    --color-text-inverse: #ffffff;
    --color-border: #99f6e4;
    --color-shadow: rgba(13, 148, 136, 0.1);
    --gradient-hero: linear-gradient(135deg, #f0fdfa 0%, #fff7ed 100%);
}

/* Theme D - Light Professional (Nuovo tema principale) */
.theme-d {
    --color-primary: #2563EB;
    --color-primary-dark: #1D4ED8;
    --color-primary-light: #3b82f6;
    --color-cta: #2563EB;
    --color-cta-dark: #1D4ED8;
    --color-cta-light: #3b82f6;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-bg-dark: #1e293b;
    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-text-inverse: #ffffff;
    --color-border: #E2E8F0;
    --color-shadow: rgba(37, 99, 235, 0.1);
    --gradient-hero: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    --color-success: #16A34A;
    --color-error: #DC2626;
    --color-card-bg: #EFF6FF;
}

/* Dark Mode Theme (Tema scuro originale) */
.dark {
    --color-primary: #1b7dca;
    --color-primary-dark: #155a99;
    --color-primary-light: #3b9de8;
    --color-cta: #f97316;
    --color-cta-dark: #ea580c;
    --color-cta-light: #fb923c;
    --color-bg: #0f172a;
    --color-bg-alt: #1e293b;
    --color-bg-dark: #020617;
    --color-text: #f1f5f9;
    --color-text-light: #e2e8f0;
    --color-text-inverse: #0f172a;
    --color-border: #334155;
    --color-shadow: rgba(27, 125, 202, 0.15);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --color-success: #16A34A;
    --color-error: #DC2626;
    --color-card-bg: #1e293b;
}

/* Dark Mode Toggle Button nell'Header */
.theme-toggle-header {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    margin-left: 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.theme-toggle-header:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark .theme-toggle-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle-header svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.theme-toggle-header svg path,
.theme-toggle-header svg circle {
    fill: var(--color-text);
}

.theme-toggle-header svg line {
    stroke: var(--color-text);
    fill: none;
}

.theme-toggle-header:hover svg {
    transform: rotate(20deg);
}

/* Nascondi icone in base al tema */
.theme-toggle-header .icon-sun {
    display: none;
}

.dark .theme-toggle-header .icon-sun {
    display: block;
}

.dark .theme-toggle-header .icon-moon {
    display: none;
}

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ---------- Theme Switcher (Demo Only) ---------- */

.theme-switcher {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background: var(--color-bg);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.theme-btn {
    padding: 6px 12px;
    border: 2px solid var(--color-border);
    background: var(--color-bg);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

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

.theme-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ---------- Container ---------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

/* Font weight mapping (500 → 600, 800 → 700) */
strong, b {
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    color: var(--color-text-light);
}

.highlight {
    color: var(--color-primary);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-cta);
    color: var(--color-text-inverse);
}

.btn-primary:hover {
    background: var(--color-cta-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--color-shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-full {
    width: 100%;
}

/* ---------- Header ---------- */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.logo-domain {
    opacity: 0.7;
    font-weight: 400;
}

.header .logo-text {
    color: var(--color-text);
}

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

.nav-link {
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-cta);
    color: var(--color-text-inverse) !important;
    padding: 10px 20px;
    border-radius: 6px;
}

.nav-cta:hover {
    background: var(--color-cta-dark);
}

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

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

/* ---------- Hero Section ---------- */

.hero {
    padding: 140px 0 80px;
    background: var(--gradient-hero);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: var(--color-text-light);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    position: relative;
    width: 350px;
    height: 350px;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.graphic-circle-1 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    opacity: 0.1;
    top: 0;
    left: 0;
    animation: float 6s ease-in-out infinite;
}

.graphic-circle-2 {
    width: 200px;
    height: 200px;
    background: var(--color-cta);
    opacity: 0.15;
    bottom: 20px;
    right: 0;
    animation: float 5s ease-in-out infinite 1s;
}

.graphic-circle-3 {
    width: 100px;
    height: 100px;
    background: var(--color-primary-light);
    opacity: 0.2;
    top: 50px;
    right: 50px;
    animation: float 4s ease-in-out infinite 0.5s;
}

.graphic-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    color: var(--color-primary);
}

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

/* ---------- Section Styles ---------- */

section {
    padding: 80px 0;
}

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

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
}

/* ---------- Problem Section ---------- */

.problem-section {
    background: var(--color-bg);
}

.problem-header {
    text-align: center;
    margin-bottom: 50px;
}

.problem-header h2 {
    margin-bottom: 12px;
}

.problem-intro {
    font-size: 1.1rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--color-bg-alt);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.problem-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.problem-icon svg {
    width: 100%;
    height: 100%;
}

.problem-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.problem-desc {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.solution-desc {
    color: var(--color-cta-dark);
    font-size: 0.95rem;
}

/* ---------- Services Section ---------- */

.services-section {
    background: var(--color-bg-alt);
}

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

.service-card {
    background: var(--color-bg);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    position: relative;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px var(--color-shadow);
}

.service-primary {
    border-color: var(--color-primary);
    border-width: 2px;
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    margin-bottom: 12px;
}

.service-card > p {
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.service-features li::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--color-cta);
    border-radius: 50%;
    flex-shrink: 0;
}

.service-example {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ---------- Process Section ---------- */

.process-section {
    background: var(--color-bg);
}

.process-steps {
    max-width: 700px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid var(--color-border);
}

.process-step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
}

/* ---------- Why Section ---------- */

.why-section {
    background: var(--color-bg-alt);
}

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

.why-card {
    text-align: center;
    padding: 30px 20px;
}

.why-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--color-primary);
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-card h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.why-card p {
    font-size: 0.9rem;
}

/* ---------- Cases Section ---------- */

/* ---------- Pricing Section ---------- */

.pricing-section {
    background: var(--color-bg-alt);
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.pricing-table th,
.pricing-table td {
    padding: 20px 25px;
    text-align: left;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.pricing-table th:first-child,
.pricing-table td:first-child {
    border-left: none;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table th {
    background: var(--color-primary);
    color: white;
    font-weight: 600;
}


.pricing-table tr:hover td {
    background: var(--color-bg-alt);
}

.pricing-table td strong {
    color: var(--color-text);
}

.price-cell {
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.pricing-note {
    text-align: center;
    max-width: 750px;
    margin: 30px auto 0;
}

.pricing-compare {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ---------- Not For You Section ---------- */

.not-for-you-section {
    background: var(--color-bg);
    padding: 80px 0;
}

.not-for-you-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.not-for-you-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.good-fit-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-success);
}

.not-fit-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-error);
}

.not-for-you-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    transition: all 0.2s;
}

.not-for-you-item.not-match {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.not-for-you-item.good-match {
    background: rgba(22, 163, 74, 0.05);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.not-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-error);
    flex-shrink: 0;
    line-height: 1;
}

.good-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-success);
    flex-shrink: 0;
    line-height: 1;
}

.not-for-you-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- Contact Section ---------- */

.contact-section {
    background: var(--color-bg);
    padding: 100px 0;
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    width: 100%;
}

.contact-info {
    text-align: center;
    width: 100%;
}

/* Stili header */
.contact-header h2 {
    margin-bottom: 16px;
}

.contact-header p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Legacy styles (mantieni per compatibilità) */
.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--color-bg-alt);
    border-radius: 10px;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.contact-method:hover {
    border-color: var(--color-primary);
    transform: translateX(5px);
}

.contact-method svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-whatsapp {
    border-color: #25d366;
}

.contact-whatsapp svg {
    color: #25d366;
}

.contact-whatsapp:hover {
    background: #25d366;
    color: white;
}

.contact-whatsapp:hover svg {
    color: white;
}

/* Contact Form */
/* Quiz Container */
.quiz-container {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    width: 100%;
}

/* Quiz Progress Bar */
.quiz-progress {
    margin-bottom: 30px;
}

.quiz-progress-bar {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.quiz-progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--quiz-progress, 25%);
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.quiz-progress-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
    font-weight: 500;
}

/* Quiz Questions */
.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.quiz-subtitle {
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Quiz Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.quiz-option:hover {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
}

.quiz-option:active {
    transform: translateX(4px) scale(0.98);
}

.option-title {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.option-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Quiz Navigation */
.quiz-navigation {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

.btn-quiz-back {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-quiz-back:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-text-light);
}

/* Quiz Completion Header */
.quiz-completion-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.contact-form {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.form-privacy {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
}

.form-privacy a {
    color: var(--color-text);
    text-decoration: underline;
    font-weight: 600;
}

/* Contact Type Toggle */
.contact-type-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.toggle-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-bg);
}

.toggle-option input {
    display: none;
}

.toggle-option span {
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s;
}

.toggle-option:hover {
    border-color: var(--color-primary);
}

.toggle-option.active {
    border-color: var(--color-primary);
    background: rgba(27, 125, 202, 0.1);
}

.toggle-option.active span {
    color: var(--color-primary);
}

/* Form Row (2 colonne) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-type-toggle {
        flex-direction: column;
        gap: 10px;
    }
}

/* ---------- Footer ---------- */

.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
    color: var(--color-text-inverse);
    margin-bottom: 10px;
}

.footer-brand .logo-icon {
    color: var(--color-text-inverse);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text-inverse);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

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

/* ---------- WhatsApp Float Button ---------- */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    z-index: 99;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-graphic {
        width: 280px;
        height: 280px;
    }

    .hero-cta {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact section - email e whatsapp in colonna singola su mobile */
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .not-for-you-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 0 20px;
        gap: 15px;
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .nav.active {
        max-height: 400px;
        opacity: 1;
        padding: 20px;
    }

    .menu-toggle {
        display: flex;
        order: 2;  /* A destra in mobile */
    }

    .theme-toggle-header {
        order: 1;  /* Prima del burger in mobile */
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
    }

    .theme-switcher {
        top: auto;
        bottom: 100px;
        right: 10px;
        left: 10px;
        justify-content: center;
    }

    .contact-form,
    .quiz-container {
        padding: 25px;
    }

    .quiz-question h3 {
        font-size: 1.25rem;
    }

    .quiz-option {
        padding: 16px;
    }

    .option-title {
        font-size: 1rem;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero-graphic {
        width: 220px;
        height: 220px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    /* Tabella prezzi mobile-friendly */
    .pricing-table,
    .pricing-table thead,
    .pricing-table tbody,
    .pricing-table th,
    .pricing-table td,
    .pricing-table tr {
        display: block;
    }

    .pricing-table {
        background: transparent;
        border: none;
    }

    .pricing-table thead {
        display: none;
    }

    .pricing-table tr {
        margin-bottom: 20px;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        overflow: hidden;
    }

    .pricing-table td {
        border: none !important;
        padding: 12px 15px !important;
        text-align: left !important;
        position: relative;
        padding-left: 45% !important;
        background: var(--color-bg);
    }

    .pricing-table td:before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        font-weight: 600;
        color: var(--color-text);
    }

    .pricing-table tr:hover td {
        background: transparent;
    }

    .pricing-table td:first-child {
        background: var(--color-primary);
        color: white;
        font-weight: 600;
        padding-left: 15px !important;
    }

    .pricing-table td:first-child:before {
        display: none;
    }
}

/* ---------- Light Theme Overrides ---------- */

.theme-d .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.theme-d .service-card,
.theme-d .problem-card,
.theme-d .case-card,
.theme-d .contact-form {
    background: var(--color-bg);
}

.theme-d .service-primary {
    border-color: var(--color-primary);
}

.theme-d .pricing-table {
    background: var(--color-bg);
}

.theme-d .pricing-table tr:hover td {
    background: var(--color-bg-alt);
}

.theme-d .form-group input,
.theme-d .form-group textarea {
    background: var(--color-bg);
    color: var(--color-text);
}

.theme-d .contact-method {
    background: var(--color-bg-alt);
}

.theme-d .contact-whatsapp:hover {
    background: #25d366;
    color: white;
}

.theme-d .btn-primary {
    color: white;
}

.theme-d .nav-cta {
    color: white !important;
}

.theme-d .footer {
    background: var(--color-bg-dark);
}

.theme-d .theme-switcher {
    border: 1px solid var(--color-border);
}

.theme-d .menu-toggle span {
    background: var(--color-text);
}

.theme-d .footer-brand .logo,
.theme-d .footer-brand .logo-icon {
    color: var(--color-primary) !important;
}

.theme-d .footer-brand .logo-text {
    color: #ffffff;
}

/* Dark Mode Overrides */
.dark .header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.dark .footer {
    background: var(--color-bg-dark);
}

.dark .footer-brand .logo,
.dark .footer-brand .logo-icon {
    color: var(--color-primary);
}

.dark .footer-brand .logo-text {
    color: var(--color-text);
}

.dark .footer-brand p {
    color: var(--color-text-light);
}

.dark .footer-links a {
    color: var(--color-text-light);
}

.dark .footer-links a:hover {
    color: var(--color-text);
}

/* Sezioni con background alternativo per maggiore contrasto */
.dark .contact-section {
    background: var(--color-bg-dark);
}

/* Light theme - stesso pattern per coerenza */
.theme-d .contact-section {
    background: #f1f5f9;
}

.dark .footer-bottom p {
    color: var(--color-text-light);
}
