<!DOCTYPE html>
<html lang="it" class="scroll-smooth">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="">
<script>
    (function(){
        var _getResponseHeader = XMLHttpRequest.prototype.getResponseHeader;
        XMLHttpRequest.prototype.getResponseHeader = function(name) {
            try { return _getResponseHeader.call(this, name); }
            catch(e) { return null; }
        };

        var _fetch = window.fetch;
        window.fetch = function(url, opts) {
            if (typeof url === 'string' && url.indexOf('/france-energy/api/') !== -1) {
                opts = opts || {};
                opts.headers = opts.headers || {};
                if (opts.headers instanceof Headers) {
                    if (!opts.headers.has('X-CSRF-TOKEN')) {
                        opts.headers.set('X-CSRF-TOKEN', document.querySelector('meta[name="csrf-token"]').content);
                    }
                } else {
                    opts.headers['X-CSRF-TOKEN'] = opts.headers['X-CSRF-TOKEN']
                        || document.querySelector('meta[name="csrf-token"]').content;
                }
            }
            return _fetch.call(this, url, opts);
        };
    })();
    </script>

    
        <link rel="icon" href="https://images.taglialabolletta.it/taglialabolletta.it/favicon.ico" type="image/x-icon">
    
    <title>Taglia la Bolletta: Confronta Tariffe Luce, Gas e Internet</title>
    <meta name="description" content="Confronta le tariffe luce, gas, internet e pay-tv 2026: trova le offerte più convenienti e risparmia in bolletta. Confronto gratuito con Taglia la">

    
    <link rel="canonical" href="https://taglialabolletta.it">
    <link rel="alternate" hreflang="it" href="https://taglialabolletta.it">

    
    <meta property="og:type" content="website">
    <meta property="og:locale" content="it_IT">
    <meta property="og:site_name" content="Taglia la Bolletta">
    <meta property="og:title" content="Taglia la Bolletta: Confronta Tariffe Luce, Gas e Internet">
    <meta property="og:description" content="Confronta le tariffe luce, gas, internet e pay-tv 2026: trova le offerte più convenienti e risparmia in bolletta. Confronto gratuito con Taglia la">
    <meta property="og:url" content="https://taglialabolletta.it">
            <meta property="og:image" content="https://images.taglialabolletta.it/taglialabolletta-it/og/taglialabolletta.webp">
        
    
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="Taglia la Bolletta: Confronta Tariffe Luce, Gas e Internet">
    <meta name="twitter:description" content="Confronta le tariffe luce, gas, internet e pay-tv 2026: trova le offerte più convenienti e risparmia in bolletta. Confronto gratuito con Taglia la">
        <meta name="twitter:image" content="https://images.taglialabolletta.it/taglialabolletta-it/og/taglialabolletta.webp">
    
    
    <link rel="preconnect" href="https://images.taglialabolletta.it">
    <link rel="dns-prefetch" href="https://images.taglialabolletta.it">

    
    <link rel="preload" href="/fonts/inter-latin.woff2" as="font" type="font/woff2" crossorigin>

    <link rel="preload" as="style" href="https://taglialabolletta.it/build/assets/app-C6JrIDOu.css" /><link rel="modulepreload" as="script" href="https://taglialabolletta.it/build/assets/app-DeEGwm7G.js" /><link rel="modulepreload" as="script" href="https://taglialabolletta.it/build/assets/preload-helper-DIdkKO6w.js" /><link rel="modulepreload" as="script" href="https://taglialabolletta.it/build/assets/module.esm-CCyjftVT.js" /><link rel="modulepreload" as="script" href="https://taglialabolletta.it/build/assets/module.esm-DUd3sQ38.js" /><link rel="modulepreload" as="script" href="https://taglialabolletta.it/build/assets/business-hours-DekHygF9.js" /><link rel="modulepreload" as="script" href="https://taglialabolletta.it/build/assets/coverage-offers-B_EkxgWb.js" /><link rel="stylesheet" href="https://taglialabolletta.it/build/assets/app-C6JrIDOu.css" /><script type="module" src="https://taglialabolletta.it/build/assets/app-DeEGwm7G.js"></script>
    </head>
<body class="tlb-site min-h-screen bg-white text-gray-900 antialiased"
      x-data="{ mobileNav: false }"
      :class="{ 'overflow-hidden': mobileNav }">

    
    <script>window.__hoursConfig = {"timezone":"Europe\/Rome","schedule":{"default":[["08:30","20:00"]],"6":[],"7":[]},"holidays":{"2026-01-01":[],"2026-01-06":[],"2026-04-06":[],"2026-04-25":[],"2026-05-01":[],"2026-06-02":[],"2026-08-15":[],"2026-11-01":[],"2026-12-08":[],"2026-12-25":[],"2026-12-26":[]}};</script>
    
    <script>window.__bollettometroConfig = {"pcv":126,"disp_bt":-10.7718,"trasporto":{"quota_potenza":22.39,"quota_fissa":22.08,"quota_variabile":0.0122},"oneri":{"quota_potenza":0,"quota_fissa":0,"quota_variabile":0.039537},"imposte":0.0227,"imposte_threshold_low":1800,"imposte_threshold_high":2640,"iva":10,"standard_power":3,"thresholds":{"min_valid":0,"max_valid":200},"providers":{"enel":"Enel","eni-gas-luce":"Eni Plenitude","engie":"Engie","a2a-energia":"A2A Energia","hera":"Hera","edison":"Edison","acea":"Acea","iren":"Iren","sorgenia":"Sorgenia","octopus-energy":"Octopus Energy","illumia":"Illumia","alperia":"Alperia","dolomiti-energia":"Dolomiti Energia","e-on":"E.ON","lirenas":"Lirenas","wekiwi":"Wekiwi","plenitude":"Plenitude","altro":"Altro fornitore"}};</script>

    
    <a href="#main-content" class="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:bg-primary focus:text-white focus:px-4 focus:py-2 focus:rounded-lg focus:text-sm focus:font-semibold">
        Vai al contenuto principale
    </a>

    
    <header class="tlb-navbar sticky top-0 z-50 shadow-sticky">
        <div class="max-w-content mx-auto px-4 sm:px-6 flex items-center justify-between h-16">

            
                        <a href="/" class="shrink-0 flex items-center" aria-label="Taglia la Bolletta - Home">
                                    <img src="https://images.taglialabolletta.it/taglialabolletta.it/logo/logo.svg" alt="Taglia la Bolletta" width="150" height="38" class="tlb-logo-img h-9 w-auto" loading="eager" fetchpriority="high">
                            </a>

            
            <nav class="hidden lg:flex items-center gap-0.5" aria-label="Navigazione principale">
                                                        <div class="relative" x-data="{
                            open: false,
                            adjustDropdown() {
                                const drop = this.$refs.dropdown;
                                if (!drop) return;
                                const parent = drop.parentElement;
                                if (!parent) return;
                                // Reset to measure natural width
                                drop.style.left = '';
                                drop.style.right = '';
                                drop.style.transform = '';
                                drop.style.maxWidth = '';
                                const vw = window.innerWidth;
                                const margin = 16;
                                const dropWidth = drop.offsetWidth;
                                // Clamp width if wider than viewport
                                if (dropWidth > vw - margin * 2) {
                                    drop.style.left = '0';
                                    drop.style.right = 'auto';
                                    drop.style.maxWidth = (vw - margin * 2) + 'px';
                                    return;
                                }
                                // Center under the button by default
                                const parentRect = parent.getBoundingClientRect();
                                const parentCenter = parentRect.left + parentRect.width / 2;
                                let leftVp = parentCenter - dropWidth / 2;
                                // Clamp to viewport margins
                                if (leftVp + dropWidth > vw - margin) {
                                    leftVp = vw - margin - dropWidth;
                                }
                                if (leftVp < margin) {
                                    leftVp = margin;
                                }
                                drop.style.left = (leftVp - parentRect.left) + 'px';
                                drop.style.right = 'auto';
                            }
                        }"
                        @mouseenter="open = true; $nextTick(() => adjustDropdown())"
                        @mouseleave="open = false"
                        @keydown.escape="open = false">
                        <button
                            class="relative flex items-center gap-1 px-3 h-16 text-sm font-medium transition-colors cursor-pointer"
                            :class="open ? 'text-primary' : 'text-gray-700 hover:text-primary'"
                            :aria-expanded="open.toString()"
                            aria-haspopup="true"
                            @click="open = !open; $nextTick(() => adjustDropdown())"
                            @keydown.arrow-down.prevent="open = true; $nextTick(() => { adjustDropdown(); $el.nextElementSibling?.querySelector('a')?.focus(); })"
                        >
                            Luce e Gas
                            <svg class="w-3.5 h-3.5 transition-transform duration-200" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                            <span
                                class="absolute bottom-0 left-3 right-3 h-[2.5px] bg-accent rounded-full transition-transform duration-200 origin-left"
                                :class="open ? 'scale-x-100' : 'scale-x-0'"
                            ></span>
                        </button>

                        <div
    x-show="open"
    x-cloak
    x-transition:enter="transition ease-out duration-150"
    x-transition:enter-start="opacity-0 -translate-y-1"
    x-transition:enter-end="opacity-100 translate-y-0"
    x-transition:leave="transition ease-in duration-100"
    x-transition:leave-start="opacity-100 translate-y-0"
    x-transition:leave-end="opacity-0 -translate-y-1"
    x-effect="if (open) { $nextTick(() => { const r = $el.getBoundingClientRect(); if (r.left < 16) $el.style.transform = 'translateX(' + (16 - r.left) + 'px)'; else if (r.right > window.innerWidth - 16) $el.style.transform = 'translateX(' + (window.innerWidth - 16 - r.right) + 'px)'; else $el.style.transform = ''; }) } else { $el.style.transform = ''; }"
    class="absolute top-full right-0 z-50 bg-white rounded-xl shadow-dropdown border border-gray-200 overflow-hidden"
    style="width: min(48rem, calc(100vw - 2rem))"
    role="menu"
    @keydown.escape="open = false; $el.previousElementSibling.focus()"
>
    <div class="flex">
        <div class="flex-1 grid gap-x-6 p-5" style="grid-template-columns: repeat(3, minmax(0, 1fr))">
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Offerte Energia
                    </p>
                                                                        <a href="/energia/offerte-luce-gas" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Luce e Gas
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/offerte-luce" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Luce
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/offerte-gas" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Gas
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/fornitori" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Tutti i Fornitori
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Fornitori
                    </p>
                                                                        <a href="/energia/fornitori/enel" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Enel Energia
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/fornitori/eni" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Eni Plenitude
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/fornitori/iren" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Iren
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/fornitori/edison" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Edison Energia
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/fornitori/sorgenia" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Sorgenia
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/fornitori/nen" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            NeN
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/fornitori/a2a" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            A2A Energia
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/fornitori/acea" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Acea Energia
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/servizio-elettrico-nazionale" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Servizio Elettrico Nazionale
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/servizio-elettrico-roma" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Servizio Elettrico Roma
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Guide Mercato
                    </p>
                                                                        <a href="/energia/quanto-costa-un-kwh" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Costo kWh
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/costo-gas-metro-cubo" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Costo Metro Cubo Gas
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/pun" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Pun Energia Oggi
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/voltura" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Voltura Luce e Gas
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/subentro" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Subentro Luce e Gas
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/mercato-libero" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Mercato Libero Energia
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/regime-maggior-tutela" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Mercato Tutelato
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/psv" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Prezzo PSV Gas Oggi
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/aumento-potenza-contatore" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Aumento Potenza Contatore
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/servizio-tutele-graduali" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Servizio Tutele Graduali
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/ttf-gas" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            TTF Gas
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                    </div>

            </div>

            <div class="bg-gray-50 px-5 py-3 border-t border-gray-100">
            <a href="/energia" role="menuitem" class="inline-flex items-center gap-1.5 text-sm font-semibold text-primary hover:text-accent transition-colors">
                Vedi tutto — Luce e Gas
                <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M17 8l4 4m0 0l-4 4m4-4H3"/></svg>
            </a>
        </div>
    
    </div>
                    </div>
                                                        <div class="relative" x-data="{
                            open: false,
                            adjustDropdown() {
                                const drop = this.$refs.dropdown;
                                if (!drop) return;
                                const parent = drop.parentElement;
                                if (!parent) return;
                                // Reset to measure natural width
                                drop.style.left = '';
                                drop.style.right = '';
                                drop.style.transform = '';
                                drop.style.maxWidth = '';
                                const vw = window.innerWidth;
                                const margin = 16;
                                const dropWidth = drop.offsetWidth;
                                // Clamp width if wider than viewport
                                if (dropWidth > vw - margin * 2) {
                                    drop.style.left = '0';
                                    drop.style.right = 'auto';
                                    drop.style.maxWidth = (vw - margin * 2) + 'px';
                                    return;
                                }
                                // Center under the button by default
                                const parentRect = parent.getBoundingClientRect();
                                const parentCenter = parentRect.left + parentRect.width / 2;
                                let leftVp = parentCenter - dropWidth / 2;
                                // Clamp to viewport margins
                                if (leftVp + dropWidth > vw - margin) {
                                    leftVp = vw - margin - dropWidth;
                                }
                                if (leftVp < margin) {
                                    leftVp = margin;
                                }
                                drop.style.left = (leftVp - parentRect.left) + 'px';
                                drop.style.right = 'auto';
                            }
                        }"
                        @mouseenter="open = true; $nextTick(() => adjustDropdown())"
                        @mouseleave="open = false"
                        @keydown.escape="open = false">
                        <button
                            class="relative flex items-center gap-1 px-3 h-16 text-sm font-medium transition-colors cursor-pointer"
                            :class="open ? 'text-primary' : 'text-gray-700 hover:text-primary'"
                            :aria-expanded="open.toString()"
                            aria-haspopup="true"
                            @click="open = !open; $nextTick(() => adjustDropdown())"
                            @keydown.arrow-down.prevent="open = true; $nextTick(() => { adjustDropdown(); $el.nextElementSibling?.querySelector('a')?.focus(); })"
                        >
                            Internet Casa
                            <svg class="w-3.5 h-3.5 transition-transform duration-200" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                            <span
                                class="absolute bottom-0 left-3 right-3 h-[2.5px] bg-accent rounded-full transition-transform duration-200 origin-left"
                                :class="open ? 'scale-x-100' : 'scale-x-0'"
                            ></span>
                        </button>

                        <div
    x-show="open"
    x-cloak
    x-transition:enter="transition ease-out duration-150"
    x-transition:enter-start="opacity-0 -translate-y-1"
    x-transition:enter-end="opacity-100 translate-y-0"
    x-transition:leave="transition ease-in duration-100"
    x-transition:leave-start="opacity-100 translate-y-0"
    x-transition:leave-end="opacity-0 -translate-y-1"
    x-effect="if (open) { $nextTick(() => { const r = $el.getBoundingClientRect(); if (r.left < 16) $el.style.transform = 'translateX(' + (16 - r.left) + 'px)'; else if (r.right > window.innerWidth - 16) $el.style.transform = 'translateX(' + (window.innerWidth - 16 - r.right) + 'px)'; else $el.style.transform = ''; }) } else { $el.style.transform = ''; }"
    class="absolute top-full right-0 z-50 bg-white rounded-xl shadow-dropdown border border-gray-200 overflow-hidden"
    style="width: min(48rem, calc(100vw - 2rem))"
    role="menu"
    @keydown.escape="open = false; $el.previousElementSibling.focus()"
