/* Derivado do CSS do original para clone fiel local. */
.langsw { position: relative; display: inline-flex; align-items: center; }
.langsw-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1.5px solid #eee; border-radius: 50px;
    background: #fff; color: #333; font-family: "Outfit", sans-serif;
    font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1;
    transition: border-color .2s, background .2s; white-space: nowrap;
}
.langsw-trigger:hover { border-color: #FF8A3D; background: #FFF8F0; }
.langsw-trigger .fi { width: 18px; height: 13px; border-radius: 2px; flex-shrink: 0; }
.langsw-code { font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.langsw-chevron { width: 10px; height: 10px; flex-shrink: 0; transition: transform .2s; color: #999; }
.langsw.open .langsw-chevron { transform: rotate(180deg); }
.langsw-panel {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1px solid #eee; border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,.10); min-width: 170px;
    z-index: 2000; padding: 6px; max-height: 340px; overflow-y: auto;
}
.langsw.open .langsw-panel { display: block; }
.langsw-item {
    display: flex; align-items: center; gap: 9px; padding: 8px 10px;
    border-radius: 8px; font-size: 14px; color: #333;
    text-decoration: none; transition: background .15s; white-space: nowrap;
}
.langsw-item:hover { background: #FFF8F0; }
.langsw-item-active { background: #FFF8F0; font-weight: 600; color: #FF8A3D; }
.langsw-item .fi { width: 20px; height: 15px; border-radius: 2px; flex-shrink: 0; }
@media (max-width: 900px) {
    .langsw-panel { right: auto; left: 0; }
}
    /* selettore lingua sotto il logo (recupera i 64px vuoti del blocco logo) */
    .sidebar-logo { padding-bottom: 0.75rem !important; margin-bottom: 0.75rem !important; }
    .sidebar-logo .langsw { display: flex; margin-top: 0.6rem; }
    .sidebar-logo .langsw-trigger { width: 100%; justify-content: center; padding: 5px 6px; font-size: 13px; }
    .sidebar-logo .langsw-code { font-size: 12px; }
    .sidebar-logo .langsw-panel { top: calc(100% + 6px); bottom: auto; left: -12px; right: auto; min-width: 150px; }
        :root {
            --primary-orange: #FF8A3D;
            --primary-orange-dark: #e07b2d;
            --text-dark: #1a1a1a;
            --text-gray: #666666;
            --text-light: #9ca3af;
            --bg-gray: #f8f9fa;
            --white: #ffffff;
            --border-light: #e5e7eb;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
            --sidebar-width: 140px;
        }

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

        body {
            font-family: 'Libre Baskerville', serif;
            line-height: 1.6;
            color: var(--text-dark);
            background: var(--bg-gray);
            overflow-x: hidden;
        }

        /* Sidebar */
        .sidebar {
            position: fixed;
            left: 0;
            top: 0;
            width: var(--sidebar-width);
            height: 100vh;
            background: var(--white);
            border-right: 1px solid var(--border-light);
            padding: 2rem 0;
            display: flex;
            flex-direction: column;
            z-index: 1000;
            transition: transform 0.3s ease;
        }

        .sidebar-logo {
            padding: 0 1.5rem 2rem;
            border-bottom: 1px solid var(--border-light);
            margin-bottom: 2rem;
            text-align: center;
        }

        .sidebar-logo img {
            width: 40px;
            height: 40px;
            margin-bottom: 0.5rem;
        }

        .sidebar-logo-text {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        .sidebar-nav {
            flex: 1;
            overflow-y: auto;
        }

        .nav-item {
            padding: 0.75rem 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 0.5rem;
            text-decoration: none;
            color: var(--text-gray);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .nav-item:hover {
            background: var(--bg-gray);
            color: var(--primary-orange);
        }

        .nav-item.active {
            background: rgba(255, 138, 61, 0.1);
            color: var(--primary-orange);
            border-right: 3px solid var(--primary-orange);
        }

        .nav-item i {
            font-size: 1.5rem;
        }

        .nav-item span {
            font-size: 0.85rem;
            font-weight: 500;
        }

        .sidebar-footer {
            padding: 1rem 1.5rem;
            border-top: 1px solid var(--border-light);
        }

        .logout-btn {
            width: 100%;
            padding: 0.75rem;
            background: var(--primary-orange);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .logout-btn:hover {
            background: var(--primary-orange-dark);
            transform: translateY(-1px);
        }

        /* Mobile Toggle */
        .mobile-toggle {
            display: none;
            position: fixed;
            top: 1rem;
            left: 1rem;
            z-index: 1001;
            background: white;
            border: none;
            padding: 0.75rem;
            border-radius: 8px;
            box-shadow: var(--shadow);
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--text-dark);
        }

        /* Main Content */
        .main-content {
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            padding: 3rem;
        }

        .page-header {
            margin-bottom: 3rem;
            text-align: center;
        }
        /* Per un ospite sotto il titolo non c'e' ne' il sottotitolo ne' il
           titolo di sezione: con i 3rem pieni restava un buco fino al selettore. */
        .page-header.compact { margin-bottom: 1.2rem; }

        .page-title {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
        }

        .page-subtitle {
            font-size: 1.1rem;
            color: var(--text-gray);
        }

        /* Toggle Container */
        .toggle-container {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 3rem;
        }

        .toggle-button {
            background: var(--white);
            border: 2px solid var(--border-light);
            border-radius: 30px;
            padding: 12px 30px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            color: var(--text-gray);
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .toggle-button.active {
            background: var(--primary-orange);
            color: white;
            border-color: var(--primary-orange);
        }

        .toggle-button:hover:not(.active) {
            border-color: var(--primary-orange);
            color: var(--primary-orange);
        }

        /* Pricing Grid */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.25rem;
            max-width: 1320px;
            margin: 0 auto;
            align-items: stretch;
        }

        /* Il riquadro Free non ha prezzo da confrontare: un bordo leggero lo
           stacca dai piani a pagamento senza rubare loro attenzione. */
        .pricing-card.free-card {
            border-color: var(--border-light);
            box-shadow: none;
            background: #fcfcfc;
        }

        .pricing-card.free-card .btn {
            background: var(--white);
            color: var(--primary-orange);
            border: 2px solid var(--primary-orange);
        }

        .pricing-card.free-card .btn:hover {
            background: var(--primary-orange);
            color: var(--white);
        }

        /* Pricing Cards */
        .pricing-card {
            background: var(--white);
            padding: 2.5rem 2rem;
            border-radius: 16px;
            box-shadow: var(--shadow);
            text-align: center;
            position: relative;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            /* Colonna flessibile: il pulsante scende in fondo anche quando la
               card ha meno feature delle altre, cosi' i bottoni sono in linea. */
            display: flex;
            flex-direction: column;
        }

        .pricing-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary-orange);
        }

        .best-value-label {
            position: absolute;
            top: -15px;
            right: -15px;
            background: var(--primary-orange);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(255, 138, 61, 0.3);
        }

        .pricing-card h3 {
            font-size: 1.75rem;
            margin-bottom: 1rem;
            color: var(--text-dark);
        }

        .pricing-card .credits {
            color: var(--text-gray);
            font-size: 1rem;
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .pricing-card .price {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--primary-orange);
            margin: 1rem 0;
        }

        .pricing-card .billing-cycle {
            color: var(--text-gray);
            font-size: 0.8rem;
            margin-bottom: 0.25rem;
        }

        .pricing-card .features {
            text-align: left;
            /* Solo sopra, e poco: la card e' flex, quindi i margini di
               billing-cycle e features non collassano piu' e si sommavano. */
            margin: 1rem 0 0;
            flex: 1;
        }

        .pricing-card .feature {
            position: relative;
            padding-left: 30px;
            margin: 1rem 0;
            font-size: 0.95rem;
            color: var(--text-dark);
        }

        .pricing-card .feature:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #22c55e;
            font-weight: bold;
            font-size: 1.2rem;
        }

        .pricing-card .btn {
            margin-top: auto;
            display: inline-block;
            padding: 14px 35px;
            background: var(--primary-orange);
            color: white;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
            width: 100%;
        }

        .pricing-card .btn:hover {
            background: var(--primary-orange-dark);
            transform: translateY(-2px);
        }

        /* Notice Box */
        .notice-box {
            background: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            text-align: center;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }

        .notice-box strong {
            color: #856404;
        }

        .notice-box a {
            color: var(--primary-orange);
            text-decoration: none;
            font-weight: 600;
        }

        .notice-box a:hover {
            text-decoration: underline;
        }

        /* Production Pricing Table */
        .pricing-table-section {
            max-width: 1100px;
            margin: 4rem auto 2rem;
            padding-top: 3rem;
            border-top: 2px solid var(--border-light);
        }

        .pricing-table-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .pricing-table-header h2 {
            font-size: 2rem;
            color: var(--text-dark);
            margin-bottom: 0.5rem;
        }

        .pricing-table-header p {
            font-size: 1rem;
            color: var(--text-gray);
        }

        .pricing-table-header a {
            color: var(--primary-orange);
            text-decoration: none;
            font-weight: 600;
        }

        .pricing-table-header a:hover {
            text-decoration: underline;
        }

        .section-heading { text-align:center; font-size:1.6rem; font-weight:700;
                           margin:2.5rem 0 1.2rem; color:var(--text-dark); }

        /* Il piano resta visibile ma non sottoscrivibile se se ne ha gia' uno. */
        .btn-disabled { opacity:.45; cursor:not-allowed; pointer-events:none; filter:grayscale(1); }
        .costs-link { color:var(--primary-orange); text-decoration:underline; white-space:nowrap; }
        .costs-link:hover { text-decoration:none; }

        /* Pallino informativo: si apre al passaggio del mouse e anche al tocco,
           perche' su telefono il passaggio del mouse non esiste. */
        .info-dot { display:inline-flex; align-items:center; justify-content:center;
                    width:17px; height:17px; border-radius:50%; margin-left:6px;
                    background:var(--border-light); color:var(--text-gray);
                    font-size:.7rem; cursor:help; position:relative; flex-shrink:0;
                    border:none; font-family:inherit; }
        /* Dentro un contenitore flex il centramento lo decide align-items
           del genitore, non vertical-align: per questo il pallino restava
           appoggiato in cima accanto ai due pulsanti. */
        .info-dot:hover { background:var(--primary-orange); color:#fff; }

        /* Riquadro informativo: al centro della pagina e chiudibile, non un
           fumetto attaccato al pallino. Con i fumetti restavano aperti piu'
           insieme e coprivano la tabella. */
        .info-overlay {
            display:none; position:fixed; inset:0; z-index:2000;
            background:rgba(0,0,0,.55); align-items:center; justify-content:center;
            padding:20px;
        }
        .info-overlay.open { display:flex; }
        .info-modal {
            background:#fff; border-radius:14px; max-width:460px; width:100%;
            padding:1.9rem 1.7rem 1.6rem; position:relative;
            box-shadow:0 24px 70px rgba(0,0,0,.32);
        }
        .info-modal h3 {
            font-size:1.15rem; margin-bottom:.7rem; color:var(--text-dark);
            padding-right:2rem;
        }
        .info-modal p { font-size:.95rem; line-height:1.65; color:var(--text-gray); }
        .info-close {
            position:absolute; top:.8rem; right:.9rem; background:none; border:none;
            font-size:1.15rem; color:var(--text-gray); cursor:pointer;
            width:34px; height:34px; border-radius:50%; line-height:1;
        }
        .info-close:hover { background:var(--border-light); color:var(--text-dark); }

        /* Visibile solo su telefono: su computer la colonna della tabella
           dice gia' la stessa cosa. */
        .nota-riformula {
            display: none; background: var(--white); border-radius: 10px;
            padding: 1rem 1.1rem; margin-top: .9rem; text-align: center;
            font-size: .88rem; color: var(--text-gray);
            box-shadow: 0 2px 10px rgba(0,0,0,.06);
        }
        /* La riga sopra la tabella avanzata, e le parole sotto ogni
           lunghezza: senza, "Breve" e "Medio" non dicono quanto sono. */
        .adv-intro { font-size: .9rem; color: var(--text-gray); line-height: 1.6;
                     margin-bottom: 1.2rem; }
        /* Bianco trasparente, non grigio: l'intestazione ha lo sfondo
           arancione, e un grigio chiaro li sopra non si legge. */
        /* L ampiezza del contesto sotto il nome del modello. */
        .ctx-sub { display: block; font-size: .72rem; font-weight: 400;
                   color: var(--text-light); margin-top: .1rem; }

        .th-words { display: block; font-size: .72rem; font-weight: 400;
                    color: rgba(255,255,255,.75); margin-top: .15rem; }

        .nota-riformula strong { color: var(--text-dark); display: block; margin-bottom: .3rem; }

        /* ── Calcolatore dei costi ─────────────────────────────────────── */
        /* Le classi qui sotto sono quelle del markup. Le prime che avevo
           scritto usavano nomi diversi, quindi non si applicavano a niente:
           il costo restava della dimensione del testo normale. */
        .calc-sub { font-size: .85rem; color: var(--text-light); margin: .4rem 0 1.4rem 82px; }
        .calc-diff {
            background: none; border: none; padding: 0; cursor: pointer;
            font-family: inherit; font-size: .85rem; color: var(--primary-orange);
            text-decoration: underline;
        }
        .calc-fc-desc { font-size: .85rem; color: var(--text-gray); line-height: 1.6; margin: .5rem 0 0 27px; }

        /* Il costo e' la risposta alla domanda: deve leggersi da lontano. */
        .calc-out-lab { font-size: .92rem; color: var(--text-gray); }
        .calc-out-n { font-size: 2.2rem; font-weight: 800; color: var(--primary-orange); line-height: 1; }
        .calc-out-u { font-size: .85rem; color: var(--text-gray); margin-left: 5px; }

        .calc {
            background: var(--white); border: 1px solid var(--border-light);
            border-radius: 14px; padding: 1.6rem;
        }
        .calc-row { display: flex; align-items: center; gap: 14px; }
        .calc-lab { font-size: .92rem; color: var(--text-gray); flex-shrink: 0; }
        .calc-row input[type=range] { flex: 1; accent-color: var(--primary-orange); }
        .calc-val { font-weight: 700; min-width: 26px; text-align: right; }
        .calc-hint { font-size: .85rem; color: var(--text-light); margin: .4rem 0 1.4rem 82px; }

        .calc-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: .6rem; }
        .calc-link {
            background: none; border: none; padding: 0; cursor: pointer;
            font-family: inherit; font-size: .85rem; color: var(--primary-orange);
            text-decoration: underline;
        }

        .calc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.3rem; }
        .calc-opt {
            text-align: left; padding: .8rem .9rem; border-radius: 10px; cursor: pointer;
            background: none; border: 2px solid var(--border-light); font-family: inherit;
            transition: border-color .2s, background .2s;
        }
        .calc-opt:hover { border-color: #c9c9c9; }
        .calc-opt.on { border-color: var(--primary-orange); background: rgba(255,138,61,.06); }
        .calc-opt-n { display: block; font-size: .95rem; font-weight: 700; color: var(--text-dark); }
        .calc-opt-d { display: block; font-size: .82rem; color: var(--text-gray); margin-top: .15rem; }

        /* La spiegazione sta DENTRO il riquadro della scelta: fuori sembrava
           riferita al calcolo o al modello. */
        .calc-fc {
            border: 2px solid var(--border-light); border-radius: 10px;
            padding: .85rem .9rem; margin-bottom: 1.4rem; transition: border-color .2s, background .2s;
        }
        .calc-fc.on { border-color: var(--primary-orange); background: rgba(255,138,61,.06); }
        .calc-fc-btn {
            display: flex; align-items: center; gap: 10px; width: 100%;
            background: none; border: none; padding: 0; cursor: pointer;
            font-family: inherit; font-size: .95rem; font-weight: 700; color: var(--text-dark);
        }
        .calc-fc-btn i { color: var(--primary-orange); font-size: 1.05rem; }
        .calc-fc-txt { font-size: .85rem; color: var(--text-gray); line-height: 1.6; margin: .5rem 0 0 27px; }

        .calc-out {
            display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
            border-top: 1px solid var(--border-light); padding-top: 1.3rem;
        }
        .calc-out-box {
            background: rgba(255,138,61,.06); border-radius: 10px;
            padding: .9rem 1rem; text-align: center;
        }
        .calc-out-box .calc-out-lab { display: block; margin-bottom: .3rem; }
        .calc-out strong { font-size: 1.7rem; color: var(--primary-orange); }
        /* La nota sul formato: piccola, sotto tutto. */
        .calc-nota { font-size: .78rem; color: var(--text-light); line-height: 1.55;
                     margin-top: .7rem; }
        .calc-piano { font-size: .85rem; color: var(--text-gray); line-height: 1.6; margin-top: .7rem; }

        @media (max-width: 640px) {
            .calc { padding: 1.2rem 1rem; }
            .calc-choices { grid-template-columns: 1fr; }
            .calc-hint { margin-left: 0; }
        }

        .production-table {
            width: 100%;
            background: var(--white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
        }

        .production-table table {
            width: 100%;
            border-collapse: collapse;
        }

        .production-table thead {
            background: var(--primary-orange);
            color: white;
        }

        .production-table th {
            padding: 1rem;
            text-align: left;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .production-table tbody tr {
            border-bottom: 1px solid var(--border-light);
        }

        .production-table tbody tr:last-child {
            border-bottom: none;
        }

        .production-table tbody tr:hover {
            background: var(--bg-gray);
        }

        .production-table td {
            padding: 1rem;
            font-size: 0.9rem;
            color: var(--text-dark);
        }

        .production-table td:first-child {
            font-weight: 600;
            color: var(--text-dark);
        }

        .production-table .table-note {
            background: #f0f9ff;
            border-top: 2px solid #3b82f6;
        }

        .production-table .table-note td {
            padding: 1.2rem;
            font-size: 0.9rem;
            color: #1e40af;
            font-weight: 500;
        }

		.production-table .table-note td {
    padding: 1rem 0.5rem;
    font-size: 0.85rem;
    -webkit-text-size-adjust: 100%;  /* AGGIUNGI QUESTA RIGA */
    text-size-adjust: 100%;           /* AGGIUNGI QUESTA RIGA */
}
        /* Quattro in fila devono starci anche su uno schermo da 1280: sotto una
           certa larghezza si stringono padding e testi, non si va a capo. */
        @media (max-width: 1340px) {
            .pricing-grid {
                gap: 1rem;
            }

            .pricing-card {
                padding: 2rem 1.1rem;
            }

            .pricing-card h3 {
                font-size: 1.45rem;
            }

            .pricing-card .credits {
                font-size: 0.9rem;
            }

            .pricing-card .price {
                font-size: 2rem;
            }

            .pricing-card .feature {
                font-size: 0.85rem;
                padding-left: 24px;
            }

            .pricing-card .btn {
                padding: 12px 10px;
                font-size: 0.9rem;
            }
        }

        /* Mobile Responsiveness */
        @media (max-width: 1100px) {
            .pricing-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
                max-width: 500px;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .sidebar.show {
                transform: translateX(0);
            }

            .mobile-toggle {
                display: block;
            }

            .main-content {
                margin-left: 0;
                padding: 5rem 1.5rem 2rem;
            }

            .page-title {
                font-size: 2rem;
            }

            .page-subtitle {
                font-size: 1rem;
            }

            /* Keep toggle buttons on same row */
            .toggle-container {
                flex-direction: row;
                gap: 8px;
                padding: 0 10px;
                justify-content: center;
            }

            .toggle-button {
                padding: 10px 16px;
                font-size: 0.85rem;
                flex: 1;
                max-width: 160px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 2px;
            }

            .toggle-button small {
                display: block;
                font-size: 0.7rem;
                text-align: center;
            }

            /* Keep cards stacked vertically but make them compact/horizontal */
            .pricing-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
                max-width: 100%;
            }

            .pricing-card {
                padding: 1.2rem 1.5rem;
                display: grid;
                grid-template-columns: 1fr 1fr;
                grid-template-rows: auto auto auto;
                gap: 0.8rem 1rem;
                text-align: left;
            }

            .pricing-card h3 {
                font-size: 1.3rem;
                margin-bottom: 0;
                grid-column: 1;
                grid-row: 1;
            }

            .pricing-card .credits {
                font-size: 0.85rem;
                margin-bottom: 0;
                grid-column: 1;
                grid-row: 2;
            }

            .pricing-card .price {
                font-size: 1.6rem;
                margin: 0;
                grid-column: 2;
                grid-row: 1;
                text-align: right;
            }

            .pricing-card .billing-cycle {
                font-size: 0.75rem;
                margin-bottom: 0;
                grid-column: 2;
                grid-row: 2;
                text-align: right;
            }

            .pricing-card .features {
                margin: 0;
                grid-column: 1 / -1;
                grid-row: 3;
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0.5rem;
            }

            .pricing-card .feature {
                margin: 0;
                font-size: 0.8rem;
                padding-left: 22px;
            }

            .pricing-card .feature:before {
                font-size: 0.9rem;
            }

            .pricing-card .btn {
                margin-top: 0.8rem;
                padding: 10px 20px;
                font-size: 0.85rem;
                grid-column: 1 / -1;
                grid-row: 4;
            }

            .best-value-label {
                top: -10px;
                right: -10px;
                padding: 5px 10px;
                font-size: 10px;
            }

            .notice-box {
                padding: 1rem;
                margin-bottom: 1.5rem;
                font-size: 0.9rem;
            }

            /* Production Table Mobile */
            .pricing-table-section {
                margin: 3rem auto 2rem;
                padding-top: 2rem;
            }

            .pricing-table-header h2 {
                font-size: 1.5rem;
            }

            .pricing-table-header p {
                font-size: 0.9rem;
            }

            /* Su telefono la tabella diventa una scheda per riga.
               Prima aveva min-width:600px e si scorreva di lato: su uno
               schermo da 360px se ne vedeva poco piu' della meta', e per
               leggere un prezzo bisognava trascinare. */
            /* I due pulsanti piu' stretti, cosi' il pallino informativo resta
               sulla stessa riga invece di andare a capo da solo. */
            #cost-auto-btn, #cost-adv-btn {
                padding: 9px 14px !important; font-size: .88rem;
            }

            .production-table { overflow: visible; background: none; box-shadow: none; }
            .production-table table,
            .production-table thead,
            .production-table tbody,
            .production-table tr,
            .production-table td { display: block; width: 100%; }

            /* l'intestazione non serve: l'etichetta sta su ogni cella */
            .production-table thead { display: none; }

            .production-table tbody tr {
                background: var(--white); border-radius: 10px;
                margin-bottom: .9rem; padding: .3rem 0;
                box-shadow: 0 2px 10px rgba(0,0,0,.06);
            }
            .production-table tbody tr:last-child { margin-bottom: 0; }

            /* Etichetta sopra e valore sotto, non a sinistra e destra:
               affiancati il testo si spezzava su piu' righe e non si capiva
               piu' quale valore appartenesse a quale voce. */
            .production-table td {
                padding: .8rem 1rem; text-align: left;
                border-bottom: 1px solid var(--border-light);
            }
            .production-table td:last-child { border-bottom: none; }

            .production-table td:before {
                content: attr(data-l);
                display: block; margin-bottom: .25rem;
                font-size: .78rem; font-weight: 600; letter-spacing: .3px;
                color: var(--text-gray); text-transform: uppercase;
            }

            /* Il nome del modello e' l'intestazione della scheda: l'etichetta
               "Modello" sopra sarebbe una ripetizione. */
            .production-table td:first-child {
                background: rgba(255,138,61,.06); font-weight: 700;
                font-size: 1.02rem; border-radius: 10px 10px 0 0;
                display: flex; align-items: center; gap: .5rem;
            }
            .production-table td:first-child:before { content: none; }

            /* La nota in fondo occupa tutta la riga, senza etichetta. */
            .production-table tr.table-note td {
                display: block; text-align: center; font-size: .85rem;
            }
            .production-table tr.table-note td:before { content: none; }

            /* Il costo della riformulazione vale per TUTTI i modelli, ma in
               tabella e' una cella che attraversa quattro righe: in HTML esiste
               solo dentro la prima. Trasformando le righe in schede finiva
               dentro quella di Spark, come se fosse un suo prezzo.
               Qui si nasconde, e si mostra il riquadro sotto la tabella. */
            .production-table td.cella-lunga { display: none; }
            .nota-riformula { display: block; }

            .production-table th,
            .production-table td {
                padding: 0.75rem 0.5rem;
                font-size: 0.8rem;
            }

            .production-table .table-note td {
                padding: 1rem 0.5rem;
                font-size: 0.85rem;
            }
        }

        /* Overlay for mobile */
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .overlay.show {
            display: block;
        }
		
		
		/* AGGIUNGI QUESTA NUOVA CLASSE */
.pricing-card .feature.unavailable:before {
    content: "✗";
    color: #ef4444;
}
		
		
		.toggle-button small {
    margin-left: 4px;
}

/* Créditos avulsos (Preços logado), regras do original */
.credit-topups { max-width: 800px; margin: 30px auto; padding: 0 20px; }
.credit-topups h3 { text-align: center; margin-bottom: 20px; }
.topup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.topup-card { background: #f9f9f9; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 15px; }
.coin-icon { font-size: 24px; background: #FFE4D6; color: #FF8A3D; padding: 12px; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.credit-info { flex: 1; }
.credit-amount { display: block; font-weight: bold; }
.credit-price { display: block; color: #FF8A3D; font-size: 20px; font-weight: bold; }
.buy-btn { background: #FF8A3D; color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: background 0.3s; }
.buy-btn:hover { background: #ff7a45; }
@media (max-width: 768px) { .topup-grid { grid-template-columns: 1fr; } }