>
    <div class="flex">
        <div class="flex-1 grid gap-x-6 p-5" style="grid-template-columns: repeat(3, minmax(0, 1fr))">
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Migliori Offerte
                    </p>
                                                                        <a href="/internet/offerte-internet-casa" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Internet Casa
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/offerte-fibra-ottica" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Fibra Ottica
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/offerte-fwa" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Migliori Offerte FWA
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/partita-iva" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Internet Partita IVA
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/tim/offerte" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Tim
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/fastweb/offerte" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Fastweb
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/vodafone/offerte" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Vodafone
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/windtre/offerte" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Windtre
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Operatori
                    </p>
                                                                        <a href="/internet/operatori/eolo" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Eolo
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/iliad" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Iliad
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/tim" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            TIM
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/vodafone" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Vodafone
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/windtre" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Windtre
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/aruba-fibra" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Aruba Fibra
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/sky-wifi" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Sky Wifi
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/virgin-fibra" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Virgin Fibra
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/vianova" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Vianova
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Guide e Tecnologie
                    </p>
                                                                        <a href="/internet/verifica-copertura-fibra" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Verifica Copertura Fibra
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/speed-test" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Speed Test
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/ping-test" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Ping Test
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/open-fiber" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Open Fiber
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/fibermap" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Fibermap
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/fibra-ottica" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Cos&#039;è la Fibra Ottica
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/ftth" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            FTTH: Fibra Ottica Pura
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/fwa" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            FWA: Fibra Misto Radio
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                    </div>

            </div>

            <div class="bg-gray-50 px-5 py-3 border-t border-gray-100">
            <a href="/internet/offerte-internet-casa" role="menuitem" class="inline-flex items-center gap-1.5 text-sm font-semibold text-primary hover:text-accent transition-colors">
                Vedi tutto — Internet Casa
                <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M17 8l4 4m0 0l-4 4m4-4H3"/></svg>
            </a>
        </div>
    
    </div>
                    </div>
                                                        <div class="relative" x-data="{
                            open: false,
                            adjustDropdown() {
                                const drop = this.$refs.dropdown;
                                if (!drop) return;
                                const parent = drop.parentElement;
                                if (!parent) return;
                                // Reset to measure natural width
                                drop.style.left = '';
                                drop.style.right = '';
                                drop.style.transform = '';
                                drop.style.maxWidth = '';
                                const vw = window.innerWidth;
                                const margin = 16;
                                const dropWidth = drop.offsetWidth;
                                // Clamp width if wider than viewport
                                if (dropWidth > vw - margin * 2) {
                                    drop.style.left = '0';
                                    drop.style.right = 'auto';
                                    drop.style.maxWidth = (vw - margin * 2) + 'px';
                                    return;
                                }
                                // Center under the button by default
                                const parentRect = parent.getBoundingClientRect();
                                const parentCenter = parentRect.left + parentRect.width / 2;
                                let leftVp = parentCenter - dropWidth / 2;
                                // Clamp to viewport margins
                                if (leftVp + dropWidth > vw - margin) {
                                    leftVp = vw - margin - dropWidth;
                                }
                                if (leftVp < margin) {
                                    leftVp = margin;
                                }
                                drop.style.left = (leftVp - parentRect.left) + 'px';
                                drop.style.right = 'auto';
                            }
                        }"
                        @mouseenter="open = true; $nextTick(() => adjustDropdown())"
                        @mouseleave="open = false"
                        @keydown.escape="open = false">
                        <button
                            class="relative flex items-center gap-1 px-3 h-16 text-sm font-medium transition-colors cursor-pointer"
                            :class="open ? 'text-primary' : 'text-gray-700 hover:text-primary'"
                            :aria-expanded="open.toString()"
                            aria-haspopup="true"
                            @click="open = !open; $nextTick(() => adjustDropdown())"
                            @keydown.arrow-down.prevent="open = true; $nextTick(() => { adjustDropdown(); $el.nextElementSibling?.querySelector('a')?.focus(); })"
                        >
                            Telefonia Mobile
                            <svg class="w-3.5 h-3.5 transition-transform duration-200" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                            <span
                                class="absolute bottom-0 left-3 right-3 h-[2.5px] bg-accent rounded-full transition-transform duration-200 origin-left"
                                :class="open ? 'scale-x-100' : 'scale-x-0'"
                            ></span>
                        </button>

                        <div
    x-show="open"
    x-cloak
    x-transition:enter="transition ease-out duration-150"
    x-transition:enter-start="opacity-0 -translate-y-1"
    x-transition:enter-end="opacity-100 translate-y-0"
    x-transition:leave="transition ease-in duration-100"
    x-transition:leave-start="opacity-100 translate-y-0"
    x-transition:leave-end="opacity-0 -translate-y-1"
    x-effect="if (open) { $nextTick(() => { const r = $el.getBoundingClientRect(); if (r.left < 16) $el.style.transform = 'translateX(' + (16 - r.left) + 'px)'; else if (r.right > window.innerWidth - 16) $el.style.transform = 'translateX(' + (window.innerWidth - 16 - r.right) + 'px)'; else $el.style.transform = ''; }) } else { $el.style.transform = ''; }"
    class="absolute top-full right-0 z-50 bg-white rounded-xl shadow-dropdown border border-gray-200 overflow-hidden"
    style="width: min(48rem, calc(100vw - 2rem))"
    role="menu"
    @keydown.escape="open = false; $el.previousElementSibling.focus()"
>
    <div class="flex">
        <div class="flex-1 grid gap-x-6 p-5" style="grid-template-columns: repeat(3, minmax(0, 1fr))">
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Cambio Operatore
                    </p>
                                                                        <a href="/internet/passa-a-tim" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Tim
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/passa-a-fastweb" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Fastweb
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/passa-a-iliad" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Iliad
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/passa-a-very-mobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Very Mobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/passa-a-ho-mobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Ho Mobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/passa-a-kena" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Kena
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/passa-a-windtre" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Windtre
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/passa-a-tiscali" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Tiscali
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/passa-a-vodafone" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Passa a Vodafone
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Operatori Mobile
                    </p>
                                                                        <a href="/internet/operatori/ho-mobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Ho Mobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/kena-mobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Kena Mobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/very-mobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Very Mobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/lycamobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Lycamobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/postemobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Poste Mobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/coopvoce" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            CoopVoce
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/operatori/spusu" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Spusu
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Confronti e Guide
                    </p>
                                                                        <a href="/internet" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Comparatore Internet
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/offerte-telefonia-mobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Telefonia Mobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/verifica-copertura-mobile" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Verifica Copertura Mobile
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/cambio-operatore-telefonico" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Cambio Operatore Telefonico
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/offerte-5g" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Migliori Offerte 5G
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/offerte-smartphone-incluso" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte con Smartphone Incluso
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/internet/offerte-giga-illimitati" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Offerte Giga Illimitati
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                    </div>

            </div>

            <div class="bg-gray-50 px-5 py-3 border-t border-gray-100">
            <a href="/internet/offerte-telefonia-mobile" role="menuitem" class="inline-flex items-center gap-1.5 text-sm font-semibold text-primary hover:text-accent transition-colors">
                Vedi tutto — Telefonia Mobile
                <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M17 8l4 4m0 0l-4 4m4-4H3"/></svg>
            </a>
        </div>
    
    </div>
                    </div>
                                                        <div class="relative" x-data="{
                            open: false,
                            adjustDropdown() {
                                const drop = this.$refs.dropdown;
                                if (!drop) return;
                                const parent = drop.parentElement;
                                if (!parent) return;
                                // Reset to measure natural width
                                drop.style.left = '';
                                drop.style.right = '';
                                drop.style.transform = '';
                                drop.style.maxWidth = '';
                                const vw = window.innerWidth;
                                const margin = 16;
                                const dropWidth = drop.offsetWidth;
                                // Clamp width if wider than viewport
                                if (dropWidth > vw - margin * 2) {
                                    drop.style.left = '0';
                                    drop.style.right = 'auto';
                                    drop.style.maxWidth = (vw - margin * 2) + 'px';
                                    return;
                                }
                                // Center under the button by default
                                const parentRect = parent.getBoundingClientRect();
                                const parentCenter = parentRect.left + parentRect.width / 2;
                                let leftVp = parentCenter - dropWidth / 2;
                                // Clamp to viewport margins
                                if (leftVp + dropWidth > vw - margin) {
                                    leftVp = vw - margin - dropWidth;
                                }
                                if (leftVp < margin) {
                                    leftVp = margin;
                                }
                                drop.style.left = (leftVp - parentRect.left) + 'px';
                                drop.style.right = 'auto';
                            }
                        }"
                        @mouseenter="open = true; $nextTick(() => adjustDropdown())"
                        @mouseleave="open = false"
                        @keydown.escape="open = false">
                        <button
                            class="relative flex items-center gap-1 px-3 h-16 text-sm font-medium transition-colors cursor-pointer"
                            :class="open ? 'text-primary' : 'text-gray-700 hover:text-primary'"
                            :aria-expanded="open.toString()"
                            aria-haspopup="true"
                            @click="open = !open; $nextTick(() => adjustDropdown())"
                            @keydown.arrow-down.prevent="open = true; $nextTick(() => { adjustDropdown(); $el.nextElementSibling?.querySelector('a')?.focus(); })"
                        >
                            Pay TV
                            <svg class="w-3.5 h-3.5 transition-transform duration-200" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                            <span
                                class="absolute bottom-0 left-3 right-3 h-[2.5px] bg-accent rounded-full transition-transform duration-200 origin-left"
                                :class="open ? 'scale-x-100' : 'scale-x-0'"
                            ></span>
                        </button>

                        <div
    x-show="open"
    x-cloak
    x-transition:enter="transition ease-out duration-150"
    x-transition:enter-start="opacity-0 -translate-y-1"
    x-transition:enter-end="opacity-100 translate-y-0"
    x-transition:leave="transition ease-in duration-100"
    x-transition:leave-start="opacity-100 translate-y-0"
    x-transition:leave-end="opacity-0 -translate-y-1"
    x-effect="if (open) { $nextTick(() => { const r = $el.getBoundingClientRect(); if (r.left < 16) $el.style.transform = 'translateX(' + (16 - r.left) + 'px)'; else if (r.right > window.innerWidth - 16) $el.style.transform = 'translateX(' + (window.innerWidth - 16 - r.right) + 'px)'; else $el.style.transform = ''; }) } else { $el.style.transform = ''; }"
    class="absolute top-full right-0 z-50 bg-white rounded-xl shadow-dropdown border border-gray-200 overflow-hidden"
    style="width: min(32rem, calc(100vw - 2rem))"
    role="menu"
    @keydown.escape="open = false; $el.previousElementSibling.focus()"
>
    <div class="flex">
        <div class="flex-1 grid gap-x-6 p-5" style="grid-template-columns: repeat(2, minmax(0, 1fr))">
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Offerte del Momento
                    </p>
                                                                        <a href="/pay-tv/migliori-offerte" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Confronto Pay TV
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/now-tv-sport" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            NOW Sport
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/now-tv-o-sky" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Now TV o Sky?
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/sky-offerte" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Sky Offerte
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/sky-q-decoder" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Sky Q
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Tariffe e Abbonamenti
                    </p>
                                                                        <a href="/pay-tv/dazn" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Dazn
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/netflix" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Netflix
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/disney-plus" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Disney Plus
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/sky" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Sky
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/tim-vision" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Tim Vision
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/pay-tv/now-tv" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Now TV
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                    </div>

            </div>

            <div class="bg-gray-50 px-5 py-3 border-t border-gray-100">
            <a href="/pay-tv" role="menuitem" class="inline-flex items-center gap-1.5 text-sm font-semibold text-primary hover:text-accent transition-colors">
                Vedi tutto — Pay TV
                <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M17 8l4 4m0 0l-4 4m4-4H3"/></svg>
            </a>
        </div>
    
    </div>
                    </div>
                                                        <div class="relative" x-data="{
                            open: false,
                            adjustDropdown() {
                                const drop = this.$refs.dropdown;
                                if (!drop) return;
                                const parent = drop.parentElement;
                                if (!parent) return;
                                // Reset to measure natural width
                                drop.style.left = '';
                                drop.style.right = '';
                                drop.style.transform = '';
                                drop.style.maxWidth = '';
                                const vw = window.innerWidth;
                                const margin = 16;
                                const dropWidth = drop.offsetWidth;
                                // Clamp width if wider than viewport
                                if (dropWidth > vw - margin * 2) {
                                    drop.style.left = '0';
                                    drop.style.right = 'auto';
                                    drop.style.maxWidth = (vw - margin * 2) + 'px';
                                    return;
                                }
                                // Center under the button by default
                                const parentRect = parent.getBoundingClientRect();
                                const parentCenter = parentRect.left + parentRect.width / 2;
                                let leftVp = parentCenter - dropWidth / 2;
                                // Clamp to viewport margins
                                if (leftVp + dropWidth > vw - margin) {
                                    leftVp = vw - margin - dropWidth;
                                }
                                if (leftVp < margin) {
                                    leftVp = margin;
                                }
                                drop.style.left = (leftVp - parentRect.left) + 'px';
                                drop.style.right = 'auto';
                            }
                        }"
                        @mouseenter="open = true; $nextTick(() => adjustDropdown())"
                        @mouseleave="open = false"
                        @keydown.escape="open = false">
                        <button
                            class="relative flex items-center gap-1 px-3 h-16 text-sm font-medium transition-colors cursor-pointer"
                            :class="open ? 'text-primary' : 'text-gray-700 hover:text-primary'"
                            :aria-expanded="open.toString()"
                            aria-haspopup="true"
                            @click="open = !open; $nextTick(() => adjustDropdown())"
                            @keydown.arrow-down.prevent="open = true; $nextTick(() => { adjustDropdown(); $el.nextElementSibling?.querySelector('a')?.focus(); })"
                        >
                            Risparmio Energetico
                            <svg class="w-3.5 h-3.5 transition-transform duration-200" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                            <span
                                class="absolute bottom-0 left-3 right-3 h-[2.5px] bg-accent rounded-full transition-transform duration-200 origin-left"
                                :class="open ? 'scale-x-100' : 'scale-x-0'"
                            ></span>
                        </button>

                        <div
    x-show="open"
    x-cloak
    x-transition:enter="transition ease-out duration-150"
    x-transition:enter-start="opacity-0 -translate-y-1"
    x-transition:enter-end="opacity-100 translate-y-0"
    x-transition:leave="transition ease-in duration-100"
    x-transition:leave-start="opacity-100 translate-y-0"
    x-transition:leave-end="opacity-0 -translate-y-1"
    x-effect="if (open) { $nextTick(() => { const r = $el.getBoundingClientRect(); if (r.left < 16) $el.style.transform = 'translateX(' + (16 - r.left) + 'px)'; else if (r.right > window.innerWidth - 16) $el.style.transform = 'translateX(' + (window.innerWidth - 16 - r.right) + 'px)'; else $el.style.transform = ''; }) } else { $el.style.transform = ''; }"
    class="absolute top-full right-0 z-50 bg-white rounded-xl shadow-dropdown border border-gray-200 overflow-hidden"
    style="width: min(32rem, calc(100vw - 2rem))"
    role="menu"
    @keydown.escape="open = false; $el.previousElementSibling.focus()"
>
    <div class="flex">
        <div class="flex-1 grid gap-x-6 p-5" style="grid-template-columns: repeat(2, minmax(0, 1fr))">
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Climatizzatori
                    </p>
                                                                        <a href="/casa/come-scegliere-un-climatizzatore-fisso" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Come scegliere un Climatizzatore
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/quanto-consuma-un-climatizzatore-fisso" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Costo Climatizzatore
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/climatizzatori-monosplit-con-il-miglior-design" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Miglior Design Monosplit
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/climatizzatori-9000-btu-ecco-i-modelli-consigliati" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Modelli Climatizzatori 9000 BTU
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/poternza-climatizzatore-btu-kw" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Potenza BTU Climatizzatore
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/climatizzatori-monosplit-daikin-guida-alla-scelta" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Guida Monosplit Daikin
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                            <div>
                    <p class="flex items-center gap-1.5 text-[11px] font-bold text-primary/60 uppercase tracking-[0.08em] mb-3">
                        <span class="w-1.5 h-1.5 rounded-full bg-accent shrink-0"></span>
                        Guide Utili
                    </p>
                                                                        <a href="/energia/quanto-consuma-caldaia-a-gas-in-un-ora" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Quanto consuma una Caldaia
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/risparmio-energetico/impianto-fotovoltaico" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Impianto Fotovoltaico
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/casa/come-sostituire-o-installare-un-termostato-o-cronotermostato" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Installare Termostato
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/casa/risparmio-frigoriferi-classe-a" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Risparmio Frigoriferi
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/casa/scaldabagno-meglio-elettrico-a-gas-o-a-pompa-di-calore" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Scaldabagno a Gas o Pompa
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/guida-alla-stufa-a-pellet" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Stufa a Pellet
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/connessione-di-un-impianto-fotovoltaico-iter-ordinario-o-semplificato" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Connessione Fotovoltaico
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/energia/enel-x" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Enel X
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/lavaggio-impianto-riscaldamento-radiatori" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Lavaggio Radiatori
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/migliori-caldaie-gas-condensazione-ad-alta-efficienza" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Migliori Caldaie a Gas
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/casa/lampadine-led-guida-alla-scelta" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Scelta Lampadine LED
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                                                                <a href="/casa/lavastoviglie-come-sceglierla" role="menuitem" class="group flex items-center justify-between py-2 px-2.5 -mx-2.5 rounded-lg hover:bg-primary-light/60 transition-all">
                                <div class="min-w-0 flex items-center gap-2">
                                                                        <div>
                                        <span class="block text-sm text-gray-700 group-hover:text-primary font-medium transition-colors">
                                            Scelta Lavastoviglie
                                                                                    </span>
                                                                            </div>
                                </div>
                                <svg class="w-3.5 h-3.5 text-transparent group-hover:text-primary/40 transition-all duration-150 -translate-x-1 group-hover:translate-x-0 shrink-0 ml-2" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7"/></svg>
                            </a>
                                                            </div>
                    </div>

            </div>

    
    </div>
                    </div>
                            </nav>

            
            <button
    type="button" class="cursor-pointer hidden xl:inline-flex tlb-navbar-phone ml-3" aria-label="Parla con un consulente, ti richiamiamo"
    onclick="window.dispatchEvent(new CustomEvent('open-callback-modal', { detail: { leadSource: 'it-ei-cc-tlbgeneral', leadSourceOpen: '', leadSourceClosed: '', segment: '' } }))"
>
        <svg class="tlb-navbar-phone-icon" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" aria-hidden="true">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
                </svg>
                <span class="tlb-navbar-phone-text">
                    <span class="tlb-navbar-phone-number">02 8295 1058</span>
                    <span class="tlb-navbar-phone-hours">Lun-Ven 8:30-20</span>
                </span>
</button>

            
            <button
                x-ref="hamburger"
                class="lg:hidden text-gray-700 hover:text-primary p-3 -mr-3 cursor-pointer"
                @click="mobileNav = true"
                aria-label="Apri il menu di navigazione"
                aria-controls="mobile-nav-drawer"
                :aria-expanded="mobileNav.toString()"
            >
                <svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/>
                </svg>
            </button>
        </div>
    </header>

    
    <div id="mobile-nav-drawer"
         x-show="mobileNav" x-cloak class="fixed inset-0 z-50 lg:hidden"
         role="dialog" aria-modal="true" aria-label="Menu di navigazione"
         x-init="$watch('mobileNav', v => {
             if (v) {
                 $nextTick(() => $refs.drawerClose?.focus());
             } else {
                 $nextTick(() => $refs.hamburger?.focus());
             }
         })">
        <div class="absolute inset-0 bg-black/40" @click="mobileNav = false"
             x-transition:enter="transition ease-out duration-200" x-transition:enter-start="opacity-0" x-transition:enter-end="opacity-100"
             x-transition:leave="transition ease-in duration-150" x-transition:leave-start="opacity-100" x-transition:leave-end="opacity-0"
             aria-hidden="true"></div>
        <nav class="absolute top-0 left-0 bottom-0 w-80 bg-white shadow-dropdown flex flex-col"
             x-transition:enter="transition ease-out duration-200" x-transition:enter-start="-translate-x-full" x-transition:enter-end="translate-x-0"
             x-transition:leave="transition ease-in duration-150" x-transition:leave-start="translate-x-0" x-transition:leave-end="-translate-x-full"
             aria-label="Navigazione principale"
             @keydown.escape="mobileNav = false">
            <div class="flex items-center justify-between p-4 border-b border-gray-200">
                                    <a href="/" class="flex items-center" aria-label="Taglia la Bolletta - Home">
                        <img src="https://images.taglialabolletta.it/taglialabolletta.it/logo/logo.svg" alt="Taglia la Bolletta" width="120" height="30" class="tlb-logo-img h-8 w-auto" loading="lazy">
                    </a>
                                <button x-ref="drawerClose" @click="mobileNav = false" class="text-gray-500 hover:text-gray-900 p-1 cursor-pointer" aria-label="Chiudi il menu">
                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/>
                    </svg>
                </button>
            </div>

            <div class="flex-1 overflow-y-auto py-2">
                                    <div x-data="{ open: false }">
                        <button @click="open = !open" class="w-full flex items-center justify-between px-5 py-3 text-sm font-semibold text-gray-900 hover:bg-gray-50 transition-colors cursor-pointer" :aria-expanded="open.toString()">
                            Luce e Gas
                            <svg class="w-4 h-4 text-gray-400 transition-transform duration-150" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                        </button>
                        <div x-show="open" x-collapse>
                            <div class="pb-2 pl-5 pr-4">
                                                                    <a href="/energia" class="block px-3 py-2 text-sm font-medium text-primary hover:bg-primary-light rounded-lg transition-colors">
                                        Vedi tutto
                                    </a>
                                                                                                                                            <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Offerte Energia</p>
                                                                                    <a href="/energia/offerte-luce-gas" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Luce e Gas
                                            </a>
                                                                                    <a href="/energia/offerte-luce" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Luce
                                            </a>
                                                                                    <a href="/energia/offerte-gas" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Gas
                                            </a>
                                                                                    <a href="/energia/fornitori" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Tutti i Fornitori
                                            </a>
                                                                                                                    <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Fornitori</p>
                                                                                    <a href="/energia/fornitori/enel" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Enel Energia
                                            </a>
                                                                                    <a href="/energia/fornitori/eni" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Eni Plenitude
                                            </a>
                                                                                    <a href="/energia/fornitori/iren" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Iren
                                            </a>
                                                                                    <a href="/energia/fornitori/edison" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Edison Energia
                                            </a>
                                                                                    <a href="/energia/fornitori/sorgenia" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Sorgenia
                                            </a>
                                                                                    <a href="/energia/fornitori/nen" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                NeN
                                            </a>
                                                                                    <a href="/energia/fornitori/a2a" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                A2A Energia
                                            </a>
                                                                                    <a href="/energia/fornitori/acea" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Acea Energia
                                            </a>
                                                                                    <a href="/energia/servizio-elettrico-nazionale" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Servizio Elettrico Nazionale
                                            </a>
                                                                                    <a href="/energia/servizio-elettrico-roma" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Servizio Elettrico Roma
                                            </a>
                                                                                                                    <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Guide Mercato</p>
                                                                                    <a href="/energia/quanto-costa-un-kwh" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Costo kWh
                                            </a>
                                                                                    <a href="/energia/costo-gas-metro-cubo" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Costo Metro Cubo Gas
                                            </a>
                                                                                    <a href="/energia/pun" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Pun Energia Oggi
                                            </a>
                                                                                    <a href="/energia/voltura" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Voltura Luce e Gas
                                            </a>
                                                                                    <a href="/energia/subentro" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Subentro Luce e Gas
                                            </a>
                                                                                    <a href="/energia/mercato-libero" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Mercato Libero Energia
                                            </a>
                                                                                    <a href="/regime-maggior-tutela" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Mercato Tutelato
                                            </a>
                                                                                    <a href="/energia/psv" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Prezzo PSV Gas Oggi
                                            </a>
                                                                                    <a href="/energia/aumento-potenza-contatore" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Aumento Potenza Contatore
                                            </a>
                                                                                    <a href="/energia/servizio-tutele-graduali" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Servizio Tutele Graduali
                                            </a>
                                                                                    <a href="/energia/ttf-gas" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                TTF Gas
                                            </a>
                                                                                                                                        </div>
                        </div>
                    </div>
                                    <div x-data="{ open: false }">
                        <button @click="open = !open" class="w-full flex items-center justify-between px-5 py-3 text-sm font-semibold text-gray-900 hover:bg-gray-50 transition-colors cursor-pointer" :aria-expanded="open.toString()">
                            Internet Casa
                            <svg class="w-4 h-4 text-gray-400 transition-transform duration-150" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                        </button>
                        <div x-show="open" x-collapse>
                            <div class="pb-2 pl-5 pr-4">
                                                                    <a href="/internet/offerte-internet-casa" class="block px-3 py-2 text-sm font-medium text-primary hover:bg-primary-light rounded-lg transition-colors">
                                        Vedi tutto
                                    </a>
                                                                                                                                            <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Migliori Offerte</p>
                                                                                    <a href="/internet/offerte-internet-casa" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Internet Casa
                                            </a>
                                                                                    <a href="/internet/offerte-fibra-ottica" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Fibra Ottica
                                            </a>
                                                                                    <a href="/internet/offerte-fwa" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Migliori Offerte FWA
                                            </a>
                                                                                    <a href="/internet/partita-iva" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Internet Partita IVA
                                            </a>
                                                                                    <a href="/internet/operatori/tim/offerte" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Tim
                                            </a>
                                                                                    <a href="/internet/operatori/fastweb/offerte" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Fastweb
                                            </a>
                                                                                    <a href="/internet/operatori/vodafone/offerte" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Vodafone
                                            </a>
                                                                                    <a href="/internet/operatori/windtre/offerte" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Windtre
                                            </a>
                                                                                                                    <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Operatori</p>
                                                                                    <a href="/internet/operatori/eolo" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Eolo
                                            </a>
                                                                                    <a href="/internet/operatori/iliad" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Iliad
                                            </a>
                                                                                    <a href="/internet/operatori/tim" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                TIM
                                            </a>
                                                                                    <a href="/internet/operatori/vodafone" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Vodafone
                                            </a>
                                                                                    <a href="/internet/operatori/windtre" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Windtre
                                            </a>
                                                                                    <a href="/internet/operatori/aruba-fibra" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Aruba Fibra
                                            </a>
                                                                                    <a href="/internet/operatori/sky-wifi" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Sky Wifi
                                            </a>
                                                                                    <a href="/internet/virgin-fibra" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Virgin Fibra
                                            </a>
                                                                                    <a href="/internet/vianova" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Vianova
                                            </a>
                                                                                                                    <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Guide e Tecnologie</p>
                                                                                    <a href="/internet/verifica-copertura-fibra" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Verifica Copertura Fibra
                                            </a>
                                                                                    <a href="/internet/speed-test" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Speed Test
                                            </a>
                                                                                    <a href="/internet/ping-test" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Ping Test
                                            </a>
                                                                                    <a href="/internet/open-fiber" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Open Fiber
                                            </a>
                                                                                    <a href="/internet/fibermap" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Fibermap
                                            </a>
                                                                                    <a href="/internet/fibra-ottica" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Cos&#039;è la Fibra Ottica
                                            </a>
                                                                                    <a href="/internet/ftth" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                FTTH: Fibra Ottica Pura
                                            </a>
                                                                                    <a href="/internet/fwa" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                FWA: Fibra Misto Radio
                                            </a>
                                                                                                                                        </div>
                        </div>
                    </div>
                                    <div x-data="{ open: false }">
                        <button @click="open = !open" class="w-full flex items-center justify-between px-5 py-3 text-sm font-semibold text-gray-900 hover:bg-gray-50 transition-colors cursor-pointer" :aria-expanded="open.toString()">
                            Telefonia Mobile
                            <svg class="w-4 h-4 text-gray-400 transition-transform duration-150" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                        </button>
                        <div x-show="open" x-collapse>
                            <div class="pb-2 pl-5 pr-4">
                                                                    <a href="/internet/offerte-telefonia-mobile" class="block px-3 py-2 text-sm font-medium text-primary hover:bg-primary-light rounded-lg transition-colors">
                                        Vedi tutto
                                    </a>
                                                                                                                                            <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Cambio Operatore</p>
                                                                                    <a href="/internet/passa-a-tim" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Tim
                                            </a>
                                                                                    <a href="/internet/passa-a-fastweb" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Fastweb
                                            </a>
                                                                                    <a href="/internet/passa-a-iliad" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Iliad
                                            </a>
                                                                                    <a href="/internet/passa-a-very-mobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Very Mobile
                                            </a>
                                                                                    <a href="/internet/passa-a-ho-mobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Ho Mobile
                                            </a>
                                                                                    <a href="/internet/passa-a-kena" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Kena
                                            </a>
                                                                                    <a href="/internet/passa-a-windtre" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Windtre
                                            </a>
                                                                                    <a href="/internet/passa-a-tiscali" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Tiscali
                                            </a>
                                                                                    <a href="/internet/passa-a-vodafone" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Passa a Vodafone
                                            </a>
                                                                                                                    <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Operatori Mobile</p>
                                                                                    <a href="/internet/operatori/ho-mobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Ho Mobile
                                            </a>
                                                                                    <a href="/internet/operatori/kena-mobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Kena Mobile
                                            </a>
                                                                                    <a href="/internet/operatori/very-mobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Very Mobile
                                            </a>
                                                                                    <a href="/internet/operatori/lycamobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Lycamobile
                                            </a>
                                                                                    <a href="/internet/operatori/postemobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Poste Mobile
                                            </a>
                                                                                    <a href="/internet/operatori/coopvoce" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                CoopVoce
                                            </a>
                                                                                    <a href="/internet/operatori/spusu" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Spusu
                                            </a>
                                                                                                                    <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Confronti e Guide</p>
                                                                                    <a href="/internet" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Comparatore Internet
                                            </a>
                                                                                    <a href="/internet/offerte-telefonia-mobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Telefonia Mobile
                                            </a>
                                                                                    <a href="/internet/verifica-copertura-mobile" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Verifica Copertura Mobile
                                            </a>
                                                                                    <a href="/internet/cambio-operatore-telefonico" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Cambio Operatore Telefonico
                                            </a>
                                                                                    <a href="/internet/offerte-5g" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Migliori Offerte 5G
                                            </a>
                                                                                    <a href="/internet/offerte-smartphone-incluso" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte con Smartphone Incluso
                                            </a>
                                                                                    <a href="/internet/offerte-giga-illimitati" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Offerte Giga Illimitati
                                            </a>
                                                                                                                                        </div>
                        </div>
                    </div>
                                    <div x-data="{ open: false }">
                        <button @click="open = !open" class="w-full flex items-center justify-between px-5 py-3 text-sm font-semibold text-gray-900 hover:bg-gray-50 transition-colors cursor-pointer" :aria-expanded="open.toString()">
                            Pay TV
                            <svg class="w-4 h-4 text-gray-400 transition-transform duration-150" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                        </button>
                        <div x-show="open" x-collapse>
                            <div class="pb-2 pl-5 pr-4">
                                                                    <a href="/pay-tv" class="block px-3 py-2 text-sm font-medium text-primary hover:bg-primary-light rounded-lg transition-colors">
                                        Vedi tutto
                                    </a>
                                                                                                                                            <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Offerte del Momento</p>
                                                                                    <a href="/pay-tv/migliori-offerte" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Confronto Pay TV
                                            </a>
                                                                                    <a href="/pay-tv/now-tv-sport" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                NOW Sport
                                            </a>
                                                                                    <a href="/pay-tv/now-tv-o-sky" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Now TV o Sky?
                                            </a>
                                                                                    <a href="/pay-tv/sky-offerte" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Sky Offerte
                                            </a>
                                                                                    <a href="/pay-tv/sky-q-decoder" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Sky Q
                                            </a>
                                                                                                                    <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Tariffe e Abbonamenti</p>
                                                                                    <a href="/pay-tv/dazn" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Dazn
                                            </a>
                                                                                    <a href="/pay-tv/netflix" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Netflix
                                            </a>
                                                                                    <a href="/pay-tv/disney-plus" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Disney Plus
                                            </a>
                                                                                    <a href="/pay-tv/sky" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Sky
                                            </a>
                                                                                    <a href="/pay-tv/tim-vision" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Tim Vision
                                            </a>
                                                                                    <a href="/pay-tv/now-tv" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Now TV
                                            </a>
                                                                                                                                        </div>
                        </div>
                    </div>
                                    <div x-data="{ open: false }">
                        <button @click="open = !open" class="w-full flex items-center justify-between px-5 py-3 text-sm font-semibold text-gray-900 hover:bg-gray-50 transition-colors cursor-pointer" :aria-expanded="open.toString()">
                            Risparmio Energetico
                            <svg class="w-4 h-4 text-gray-400 transition-transform duration-150" :class="open && 'rotate-180'" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 9l-7 7-7-7"/>
                            </svg>
                        </button>
                        <div x-show="open" x-collapse>
                            <div class="pb-2 pl-5 pr-4">
                                                                                                                                            <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Climatizzatori</p>
                                                                                    <a href="/casa/come-scegliere-un-climatizzatore-fisso" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Come scegliere un Climatizzatore
                                            </a>
                                                                                    <a href="/quanto-consuma-un-climatizzatore-fisso" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Costo Climatizzatore
                                            </a>
                                                                                    <a href="/climatizzatori-monosplit-con-il-miglior-design" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Miglior Design Monosplit
                                            </a>
                                                                                    <a href="/climatizzatori-9000-btu-ecco-i-modelli-consigliati" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Modelli Climatizzatori 9000 BTU
                                            </a>
                                                                                    <a href="/poternza-climatizzatore-btu-kw" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Potenza BTU Climatizzatore
                                            </a>
                                                                                    <a href="/climatizzatori-monosplit-daikin-guida-alla-scelta" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Guida Monosplit Daikin
                                            </a>
                                                                                                                    <p class="px-3 pt-3 pb-1 text-xs font-semibold text-gray-400 uppercase tracking-wider">Guide Utili</p>
                                                                                    <a href="/energia/quanto-consuma-caldaia-a-gas-in-un-ora" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Quanto consuma una Caldaia
                                            </a>
                                                                                    <a href="/risparmio-energetico/impianto-fotovoltaico" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Impianto Fotovoltaico
                                            </a>
                                                                                    <a href="/casa/come-sostituire-o-installare-un-termostato-o-cronotermostato" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Installare Termostato
                                            </a>
                                                                                    <a href="/casa/risparmio-frigoriferi-classe-a" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Risparmio Frigoriferi
                                            </a>
                                                                                    <a href="/casa/scaldabagno-meglio-elettrico-a-gas-o-a-pompa-di-calore" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Scaldabagno a Gas o Pompa
                                            </a>
                                                                                    <a href="/guida-alla-stufa-a-pellet" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Stufa a Pellet
                                            </a>
                                                                                    <a href="/connessione-di-un-impianto-fotovoltaico-iter-ordinario-o-semplificato" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Connessione Fotovoltaico
                                            </a>
                                                                                    <a href="/energia/enel-x" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Enel X
                                            </a>
                                                                                    <a href="/lavaggio-impianto-riscaldamento-radiatori" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Lavaggio Radiatori
                                            </a>
                                                                                    <a href="/migliori-caldaie-gas-condensazione-ad-alta-efficienza" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Migliori Caldaie a Gas
                                            </a>
                                                                                    <a href="/casa/lampadine-led-guida-alla-scelta" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Scelta Lampadine LED
                                            </a>
                                                                                    <a href="/casa/lavastoviglie-come-sceglierla" class="block px-3 py-2 text-sm text-gray-600 hover:text-primary hover:bg-primary-light rounded-lg transition-colors">
                                                Scelta Lavastoviglie
                                            </a>
                                                                                                                                        </div>
                        </div>
                    </div>
                            </div>
        </nav>
    </div>

    
    <main id="main-content">
        <section class="tlb-bg-primary-textured text-white">
    <div class="max-w-content mx-auto px-4 sm:px-6 pt-8 pb-24 lg:pt-10 lg:pb-28">

        
        <div class="lg:hidden flex flex-col items-center gap-6 pb-0">
            <div class="tlb-calculator-hero">
    <div class="tlb-appliance">

        
        <div class="tlb-appliance-header">
            <span class="tlb-mono-brand">TLB &middot; Offer-Scan</span>
            <span class="tlb-appliance-dot"></span>
        </div>

        
        <div class="tlb-appliance-lcd">
            <span class="tlb-appliance-lcd-label">Confronto</span>
            <div>
                <span class="tlb-appliance-lcd-value tlb-appliance-lcd-value--text">Bollette Casa</span>
            </div>
            <span class="tlb-appliance-lcd-label tlb-appliance-lcd-label-muted">Servizio Gratuito &middot; 2026</span>
        </div>

        
        <div class="tlb-appliance-buttons">
            <div class="tlb-appliance-btn" aria-hidden="true">Luce</div>
            <div class="tlb-appliance-btn" aria-hidden="true">Gas</div>
            <div class="tlb-appliance-btn" aria-hidden="true">Fibra</div>
            <div class="tlb-appliance-btn" aria-hidden="true">Mobile</div>
            <div class="tlb-appliance-btn" aria-hidden="true">Pay-TV</div>
            <button
    type="button" class="cursor-pointer tlb-appliance-btn tlb-appliance-btn--accent"
    onclick="window.dispatchEvent(new CustomEvent('open-callback-modal', { detail: { leadSource: 'it-ei-cc-tlbgeneral', leadSourceOpen: '', leadSourceClosed: '', segment: '' } }))"
>
        Avvia
</button>
        </div>

        
        <div class="tlb-appliance-meta tlb-appliance-meta--centered">
            <span>Premi &laquo;Avvia&raquo; per confrontare gratis</span>
        </div>

    </div>
</div>
            <h2 class="font-bold text-2xl leading-tight text-white text-center">
                Taglia la bolletta e risparmia su luce, gas e internet
            </h2>
            <a href="tel:+390282951058" class="tlb-cta-secondary">
                <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 6z"/></svg>
                02 8295 1058
            </a>
        </div>

        
        <div class="hidden lg:flex lg:items-center lg:justify-between gap-8">

            
            <div class="max-w-2xl">
                <h1 class="font-bold text-5xl leading-tight text-white mb-6">
                    Taglia la bolletta e risparmia su luce, gas e internet
                </h1>
                <p class="text-lg leading-relaxed text-orange-100 mb-8">
                    Confronta gratuitamente le migliori offerte di energia, internet e pay-tv. Guide pratiche, tariffe aggiornate e consulenza personalizzata per ridurre le tue spese ogni mese.
                </p>
                
                <div class="flex flex-wrap items-center gap-3">
                    <button type="button"
                        @click="window.dispatchEvent(new CustomEvent('open-callback-modal', { detail: { leadSource: 'it-ei-cc-tlbgeneral' } }))"
                        class="inline-flex items-center gap-2 bg-accent hover:bg-accent-dark text-white font-semibold text-base rounded-xl px-6 py-3 transition-colors shadow-lg cursor-pointer">
                        <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z"/></svg>
                        02 8295 1058
                    </button>
                    <button type="button"
                        @click="window.dispatchEvent(new CustomEvent('open-callback-modal', { detail: { leadSource: 'it-ei-cc-tlbgeneral' } }))"
                        class="inline-flex items-center gap-2 border border-white/50 hover:bg-white/10 text-white font-semibold text-base rounded-xl px-6 py-3 transition-colors cursor-pointer">
                        <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"/></svg>
                        Ti chiamiamo noi
                    </button>
                </div>
                <p class="text-orange-200 text-xs mt-2" x-data="businessHours(window.__hoursConfig)">
                    <span x-show="isOpen">Numero gratuito - Lun–Ven 8:30–20:00</span>
                    <span x-show="!isOpen" x-cloak>Aperto Lun–Ven 8:30–20:00</span>
                </p>
            </div>

            
            <div class="shrink-0 w-[400px]">
                <div class="tlb-calculator-hero">
    <div class="tlb-appliance">

        
        <div class="tlb-appliance-header">
            <span class="tlb-mono-brand">TLB &middot; Offer-Scan</span>
            <span class="tlb-appliance-dot"></span>
        </div>

        
        <div class="tlb-appliance-lcd">
            <span class="tlb-appliance-lcd-label">Confronto</span>
            <div>
                <span class="tlb-appliance-lcd-value tlb-appliance-lcd-value--text">Bollette Casa</span>
            </div>
            <span class="tlb-appliance-lcd-label tlb-appliance-lcd-label-muted">Servizio Gratuito &middot; 2026</span>
        </div>

        
        <div class="tlb-appliance-buttons">
            <div class="tlb-appliance-btn" aria-hidden="true">Luce</div>
            <div class="tlb-appliance-btn" aria-hidden="true">Gas</div>
            <div class="tlb-appliance-btn" aria-hidden="true">Fibra</div>
            <div class="tlb-appliance-btn" aria-hidden="true">Mobile</div>
            <div class="tlb-appliance-btn" aria-hidden="true">Pay-TV</div>
            <button
    type="button" class="cursor-pointer tlb-appliance-btn tlb-appliance-btn--accent"
    onclick="window.dispatchEvent(new CustomEvent('open-callback-modal', { detail: { leadSource: 'it-ei-cc-tlbgeneral', leadSourceOpen: '', leadSourceClosed: '', segment: '' } }))"
>
        Avvia
</button>
        </div>

        
        <div class="tlb-appliance-meta tlb-appliance-meta--centered">
            <span>Premi &laquo;Avvia&raquo; per confrontare gratis</span>
        </div>

    </div>
</div>
            </div>

        </div>

    </div>
</section>


<section class="-mt-8 lg:-mt-16 relative z-10 mb-8">
    <div class="max-w-content mx-auto px-4 sm:px-6">
        <div class="grid grid-cols-3 bg-white rounded-2xl shadow-card border border-gray-200 overflow-hidden">
            <div class="p-4 md:p-5 text-center border-r border-gray-100">
                <p class="text-lg md:text-2xl font-bold text-primary tabular-nums">+50</p>
                <p class="text-[11px] text-gray-500 mt-1">Fornitori analizzati</p>
            </div>
            <div class="p-4 md:p-5 text-center border-r border-gray-100">
                <p class="text-lg md:text-2xl font-bold text-primary tabular-nums">100%</p>
                <p class="text-[11px] text-gray-500 mt-1">Servizio gratuito</p>
            </div>
            <div class="p-4 md:p-5 text-center">
                <p class="text-lg md:text-2xl font-bold text-primary tabular-nums">2026</p>
                <p class="text-[11px] text-gray-500 mt-1">Tariffe aggiornate</p>
            </div>
        </div>
    </div>
</section>


<section class="py-12">
    <div class="max-w-content mx-auto px-4 sm:px-6">
        <h2 class="text-2xl lg:text-3xl font-bold text-gray-900 mb-2 text-center">Cosa vuoi confrontare?</h2>
        <p class="text-gray-500 text-center mb-10 max-w-xl mx-auto">Guide, comparatori e consigli pratici per ridurre tutte le tue spese domestiche.</p>

        <div class="grid grid-cols-1 lg:grid-cols-3 gap-5">

            
            <a href="/energia" class="group flex flex-col gap-4 bg-white rounded-xl border border-gray-200 hover:border-primary/30 p-6 transition-all !no-underline" style="border-width: 0.5px;">
                <div class="tlb-quick-card-icon w-14 h-14 rounded-xl">
                    <svg class="w-7 h-7" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"/></svg>
                </div>
                <div class="flex-1">
                    <h3 class="font-bold text-gray-900 text-lg group-hover:text-primary transition-colors mb-2">Luce e Gas</h3>
                    <p class="text-sm text-gray-500 leading-relaxed mb-4">Confronta le offerte luce e gas dei principali fornitori italiani. Trova la tariffa più conveniente e passa senza interruzioni.</p>
                    <ul class="tlb-mono-bullet" style="font-size: 0.75rem; line-height: 1.8;">
                        <li>Offerte luce e gas 2026</li>
                        <li>Schede fornitori energia</li>
                        <li>Risparmio energetico</li>
                    </ul>
                </div>
                <span class="inline-flex items-center gap-1.5 text-primary font-semibold text-sm group-hover:gap-2.5 transition-all">
                    Scopri di più
                    <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5m0 0l-5 5m5-5H6"/></svg>
                </span>
            </a>

            
            <a href="/internet" class="group flex flex-col gap-4 bg-white rounded-xl border border-gray-200 hover:border-primary/30 p-6 transition-all !no-underline" style="border-width: 0.5px;">
                <div class="tlb-quick-card-icon w-14 h-14 rounded-xl">
                    <svg class="w-7 h-7" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8.288 15.038a5.25 5.25 0 017.424 0M5.106 11.856c3.807-3.808 9.98-3.808 13.788 0M1.924 8.674c5.565-5.565 14.587-5.565 20.152 0M12.53 18.22l-.53.53-.53-.53a.75.75 0 011.06 0z"/></svg>
                </div>
                <div class="flex-1">
                    <h3 class="font-bold text-gray-900 text-lg group-hover:text-primary transition-colors mb-2">Internet</h3>
                    <p class="text-sm text-gray-500 leading-relaxed mb-4">Confronta le offerte fibra e mobile dei principali operatori. Trova la tariffa più conveniente per la tua connessione.</p>
                    <ul class="tlb-mono-bullet" style="font-size: 0.75rem; line-height: 1.8;">
                        <li>Offerte fibra e mobile 2026</li>
                        <li>Schede operatori internet</li>
                        <li>Speed test</li>
                    </ul>
                </div>
                <span class="inline-flex items-center gap-1.5 text-primary font-semibold text-sm group-hover:gap-2.5 transition-all">
                    Scopri di più
                    <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5m0 0l-5 5m5-5H6"/></svg>
                </span>
            </a>

            
            <a href="/pay-tv" class="group flex flex-col gap-4 bg-white rounded-xl border border-gray-200 hover:border-primary/30 p-6 transition-all !no-underline" style="border-width: 0.5px;">
                <div class="tlb-quick-card-icon w-14 h-14 rounded-xl">
                    <svg class="w-7 h-7" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M6 20.25h12m-7.5-3v3m3-3v3m-10.125-3h17.25c.621 0 1.125-.504 1.125-1.125V4.875c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125z"/></svg>
                </div>
                <div class="flex-1">
                    <h3 class="font-bold text-gray-900 text-lg group-hover:text-primary transition-colors mb-2">Pay-TV</h3>
                    <p class="text-sm text-gray-500 leading-relaxed mb-4">Confronta Sky, NOW, DAZN, Disney Plus e tutti i principali servizi di streaming e televisione a pagamento.</p>
                    <ul class="tlb-mono-bullet" style="font-size: 0.75rem; line-height: 1.8;">
                        <li>Offerte tv 2026</li>
                        <li>Sport in tv e in streaming</li>
                        <li>Trova l'abbonamento perfetto</li>
                    </ul>
                </div>
                <span class="inline-flex items-center gap-1.5 text-primary font-semibold text-sm group-hover:gap-2.5 transition-all">
                    Scopri di più
                    <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 7l5 5m0 0l-5 5m5-5H6"/></svg>
                </span>
            </a>

        </div>
    </div>
</section>


<section class="py-12 md:py-16 tlb-bg-primary-textured">
    <div class="max-w-content mx-auto px-4 sm:px-6">
        <p class="tlb-mono-kicker-light text-center mb-3">SERVIZIO GRATUITO</p>
        <h2 class="text-2xl lg:text-3xl font-bold text-white leading-tight mb-10 text-center">Come funziona Taglialabolletta.it?</h2>

        
        <div class="hidden lg:flex items-start justify-center gap-3">
            
            <div class="flex flex-col items-center text-center w-40">
                <div class="w-8 h-8 rounded-full bg-white/15 flex items-center justify-center mb-3">
                    <span class="font-mono text-xs font-bold text-white">01</span>
                </div>
                <h3 class="text-white font-bold text-base mb-2">Confronta</h3>
                <p class="text-white/60 text-sm leading-relaxed">Compara gratuitamente le offerte, da solo o con un operatore.</p>
            </div>

            <span class="tlb-op-plus mt-2" style="color: rgba(255,255,255,0.35);">+</span>

            
            <div class="flex flex-col items-center text-center w-40">
                <div class="w-8 h-8 rounded-full bg-white/15 flex items-center justify-center mb-3">
                    <span class="font-mono text-xs font-bold text-white">02</span>
                </div>
                <h3 class="text-white font-bold text-base mb-2">Compila</h3>
                <p class="text-white/60 text-sm leading-relaxed"><strong class="text-white">10 minuti</strong> per la raccolta dati e la richiesta.</p>
            </div>

            <span class="tlb-op-plus mt-2" style="color: rgba(255,255,255,0.35);">+</span>

            
            <div class="flex flex-col items-center text-center w-40">
                <div class="w-8 h-8 rounded-full bg-white/15 flex items-center justify-center mb-3">
                    <span class="font-mono text-xs font-bold text-white">03</span>
                </div>
                <h3 class="text-white font-bold text-base mb-2">Ricevi</h3>
                <p class="text-white/60 text-sm leading-relaxed">Copia del contratto via email, in pochi minuti.</p>
            </div>

            <span class="tlb-op-equal mt-2" style="font-size: 2.25rem;">=</span>

            
            <div class="flex flex-col items-center text-center w-40">
                <div class="w-8 h-8 rounded-full bg-white/15 flex items-center justify-center mb-3">
                    <span class="font-mono text-xs font-bold text-white">04</span>
                </div>
                <h3 class="text-white font-bold text-base mb-2">Risparmia!</h3>
                <p class="text-white/60 text-sm leading-relaxed"><strong class="text-white">Hai tagliato la bolletta!</strong></p>
            </div>
        </div>

        
        <div class="lg:hidden grid grid-cols-1 sm:grid-cols-2 gap-4">
            <div class="flex flex-col items-center text-center p-4">
                <div class="w-8 h-8 rounded-full bg-white/15 flex items-center justify-center mb-2">
                    <span class="font-mono text-xs font-bold text-white">01</span>
                </div>
                <h3 class="text-white font-bold text-base mb-1">Confronta</h3>
                <p class="text-white/60 text-sm leading-relaxed">Compara gratuitamente le offerte.</p>
            </div>
            <div class="flex flex-col items-center text-center p-4">
                <div class="w-8 h-8 rounded-full bg-white/15 flex items-center justify-center mb-2">
                    <span class="font-mono text-xs font-bold text-white">02</span>
                </div>
                <h3 class="text-white font-bold text-base mb-1">Compila</h3>
                <p class="text-white/60 text-sm leading-relaxed"><strong class="text-white">10 minuti</strong> per la richiesta.</p>
            </div>
            <div class="flex flex-col items-center text-center p-4">
                <div class="w-8 h-8 rounded-full bg-white/15 flex items-center justify-center mb-2">
                    <span class="font-mono text-xs font-bold text-white">03</span>
                </div>
                <h3 class="text-white font-bold text-base mb-1">Ricevi</h3>
                <p class="text-white/60 text-sm leading-relaxed">Contratto via email, subito.</p>
            </div>
            <div class="flex flex-col items-center text-center p-4">
                <div class="w-8 h-8 rounded-full bg-white/15 flex items-center justify-center mb-2">
                    <span class="font-mono text-xs font-bold text-white">04</span>
                </div>
                <h3 class="text-white font-bold text-base mb-1">Risparmia!</h3>
                <p class="text-white/60 text-sm leading-relaxed"><strong class="text-white">Bolletta tagliata!</strong></p>
            </div>
        </div>
    </div>
</section>


<section class="py-10 md:py-14 bg-gray-50">
    <div class="max-w-content mx-auto px-4 sm:px-6">
        <h2 class="text-2xl lg:text-3xl font-bold text-gray-900 mb-2">Taglia tutte le bollette di casa</h2>
        <p class="text-gray-500 mb-8">Le migliori offerte per risparmiare su luce, gas, internet e pay-tv.</p>

        <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
            <a href="/energia/offerte-luce" class="group flex items-center gap-4 bg-white rounded-xl p-5 hover:border-primary/40 transition-all !no-underline" style="border: 0.5px solid #e5e7eb;">
                <div class="w-10 h-10 rounded-xl bg-primary-light text-primary flex items-center justify-center shrink-0">
                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z"/></svg>
                </div>
                <div class="flex-1 min-w-0">
                    <h3 class="font-semibold text-gray-900 text-sm group-hover:text-primary transition-colors">Migliori offerte luce</h3>
                    <p class="font-mono text-[0.6875rem] text-gray-500 mt-0.5 uppercase tracking-wide">TARIFFE ELETTRICHE 2026</p>
                </div>
                <svg class="w-4 h-4 shrink-0 transition-colors" style="color: var(--tlb-color-operator);" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5"/></svg>
            </a>

            <a href="/energia/offerte-gas" class="group flex items-center gap-4 bg-white rounded-xl p-5 hover:border-primary/40 transition-all !no-underline" style="border: 0.5px solid #e5e7eb;">
                <div class="w-10 h-10 rounded-xl bg-primary-light text-primary flex items-center justify-center shrink-0">
                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M17.657 18.657A8 8 0 016.343 7.343S7 9 9 10c0-2 .5-5 2.986-7C14 5 16.09 5.777 17.656 7.343A7.975 7.975 0 0120 13a7.975 7.975 0 01-2.343 5.657z"/></svg>
                </div>
                <div class="flex-1 min-w-0">
                    <h3 class="font-semibold text-gray-900 text-sm group-hover:text-primary transition-colors">Migliori offerte gas</h3>
                    <p class="font-mono text-[0.6875rem] text-gray-500 mt-0.5 uppercase tracking-wide">TARIFFE GAS 2026</p>
                </div>
                <svg class="w-4 h-4 shrink-0 transition-colors" style="color: var(--tlb-color-operator);" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5"/></svg>
            </a>

            <a href="/internet/offerte-fibra-ottica" class="group flex items-center gap-4 bg-white rounded-xl p-5 hover:border-primary/40 transition-all !no-underline" style="border: 0.5px solid #e5e7eb;">
                <div class="w-10 h-10 rounded-xl bg-primary-light text-primary flex items-center justify-center shrink-0">
                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8.288 15.038a5.25 5.25 0 017.424 0M5.106 11.856c3.807-3.808 9.98-3.808 13.788 0M1.924 8.674c5.565-5.565 14.587-5.565 20.152 0M12.53 18.22l-.53.53-.53-.53a.75.75 0 011.06 0z"/></svg>
                </div>
                <div class="flex-1 min-w-0">
                    <h3 class="font-semibold text-gray-900 text-sm group-hover:text-primary transition-colors">Migliori offerte fibra</h3>
                    <p class="font-mono text-[0.6875rem] text-gray-500 mt-0.5 uppercase tracking-wide">OFFERTE CASA VELOCI</p>
                </div>
                <svg class="w-4 h-4 shrink-0 transition-colors" style="color: var(--tlb-color-operator);" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5"/></svg>
            </a>

            <a href="/internet/offerte-telefonia-mobile" class="group flex items-center gap-4 bg-white rounded-xl p-5 hover:border-primary/40 transition-all !no-underline" style="border: 0.5px solid #e5e7eb;">
                <div class="w-10 h-10 rounded-xl bg-primary-light text-primary flex items-center justify-center shrink-0">
                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"/></svg>
                </div>
                <div class="flex-1 min-w-0">
                    <h3 class="font-semibold text-gray-900 text-sm group-hover:text-primary transition-colors">Migliori offerte mobile</h3>
                    <p class="font-mono text-[0.6875rem] text-gray-500 mt-0.5 uppercase tracking-wide">SIM VOCE E DATI</p>
                </div>
                <svg class="w-4 h-4 shrink-0 transition-colors" style="color: var(--tlb-color-operator);" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5"/></svg>
            </a>

            <a href="/internet/offerte-fwa" class="group flex items-center gap-4 bg-white rounded-xl p-5 hover:border-primary/40 transition-all !no-underline" style="border: 0.5px solid #e5e7eb;">
                <div class="w-10 h-10 rounded-xl bg-primary-light text-primary flex items-center justify-center shrink-0">
                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M9 6.75V15m6-6v8.25m.503 3.498l4.875-2.437c.381-.19.622-.58.622-1.006V4.82c0-.836-.88-1.38-1.628-1.006l-3.869 1.934c-.317.159-.69.159-1.006 0L9.503 3.252a1.125 1.125 0 00-1.006 0L3.622 5.689C3.24 5.88 3 6.27 3 6.695V19.18c0 .836.88 1.38 1.628 1.006l3.869-1.934c.317-.159.69-.159 1.006 0l4.994 2.497c.317.158.69.158 1.006 0z"/></svg>
                </div>
                <div class="flex-1 min-w-0">
                    <h3 class="font-semibold text-gray-900 text-sm group-hover:text-primary transition-colors">Migliori offerte FWA</h3>
                    <p class="font-mono text-[0.6875rem] text-gray-500 mt-0.5 uppercase tracking-wide">INTERNET SENZA FIBRA</p>
                </div>
                <svg class="w-4 h-4 shrink-0 transition-colors" style="color: var(--tlb-color-operator);" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5"/></svg>
            </a>

            <a href="/pay-tv/migliori-offerte" class="group flex items-center gap-4 bg-white rounded-xl p-5 hover:border-primary/40 transition-all !no-underline" style="border: 0.5px solid #e5e7eb;">
                <div class="w-10 h-10 rounded-xl bg-primary-light text-primary flex items-center justify-center shrink-0">
                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M6 20.25h12m-7.5-3v3m3-3v3m-10.125-3h17.25c.621 0 1.125-.504 1.125-1.125V4.875c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125z"/></svg>
                </div>
                <div class="flex-1 min-w-0">
                    <h3 class="font-semibold text-gray-900 text-sm group-hover:text-primary transition-colors">Migliori offerte pay-tv</h3>
                    <p class="font-mono text-[0.6875rem] text-gray-500 mt-0.5 uppercase tracking-wide">STREAMING E TV 2026</p>
                </div>
                <svg class="w-4 h-4 shrink-0 transition-colors" style="color: var(--tlb-color-operator);" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5"/></svg>
            </a>
        </div>
    </div>
</section>


<section class="py-12 md:py-16 tlb-bg-primary-textured">
    <div class="max-w-content mx-auto px-4 sm:px-6">
        <div class="lg:flex lg:items-center lg:gap-12">

            
            <div class="flex-1 mb-8 lg:mb-0">
                <p class="tlb-mono-kicker-light mb-3">SERVIZIO GRATUITO</p>
                <h2 class="text-2xl lg:text-4xl font-bold text-white leading-tight mb-4">
                    Non sai quale offerta scegliere?<br class="hidden lg:block"> Parla con un esperto.
                </h2>
                <p class="text-white/70 text-base leading-relaxed max-w-lg mb-6">
                    I nostri consulenti analizzano le tue bollette attuali e trovano le offerte più convenienti per luce, gas e internet. Servizio completamente gratuito, senza impegno.
                </p>
                <ul class="space-y-2.5">
                    <li class="flex items-center gap-3 text-sm text-white/80">
                        <svg class="w-5 h-5 text-white/50 shrink-0" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
                        Analisi personalizzata delle tue bollette
                    </li>
                    <li class="flex items-center gap-3 text-sm text-white/80">
                        <svg class="w-5 h-5 text-white/50 shrink-0" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
                        Confronto tra +50 fornitori italiani
                    </li>
                    <li class="flex items-center gap-3 text-sm text-white/80">
                        <svg class="w-5 h-5 text-white/50 shrink-0" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
                        Attivazione guidata, senza interruzioni
                    </li>
                    <li class="flex items-center gap-3 text-sm text-white/80">
                        <svg class="w-5 h-5 text-white/50 shrink-0" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
                        100% gratuito, senza nessun impegno
                    </li>
                </ul>
            </div>

            
            <div class="shrink-0 lg:w-96">
                <div class="tlb-appliance tlb-consult-line">

    
    <div class="tlb-appliance-header">
        <span class="tlb-mono-brand">TLB &middot; CONSULT-LINE</span>
        <div class="tlb-appliance-solar">
            <div class="tlb-appliance-solar-cell"></div>
            <div class="tlb-appliance-solar-cell"></div>
            <div class="tlb-appliance-solar-cell"></div>
        </div>
    </div>

    
    <div class="tlb-appliance-lcd">
        <span class="tlb-appliance-lcd-label">Numero</span>
        <div class="tlb-consult-phone">02 8295 1058</div>
        <span class="tlb-appliance-lcd-label tlb-appliance-lcd-label-muted">Lun&ndash;Ven &middot; 8:30&ndash;20:00</span>
    </div>

    
    <div class="tlb-consult-buttons">
        <span class="hidden md:contents"><button
    type="button" class="cursor-pointer whitespace-nowrap tlb-consult-btn tlb-consult-btn--accent"
    onclick="window.dispatchEvent(new CustomEvent('open-callback-modal', { detail: { leadSource: 'it-ei-cc-tlbgeneral', leadSourceOpen: '', leadSourceClosed: '', segment: '' } }))"
>
        <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" aria-hidden="true">
                <path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 6z"/>
            </svg>
            Chiama
</button>
</span><span class="contents md:hidden"><a href="tel:0282951058" class="whitespace-nowrap tlb-consult-btn tlb-consult-btn--accent"><svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24" aria-hidden="true">
                <path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 6z"/>
            </svg>
            Chiama</a></span>
        <button
    type="button" class="cursor-pointer tlb-consult-btn"
    onclick="window.dispatchEvent(new CustomEvent('open-callback-modal', { detail: { leadSource: 'it-ei-cc-tlbgeneral', leadSourceOpen: '', leadSourceClosed: '', segment: '' } }))"
>
        Richiama
</button>
    </div>

    
    <div class="tlb-appliance-meta">
        <span>Consulenza gratis</span>
        <span>2026 &middot; OK</span>
    </div>
</div>
            </div>

        </div>
    </div>
</section>


<section class="py-10 md:py-12 bg-gray-50">
    <div class="max-w-content mx-auto px-4 sm:px-6 text-center">
        <a href="https://selectra.net/newsletter" target="_blank" rel="noopener"
           class="inline-flex items-center gap-2 px-6 py-3 bg-accent hover:bg-accent-dark text-white text-sm font-semibold rounded-full transition-colors !no-underline">
            <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75"/></svg>
            Iscriviti alla Newsletter
        </a>
    </div>
</section>


<section class="py-10 md:py-14">
    <div class="max-w-content mx-auto px-4 sm:px-6">
        <h2 class="text-2xl lg:text-3xl font-bold text-gray-900 text-center mb-6">Clienti soddisfatti</h2>

        
        <div class="grid grid-cols-1 sm:grid-cols-3 gap-4 max-w-3xl mx-auto mb-10">
            
            <a href="https://it.trustpilot.com/review/selectra.net" target="_blank" rel="noopener nofollow"
               class="flex flex-col items-center justify-center bg-white rounded-xl border border-gray-100 hover:border-primary/30 hover:shadow-md transition-all p-4 !no-underline">
                <svg class="h-7 w-auto mb-2" viewBox="0 0 320 70" xmlns="http://www.w3.org/2000/svg" aria-label="Trustpilot" role="img">
                    <path fill="#00B67A" d="M35 4 L42.5 25 L65.5 25 L46.5 38 L54 59 L35 46 L16 59 L23.5 38 L4.5 25 L27.5 25 Z"/>
                    <text x="76" y="48" font-family="Helvetica, Arial, sans-serif" font-weight="700" font-size="38" fill="#191919" letter-spacing="-1">Trustpilot</text>
                </svg>
                <p class="text-sm text-gray-700"><strong class="text-gray-900">4.9</strong> / 5</p>
            </a>

            
            <a href="https://www.ekomi.it/opinioni-selectranet.html" target="_blank" rel="noopener nofollow"
               class="flex flex-col items-center justify-center bg-white rounded-xl border border-gray-100 hover:border-primary/30 hover:shadow-md transition-all p-4 !no-underline">
                <svg class="h-7 w-auto mb-2" viewBox="0 0 200 70" xmlns="http://www.w3.org/2000/svg" aria-label="eKomi" role="img">
                    <text x="5" y="55" font-family="Helvetica, Arial, sans-serif" font-weight="900" font-size="56" fill="#4FA82A" letter-spacing="-3">eKomi</text>
                </svg>
                <p class="text-sm text-gray-700"><strong class="text-gray-900">4.8</strong> / 5</p>
            </a>

            
            <a href="http://bit.ly/35guOoQ" target="_blank" rel="noopener nofollow"
               class="flex flex-col items-center justify-center bg-white rounded-xl border border-gray-100 hover:border-primary/30 hover:shadow-md transition-all p-4 !no-underline">
                <div class="flex items-center gap-1.5 mb-2 h-7">
                    <svg class="w-6 h-6" viewBox="0 0 24 24" aria-hidden="true">
                        <path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/>
                        <path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/>
                        <path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"/>
                        <path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"/>
                    </svg>
                    <span class="font-semibold text-gray-900 text-lg">Google</span>
                </div>
                <p class="text-sm text-gray-700"><strong class="text-gray-900">4.9</strong> / 5</p>
            </a>
        </div>

        
        <div class="grid grid-cols-1 sm:grid-cols-3 gap-4">
            <div class="tlb-testimonial-card">
    <div class="tlb-testimonial-header">
        <span class="tlb-testimonial-name">Gianni</span>
        <span class="tlb-stars">
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                    </span>
    </div>
    <div class="tlb-testimonial-body">
        Io sto avendo a che fare con il servizio e posso affermare che è la <strong>migliore esperienza</strong> con cui abbia avuto mai a che fare.
    </div>
</div>

            <div class="tlb-testimonial-card">
    <div class="tlb-testimonial-header">
        <span class="tlb-testimonial-name">Luca</span>
        <span class="tlb-stars">
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                    </span>
    </div>
    <div class="tlb-testimonial-body">
        Un <strong>servizio davvero efficiente</strong>, gentilezza e <strong>professionalità</strong>. Ho parlato con un operatore che è stato gentilissimo. Voto 5 stelle super!
    </div>
</div>

            <div class="tlb-testimonial-card">
    <div class="tlb-testimonial-header">
        <span class="tlb-testimonial-name">Maria</span>
        <span class="tlb-stars">
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                        <svg class="tlb-star" viewBox="0 0 20 20"><path d="M10 1l2.39 4.84 5.34.78-3.87 3.77.91 5.33L10 13.27l-4.77 2.5.91-5.33L2.27 6.62l5.34-.78z"/></svg>
                    </span>
    </div>
    <div class="tlb-testimonial-body">
        Ottima assistenza, <strong>competente e risolutiva</strong>. Bello poter parlare sempre con lo stesso operatore così da non dover spiegare le cose 10 volte.
    </div>
</div>
        </div>
    </div>
</section>
    </main>

    
    <footer class="tlb-footer">
        <div class="max-w-content mx-auto px-4 sm:px-6 pt-12 pb-8">

            
            <div class="tlb-footer-grid">
                <div class="tlb-footer-brand">
                                        <img src="https://images.taglialabolletta.it/taglialabolletta.it/logo/logo.svg" alt="Taglia la Bolletta" class="tlb-footer-logo" loading="lazy">
                                        <p class="tlb-footer-tagline">
                        Il comparatore indipendente di offerte luce, gas, internet e pay-tv. Servizio gratuito.
                    </p>
                </div>

                                <div class="tlb-footer-col">
                    <p class="tlb-footer-col-title">Luce &amp; Gas</p>
                    <ul class="tlb-footer-col-list">
                                                <li><a href="/energia/offerte-luce-gas" class="tlb-footer-col-link">Offerte Luce e Gas</a></li>
                                                <li><a href="/energia/offerte-luce" class="tlb-footer-col-link">Offerte Luce</a></li>
                                                <li><a href="/energia/offerte-gas" class="tlb-footer-col-link">Offerte Gas</a></li>
                                                <li><a href="/energia/quanto-costa-un-kwh" class="tlb-footer-col-link">Costo kWh</a></li>
                                                <li><a href="/energia/psv" class="tlb-footer-col-link">Prezzo PSV Oggi</a></li>
                                            </ul>
                </div>
                                <div class="tlb-footer-col">
                    <p class="tlb-footer-col-title">Internet</p>
                    <ul class="tlb-footer-col-list">
                                                <li><a href="/internet/offerte-internet-casa" class="tlb-footer-col-link">Offerte Internet Casa</a></li>
                                                <li><a href="/internet/offerte-fibra-ottica" class="tlb-footer-col-link">Offerte Fibra</a></li>
                                                <li><a href="/internet/offerte-telefonia-mobile" class="tlb-footer-col-link">Offerte Mobile</a></li>
                                                <li><a href="/internet/offerte-fwa" class="tlb-footer-col-link">Offerte FWA</a></li>
                                                <li><a href="/internet/partita-iva" class="tlb-footer-col-link">Offerte Partita IVA</a></li>
                                            </ul>
                </div>
                                <div class="tlb-footer-col">
                    <p class="tlb-footer-col-title">Pay-TV</p>
                    <ul class="tlb-footer-col-list">
                                                <li><a href="/pay-tv/dazn" class="tlb-footer-col-link">Dazn</a></li>
                                                <li><a href="/pay-tv/netflix" class="tlb-footer-col-link">Netflix</a></li>
                                                <li><a href="/pay-tv/sky" class="tlb-footer-col-link">Sky</a></li>
                                                <li><a href="/pay-tv/now-tv" class="tlb-footer-col-link">Now TV</a></li>
                                                <li><a href="/pay-tv/disney-plus" class="tlb-footer-col-link">Disney Plus</a></li>
                                            </ul>
                </div>
                            </div>

            
                                    <div class="tlb-footer-service">
                                <a href="/mission" class="tlb-footer-service-link">Chi siamo</a>
                                <a href="/contattaci" class="tlb-footer-service-link">Contatti</a>
                                <a href="/team" class="tlb-footer-service-link">Redazione</a>
                                <a href="https://selectra.net/posizioni-aperte" class="tlb-footer-service-link">Lavora con noi</a>
                                <a href="https://selectra.net/note-legali" class="tlb-footer-service-link">Note legali</a>
                            </div>
            
            <div id="sticky-cta-hide-sentinel" aria-hidden="true"></div>

            
            <div class="tlb-footer-bottom">
                <p>
                    &copy; 2026 Selectra
                                            &middot; P.IVA 13228841006
                                        &middot; <a href="/privacy-policy">Privacy</a>
                    &middot; <a href="https://selectra.net/informativa/cookie-policy" target="_blank" rel="noopener">Cookies</a>
                    &middot; <button
    type="button"
    @click="$dispatch('open-report-error-modal')"
    class="hover:underline cursor-pointer cursor-pointer"
>Segnala un errore in questa pagina</button>
                </p>
            </div>

        </div>
    </footer>

    
    <div
    x-data="Object.assign(businessHours(window.__hoursConfig), { visible: true })"
    x-init="
        const sentinel = document.getElementById('sticky-cta-hide-sentinel');
        if (sentinel) {
            new IntersectionObserver(([entry]) => { visible = !entry.isIntersecting; }).observe(sentinel);
        }
    "
    x-show="visible"
    x-transition:enter="transition ease-out duration-200"
    x-transition:enter-start="translate-y-full opacity-0"
    x-transition:enter-end="translate-y-0 opacity-100"
    x-transition:leave="transition ease-in duration-200"
    x-transition:leave-start="translate-y-0 opacity-100"
    x-transition:leave-end="translate-y-full opacity-0"
    x-cloak
    
    class="tlb-sticky-cta fixed bottom-0 left-0 right-0 z-40 md:hidden"
>
    <div class="tlb-sticky-cta-inner">

                    <p class="tlb-sticky-cta-label">Consulenza gratuita</p>
            <div class="tlb-sticky-cta-row">
                
                <a x-show="isOpen" x-cloak
                   href="tel:+390282951058"
                   x-init="
                       const btn = $el;
                       const inner = btn.querySelector('[data-fit-phone]');
                       const fit = () => {
                           if (!inner || !btn.clientWidth) return;
                           inner.style.fontSize = '16px';
                           const natural = inner.offsetWidth;
                           if (!natural) return;
                           inner.style.fontSize = Math.max(16, Math.min(30, 16 * (btn.clientWidth * 0.6) / natural)) + 'px';
                       };
                       $nextTick(fit);
                       new ResizeObserver(fit).observe(btn);
                   "
                   class="tlb-sticky-cta-btn tlb-sticky-cta-btn--activate" style="grid-column:1/-1">
                    <span data-fit-phone style="display:inline-flex;align-items:center;gap:0.375rem;line-height:1">
                        <svg class="shrink-0" style="width:1em;height:1em" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                            <path stroke-linecap="round" stroke-linejoin="round" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
                        </svg>
                        02 8295 1058
                    </span>
                </a>
                
                <button x-show="!isOpen" x-cloak type="button"
                        @click="$dispatch('open-callback-modal', { leadSource: 'it-ei-cc-tlbgeneral' })"
                        class="tlb-sticky-cta-btn tlb-sticky-cta-btn--activate">
                    <svg class="w-4 h-4 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
                    </svg>
                    Richiamata gratuita
                </button>
                
                <a x-show="!isOpen" x-cloak
                   href="https://wa.me/393755981579?text=Ciao%2C%20vorrei%20alcune%20informazioni%20sulle%20utenze" target="_blank" rel="noopener"
                   class="tlb-sticky-cta-btn tlb-sticky-cta-btn--whatsapp">
                    <svg class="w-4 h-4 shrink-0" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
                        <path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"/>
                    </svg>
                    Chat
                </a>
            </div>

        
    </div>
</div>

    <div
    x-data="{
        open: false,
        leadSource: 'it-ei-cc-tlbgeneral',

        phone: '',
        when: 'now',
        day: '',
        hour: '',
        legal: false,
        loading: false,
        success: false,
        error: '',
        phoneError: '',

        validatePhone() {
            if (!this.phone.trim()) { this.phoneError = ''; return false; }
            const digits = this.phone.replace(/\D/g, '').replace(/^(0039|39)/, '');
            const ok = digits.length > 0 && (/^3\d{9}$/.test(digits) || /^0\d{5,9}$/.test(digits));
            this.phoneError = ok ? '' : 'Numero non valido: usa un formato italiano (es. 333 123 4567 o 02 1234567).';
            return ok;
        },

        get slots() {
            const getDay = (d) => {
                if (d === 'today') return new Date().getDay();
                if (d === 'tomorrow') return new Date(Date.now() + 86400000).getDay();
                return new Date(d + 'T12:00').getDay();
            };
            const dow = getDay(this.day);
            let start, end;
            if (dow === 0) { start = 9; end = 18; }
            else if (dow === 6) { start = 8.5; end = 18.5; }
            else { start = 8; end = 21; }
            if (this.day === 'today') {
                const now = new Date();
                const nowDecimal = now.getHours() + now.getMinutes() / 60;
                const nextSlot = Math.ceil(nowDecimal * 2) / 2;
                if (nextSlot > start) start = nextSlot;
            }
            const out = [];
            for (let t = start; t < end; t += 0.5) {
                out.push(String(Math.floor(t)).padStart(2, '0') + ':' + (t % 1 === 0 ? '00' : '30'));
            }
            return out;
        },

        async submit() {
            if (!this.phone) { this.error = 'Inserisci il tuo numero di telefono.'; return; }
            if (!this.validatePhone()) { this.error = this.phoneError; return; }
            if (!this.legal) { this.error = 'Devi accettare i termini per continuare.'; return; }
            if (this.when === 'later' && (!this.day || !this.hour)) { this.error = 'Seleziona giorno e orario per il richiamo.'; return; }
            this.error = '';
            this.loading = true;
            try {
                const res = await fetch('/api/callback', {
                    method: 'POST',
                    headers: { 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-CSRF-TOKEN': document.querySelector('meta[name=csrf-token]')?.content ?? '' },
                    body: JSON.stringify({
                        phone: this.phone,
                        prefix: 'it',
                        lead_source: this.leadSource,
                        when: this.when,
                        day: this.when === 'later' ? this.day : null,
                        hour: this.when === 'later' ? this.hour : null,
                        legal: this.legal ? '1' : '0',
                    }),
                });
                const json = await res.json();
                if (json.success) {
                    this.success = true;
                } else {
                    this.error = json.message || 'Si è verificato un errore. Riprova.';
                }
            } catch {
                this.error = 'Impossibile inviare la richiesta. Controlla la connessione e riprova.';
            } finally {
                this.loading = false;
            }
        },

        reset() {
            this.phone = ''; this.when = 'now'; this.day = ''; this.hour = '';
            this.legal = false; this.loading = false; this.success = false; this.error = ''; this.phoneError = '';
        }
    }"
    @open-callback-modal.window="open = true; leadSource = $event.detail?.leadSource ?? 'it-ei-cc-tlbgeneral'; reset()"
    @keydown.escape.window="open = false"
    x-cloak
    x-show="open"
    class="fixed inset-0 z-50"
>
    
    <div
        x-show="open"
        x-transition:enter="transition ease-out duration-300"
        x-transition:enter-start="opacity-0"
        x-transition:enter-end="opacity-100"
        x-transition:leave="transition ease-in duration-200"
        x-transition:leave-start="opacity-100"
        x-transition:leave-end="opacity-0"
        class="absolute inset-0 bg-black/40 backdrop-blur-sm"
        @click="open = false"
    ></div>

    
    <div
        x-show="open"
        x-transition:enter="transition ease-out duration-300"
        x-transition:enter-start="translate-x-full"
        x-transition:enter-end="translate-x-0"
        x-transition:leave="transition ease-in duration-200"
        x-transition:leave-start="translate-x-0"
        x-transition:leave-end="translate-x-full"
        class="absolute inset-y-0 right-0 w-full sm:max-w-md bg-white shadow-2xl flex flex-col"
    >
        
        <div class="flex items-center justify-between px-5 py-4 border-b border-gray-200 bg-primary">
            <div class="flex items-center gap-3">
                <div class="w-8 h-8 rounded-lg bg-white/20 flex items-center justify-center shrink-0">
                    <svg class="w-4 h-4 text-white" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z"/>
                    </svg>
                </div>
                <div>
                    <h3 class="font-bold text-white text-base leading-tight">Ti richiamiamo gratis</h3>
                    <p class="text-white/70 text-xs">Un esperto ti aiuta a trovare l'offerta migliore</p>
                </div>
            </div>
            <button @click="open = false" class="flex items-center justify-center w-8 h-8 rounded-lg hover:bg-white/10 transition-colors cursor-pointer">
                <svg class="w-5 h-5 text-white/70" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/></svg>
            </button>
        </div>

        
        <div class="flex-1 overflow-y-auto px-5 py-6">

            
            <div x-show="success" class="flex flex-col items-center justify-center py-12 text-center">
                <div class="w-16 h-16 rounded-full bg-green-100 flex items-center justify-center mb-4">
                    <svg class="w-8 h-8 text-green-600" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"/>
                    </svg>
                </div>
                <h4 class="text-xl font-bold text-gray-900 mb-2">Richiesta inviata!</h4>
                <p class="text-sm text-gray-600 mb-6">Un nostro esperto ti richiamerà al più presto per aiutarti a trovare l'offerta più conveniente.</p>
                <button @click="open = false" class="inline-flex items-center gap-2 bg-primary hover:bg-primary-dark text-white font-semibold py-2.5 px-5 rounded-xl text-sm transition-colors cursor-pointer">
                    Chiudi
                </button>
            </div>

            
            <form x-show="!success" @submit.prevent="submit()" class="space-y-5">

                
                <div>
                    <label for="callback-phone" class="block text-sm font-semibold text-gray-700 mb-1.5">Numero di telefono</label>
                    <div :class="phoneError ? 'border-red-300 focus-within:ring-red-300/30 focus-within:border-red-400' : 'border-gray-300 focus-within:ring-primary/30 focus-within:border-primary'"
                         class="flex items-center rounded-xl border bg-white overflow-hidden focus-within:ring-2 transition">
                        <span class="pl-3 pr-1 text-base select-none">🇮🇹</span>
                        <span class="text-gray-200 text-lg">|</span>
                        <input type="tel" id="callback-phone" name="phone" x-model="phone" placeholder="333 123 4567"
                               @blur="validatePhone()"
                               @input="validatePhone()"
                               class="flex-1 border-0 bg-transparent text-gray-900 text-sm py-3 px-3 focus:ring-0 focus:outline-none placeholder-gray-400" required>
                    </div>
                    <p x-show="phoneError" x-cloak x-text="phoneError" class="mt-1.5 text-xs text-red-600"></p>
                </div>

                
                <div>
                    <p class="block text-sm font-semibold text-gray-700 mb-2">Quando vuoi essere richiamato?</p>
                    <div class="grid grid-cols-2 gap-2 mb-3">
                        <button type="button" @click="when = 'now'"
                                :class="when === 'now' ? 'bg-primary text-white border-primary' : 'bg-gray-50 text-gray-700 border-gray-200 hover:border-primary/50'"
                                class="flex items-center justify-center gap-2 px-3 py-2.5 rounded-xl border text-sm font-medium transition-colors cursor-pointer">
                            <svg class="w-4 h-4 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 002.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 01-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 00-1.091-.852H4.5A2.25 2.25 0 002.25 4.5v2.25z"/></svg>
                            Adesso
                        </button>
                        <button type="button" @click="when = 'later'"
                                :class="when === 'later' ? 'bg-primary text-white border-primary' : 'bg-gray-50 text-gray-700 border-gray-200 hover:border-primary/50'"
                                class="flex items-center justify-center gap-2 px-3 py-2.5 rounded-xl border text-sm font-medium transition-colors cursor-pointer">
                            <svg class="w-4 h-4 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
                            Più tardi
                        </button>
                    </div>

                    <div x-show="when === 'later'" x-collapse x-cloak class="space-y-3">
                        
                        <div>
                            <p class="block text-xs font-medium text-gray-500 mb-1.5">Quale giorno?</p>
                            <div class="grid grid-cols-3 gap-2">
                                <button type="button" @click="day = 'today'; hour = ''"
                                        :class="day === 'today' ? 'bg-accent/10 border-accent text-accent' : 'bg-white border-gray-200 text-gray-700 hover:border-accent/50'"
                                        class="flex flex-col items-center justify-center px-2 py-2 rounded-lg border text-xs font-medium transition-colors cursor-pointer">
                                    <svg class="w-3.5 h-3.5 mb-0.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg>
                                    Oggi
                                </button>
                                <button type="button" @click="day = 'tomorrow'; hour = ''"
                                        :class="day === 'tomorrow' ? 'bg-accent/10 border-accent text-accent' : 'bg-white border-gray-200 text-gray-700 hover:border-accent/50'"
                                        class="flex flex-col items-center justify-center px-2 py-2 rounded-lg border text-xs font-medium transition-colors cursor-pointer">
                                    <svg class="w-3.5 h-3.5 mb-0.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/></svg>
                                    Domani
                                </button>
                                <button type="button" @click="$refs.datePicker.showPicker()"
                                        :class="day && day !== 'today' && day !== 'tomorrow' ? 'bg-accent/10 border-accent text-accent' : 'bg-white border-gray-200 text-gray-700 hover:border-accent/50'"
                                        class="flex flex-col items-center justify-center px-2 py-2 rounded-lg border text-xs font-medium transition-colors cursor-pointer">
                                    <svg class="w-3.5 h-3.5 mb-0.5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"/></svg>
                                    <span x-text="day && day !== 'today' && day !== 'tomorrow' ? new Date(day + 'T12:00').toLocaleDateString('it-IT', {day: 'numeric', month: 'short'}) : 'Altra data'"></span>
                                </button>
                            </div>
                            <input type="date" id="callback-date" name="date" x-ref="datePicker"
                                   :min="new Date(Date.now() + 2*86400000).toISOString().slice(0,10)"
                                   :max="new Date(Date.now() + 14*86400000).toISOString().slice(0,10)"
                                   @change="day = $event.target.value; hour = ''"
                                   class="sr-only">
                            <p x-show="day && day !== 'today' && day !== 'tomorrow'" x-cloak
                               class="text-xs text-accent font-medium mt-1"
                               x-text="day ? 'Chiamata prevista: ' + new Date(day + 'T12:00').toLocaleDateString('it-IT', {weekday: 'long', day: 'numeric', month: 'long'}) : ''"></p>
                        </div>

                        
                        <div x-show="day" x-collapse x-cloak>
                            <p class="block text-xs font-medium text-gray-500 mb-1.5">A che ora?</p>
                            <div x-show="slots.length > 0" class="grid grid-cols-4 gap-1.5 max-h-36 overflow-y-auto rounded-lg border border-gray-200 p-2 bg-gray-50">
                                <template x-for="slot in slots" :key="slot">
                                    <button type="button" @click="hour = slot"
                                            :class="hour === slot ? 'bg-accent text-white border-accent' : 'bg-white border-gray-200 text-gray-700 hover:border-accent/50'"
                                            class="px-2 py-1.5 rounded-md border text-xs font-medium transition-colors cursor-pointer text-center"
                                            x-text="slot"></button>
                                </template>
                            </div>
                            <p x-show="slots.length === 0" x-cloak class="text-xs text-red-600 bg-red-50 border border-red-200 rounded-lg px-3 py-2">
                                Oggi abbiamo già chiuso, scegli un altro giorno
                            </p>
                        </div>
                    </div>
                </div>

                
                <p x-show="error" x-cloak x-text="error" class="text-sm text-red-600 bg-red-50 border border-red-200 rounded-lg px-3 py-2"></p>

                
                <label class="flex items-start gap-2.5 text-xs text-gray-500 leading-relaxed cursor-pointer">
                    <input type="checkbox" x-model="legal" class="mt-0.5 shrink-0 text-primary focus:ring-primary rounded">
                    <span>Compilando questo modulo accetti la nostra <a href="https://selectra.net/note-legali" rel="nofollow noopener" target="_blank" class="text-primary underline hover:no-underline">informativa sulla privacy</a>. Ogni consumatore ha il diritto di iscriversi al Registro delle Opposizioni per opporsi al telemarketing.</span>
                </label>

                
                <button type="submit"
                        :disabled="loading"
                        class="w-full flex items-center justify-center gap-2 bg-accent hover:bg-accent-dark text-white text-sm font-bold rounded-xl px-4 py-3.5 transition-colors shadow-md shadow-accent/20 cursor-pointer disabled:opacity-60 disabled:cursor-not-allowed">
                    <template x-if="!loading">
                        <svg class="w-4 h-4 shrink-0" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M14.857 17.082a23.848 23.848 0 005.454-1.31A8.967 8.967 0 0118 9.75v-.7V9A6 6 0 006 9v.75a8.967 8.967 0 01-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 01-5.714 0m5.714 0a3 3 0 11-5.714 0"/></svg>
                    </template>
                    <template x-if="loading">
                        <svg class="w-4 h-4 animate-spin shrink-0" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"/><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8v8z"/></svg>
                    </template>
                    <span x-text="loading ? 'Invio in corso…' : 'Fatti richiamare'"></span>
                </button>
            </form>
        </div>
    </div>
</div>
    <div
    x-data="{
        open: false,
        message: '',
        website: '',
        status: 'idle',
        cooldownUntil: 0,
        get charCount() { return this.message.length; },
        get canSubmit() {
            return this.status !== 'submitting'
                && this.message.trim().length >= 3
                && this.message.length <= 5000
                && Date.now() >= this.cooldownUntil;
        },
        reset() {
            this.message = '';
            this.website = '';
            this.status = 'idle';
        },
        async submit() {
            if (!this.canSubmit) return;
            this.status = 'submitting';
            try {
                const resp = await fetch('/api/error-reports', {
                    method: 'POST',
                    headers: {
                        'Content-Type': 'application/json',
                        'Accept': 'application/json',
                        'X-Requested-With': 'XMLHttpRequest',
                    },
                    body: JSON.stringify({
                        url: window.location.href,
                        message: this.message,
                        website: this.website,
                    }),
                });
                if (resp.status === 201) {
                    this.status = 'success';
                    this.cooldownUntil = Date.now() + 60000;
                } else if (resp.status === 429) {
                    this.status = 'rate_limited';
                    const retry = parseInt(resp.headers.get('Retry-After') || '60', 10);
                    this.cooldownUntil = Date.now() + (retry * 1000);
                } else {
                    this.status = 'error';
                }
            } catch (e) {
                this.status = 'error';
            }
        },
    }"
    @open-report-error-modal.window="open = true; reset();"
    x-cloak
>
    <div
    x-show="open"
    x-cloak
    class="fixed inset-0 z-50"
    role="dialog"
    aria-modal="true"
     aria-label="Segnala un errore in questa pagina"     @keydown.escape.window="open = false"
    x-init="$watch('open', v => document.body.style.overflow = v ? 'hidden' : '')"
>
    
    <div
        class="absolute inset-0 bg-black/40"
        aria-hidden="true"
        x-transition:enter="transition ease-out duration-200"
        x-transition:enter-start="opacity-0"
        x-transition:enter-end="opacity-100"
        x-transition:leave="transition ease-in duration-150"
        x-transition:leave-start="opacity-100"
        x-transition:leave-end="opacity-0"
        @click="open = false"
    ></div>

        
    <div class="absolute inset-0 flex items-center justify-center p-6 pointer-events-none">
        <div
            class="bg-white rounded-2xl shadow-dropdown w-full sm:max-w-lg max-h-[calc(100vh-3rem)] overflow-y-auto relative pointer-events-auto"
            x-transition:enter="transition ease-out duration-200"
            x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
            x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100"
            x-transition:leave="transition ease-in duration-150"
            x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"
            x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
            @click.stop
        >
            <div class="flex items-center justify-between p-5 border-b border-gray-200">
            <p class="text-lg font-bold text-gray-900">Segnala un errore in questa pagina</p>
            <button
                type="button"
                @click="open = false"
                class="text-gray-500 hover:text-gray-900 p-1 cursor-pointer"
                aria-label="Chiudi"
            >
                <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2" aria-hidden="true">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/>
                </svg>
            </button>
        </div>

        
        <template x-if="status === 'success'">
            <div class="p-6 text-center">
                <svg class="w-14 h-14 text-green-500 mx-auto mb-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5" aria-hidden="true">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>
                </svg>
                <p class="text-lg font-bold text-gray-900 mb-2">Grazie per la segnalazione!</p>
                <p class="text-gray-600 mb-6">Il tuo messaggio è stato inviato. Il nostro team lo esaminerà al più presto.</p>
                <button
                    type="button"
                    @click="open = false"
                    class="inline-flex items-center justify-center rounded-button bg-accent text-white px-5 py-2.5 font-bold hover:bg-accent-dark transition-colors"
                >
                    Chiudi
                </button>
            </div>
        </template>

        
        <template x-if="status !== 'success'">
            <form @submit.prevent="submit()" class="p-6">
                
                <div aria-hidden="true" style="position:absolute; left:-9999px; top:-9999px;">
                    <label>Leave this field empty
                        <input type="text" name="website" x-model="website" value="" autocomplete="off" tabindex="-1">
                    </label>
                </div>

                <p class="text-sm text-gray-600 mb-4">Hai trovato un&#039;informazione inesatta o obsoleta? Faccelo sapere: il nostro team verificherà e correggerà al più presto.</p>

                <div class="mb-2">
                    <label for="rep-message" class="block text-sm font-semibold text-gray-700 mb-1">
                        Descrivi l&#039;errore
                        <span class="text-red-600" aria-hidden="true">*</span>
                    </label>
                    <textarea
                        id="rep-message"
                        x-model="message"
                        rows="5"
                        minlength="3"
                        maxlength="5000"
                        required
                        placeholder="Esempio: il numero di telefono mostrato non corrisponde a quello sul sito ufficiale del fornitore."
                        class="w-full rounded-input border border-gray-300 px-3 py-2.5 text-base focus:border-accent focus:ring-1 focus:ring-accent outline-none transition-colors resize-y"
                    ></textarea>
                    <div class="flex justify-between text-xs text-gray-500 mt-1">
                        <span x-show="message.length < 3">Almeno 3 caratteri</span>
                        <span class="ml-auto" x-text="charCount + ' / 5000'"></span>
                    </div>
                </div>

                <template x-if="status === 'rate_limited'">
                    <p class="text-sm text-amber-700 bg-amber-50 border border-amber-200 rounded-input px-3 py-2 mt-3">
                        Hai già inviato una segnalazione di recente, attendi qualche istante prima di inviarne un&#039;altra.
                    </p>
                </template>

                <template x-if="status === 'error'">
                    <p class="text-sm text-red-700 bg-red-50 border border-red-200 rounded-input px-3 py-2 mt-3">
                        Si è verificato un errore, riprova più tardi.
                    </p>
                </template>

                <div class="flex items-center justify-end gap-3 mt-5">
                    <button
                        type="button"
                        @click="open = false"
                        class="text-sm text-gray-600 hover:text-gray-900 px-3 py-2 cursor-pointer"
                    >
                        Annulla
                    </button>
                    <button
                        type="submit"
                        :disabled="!canSubmit"
                        class="inline-flex items-center justify-center rounded-button bg-accent text-white px-5 py-2.5 font-bold hover:bg-accent-dark transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
                    >
                        <span x-show="status !== 'submitting'">Invia</span>
                        <span x-show="status === 'submitting'" x-cloak aria-live="polite">Invio in corso…</span>
                    </button>
                </div>
            </form>
        </template>
        </div>
    </div>
    </div>
</div>
    <script>
    (function () {
        if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
            return;
        }
        var s = document.createElement('script');
        s.src = 'https://pulse.selectra.com/widget-iife.js';
        s.async = true;
        s.setAttribute('data-space', 'web-it-e');
        s.setAttribute('data-api-base', 'https://pulse.selectra.com/api');
        (document.body || document.documentElement).appendChild(s);
    })();
</script>
    </body>
</html>
