html {
            font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        }

        * {
            box-sizing: border-box
        }

        :focus-visible {
            outline: 3px solid #0050b5;
            outline-offset: 4px
        }

        

        body,
        html {
            min-height: 100dvh;
            height: auto;
            margin: 0;
            padding: 0;
            color: var(--color-cobalt);
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow-x: hidden;
            background-color: var(--bg-white);
            scroll-behavior: smooth;
            text-rendering: optimizeLegibility;

            /* OTTIMIZZAZIONI MOBILE UX */
            -webkit-text-size-adjust: 100%;
            /* LE RIGHE "COLPEVOLI" SONO STATE RIMOSSE QUI SOTTO: */
            /* overscroll-behavior-y: none;  <-- CANCELLATO */
            /* touch-action: manipulation;   <-- CANCELLATO */
        }

        main.container {
            max-width: 800px;
            padding: 2rem;
            width: 90%;
            z-index: 10;
            position: relative;
            font-display: swap;
            padding-bottom: 120px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center
        }

        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            line-height: 1.3;
            margin-bottom: 1rem;
            text-align: center
        }

        .highlight {
            background-color: var(--color-green);
            color: var(--color-cobalt);
            padding: 0 .2em;
            border-radius: 4px;
            box-decoration-break: clone;
            -webkit-box-decoration-break: clone
        }

        .sub-text {
            margin-top: 2rem;
            margin-bottom: 3rem;
            font-weight: 700;
            font-size: 1.1rem;
            line-height: 1.5;
            color: var(--color-cobalt);
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            opacity: 1;
            text-align: center
        }

        .cta-ghost {
            display: inline-block;
            background-color: transparent;
            color: var(--color-cobalt);
            font-family: inherit;
            font-weight: 700;
            font-size: 1rem;
            padding: .8rem 2rem;
            border: 2px solid var(--color-cobalt);
            border-radius: 50px;
            text-decoration: none;
            transition: all .2s ease;
            cursor: pointer;
            margin-bottom: 1rem;
            line-height: normal;
            -webkit-appearance: none;
            position: relative;
        }

        /* Area tocco maggiorata per accessibilità */
        .cta-ghost::after {
            content: '';
            position: absolute;
            top: -10px;
            bottom: -10px;
            left: -10px;
            right: -10px;
        }

        .cta-ghost:hover,
        .cta-ghost:focus {
            background-color: var(--color-green);
            color: var(--color-cobalt);
            border-color: var(--color-green);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(8, 255, 8, .3)
        }



        .contact-dock {
            position: fixed;
            z-index: 990;
            display: flex;
            gap: 15px;
            transition: all .3s ease;
            /* RIMOSSO: content-visibility: auto; */
            /* RIMOSSO: contain-intrinsic-size: 1px 80px; */
            padding: 10px;
        }

        .contact-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #fff;
            font-weight: 700;
            font-size: .9rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
            transition: transform .2s
        }

        .contact-btn:hover {
            transform: scale(1.05)
        }

        .btn-call {
            background-color: var(--color-cobalt)
        }

        .btn-wa {
            background-color: #075e54
        }

        .btn-mail {
            background-color: var(--color-orange);
            color: #00204a !important
        }

        .btn-mail svg {
            fill: #00204a !important
        }

        .btn-label {
            margin-left: 8px
        }

        @media (min-width:601px) {
            .contact-dock {
                flex-direction: column;
                bottom: 30px;
                right: 30px;
                align-items: flex-end
            }

            .contact-btn {
                padding: 12px 20px;
                border-radius: 50px;
                min-width: 160px;
                justify-content: flex-start
            }

            .contact-btn svg {
                width: 20px;
                height: 20px
            }
        }

        @media (max-width:600px) {
            main.container {
                width: 100%;
                padding-left: 1rem;
                padding-right: 1rem;
            }


            .contact-dock {
                bottom: 0;
                left: 0;
                width: 100%;
                background: rgba(255, 255, 255, .95);
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                border-top: 1px solid rgba(0, 0, 0, .05);
                padding: 10px 20px 25px 20px;
                justify-content: space-between;
                gap: 10px;
                box-shadow: 0 -5px 20px rgba(0, 0, 0, .05)
            }

            .contact-btn {
                flex: 1;
                height: 50px;
                border-radius: 12px;
                flex-direction: column;
                font-size: .75rem;
                padding: 0;
                background-color: transparent;
                box-shadow: none
            }

            .contact-btn svg {
                width: 24px;
                height: 24px;
                margin-bottom: 2px
            }

            .btn-call {
                color: var(--color-cobalt);
                background-color: transparent
            }

            .btn-call svg {
                fill: var(--color-cobalt)
            }

            .btn-wa {
                color: #107a6d;
                background-color: transparent
            }

            .btn-wa svg {
                fill: #107a6d
            }

            .btn-mail {
                color: #b05500;
                background-color: transparent
            }

            .btn-mail svg {
                fill: #b05500
            }

            .btn-label {
                margin-left: 0;
                display: block
            }

            h1 {
                font-size: 1.8rem;
                margin-bottom: .5rem
            }

            .container {
                padding: 1.5rem;
                padding-bottom: 120px
            }

            .cta-ghost {
                width: auto;
                padding: .8rem 1.5rem
            }

            .sub-text {
                margin-top: 1.5rem;
                font-size: 1rem
            }

            #cookie-banner {
                bottom: 90px;
                left: 0;
                transform: translateY(150%);
                width: 100%;
                max-width: 100%;
                border-radius: 24px 24px 0 0;
                padding: 1.5rem
            }

            #cookie-banner.visible {
                transform: translateY(0)
            }

            .cookie-buttons {
                flex-direction: column-reverse;
                width: 100%;
                gap: 12px
            }

            .btn-accept {
                width: 100%;
                padding: 16px;
                font-size: 1rem
            }

            .btn-decline {
                width: 100%;
                padding: 10px;
                border: none;
                text-decoration: underline;
                text-decoration-color: rgba(0, 80, 181, .3);
                opacity: 1
            }
        }

        #cookie-banner {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(150%);
            width: 90%;
            max-width: 450px;
            background: rgba(255, 255, 255, .98);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(0, 80, 181, .15);
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
            z-index: 1000;
            text-align: left;
            transition: transform .5s cubic-bezier(.19, 1, .22, 1);
            font-size: .9rem;
            color: var(--color-cobalt);
            contain: layout style;

            /* Performance Rendering */
            content-visibility: auto;
            contain-intrinsic-size: 1px 150px;
        }

        #cookie-banner.visible {
            transform: translateX(-50%) translateY(0)
        }

        .cookie-title {
            font-weight: 800;
            margin-bottom: .8rem;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 8px
        }

        .cookie-buttons {
            display: flex;
            gap: 12px;
            margin-top: 1.2rem;
            justify-content: flex-end;
            align-items: center
        }

        .btn-accept {
            background-color: var(--color-cobalt);
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            transition: transform .2s, box-shadow .2s
        }

        .btn-accept:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(0, 80, 181, .25)
        }

        .btn-decline {
            background-color: transparent;
            color: var(--color-cobalt);
            border: 1px solid var(--color-cobalt);
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity .2s
        }
        .btn-decline:hover {
            opacity: .7
        }
        
        /* --- UTILITY PER AZIONI ED ELEMENTI GRAFICI CENTRALIZZATI --- */
        .action-column {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: fit-content;
            margin: 0 auto;
        }

        .btn-fluid {
            margin-bottom: 0;
            width: 100%;
        }

        .link-fluid {
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 0;
            box-sizing: border-box;
            width: 100%;
        }

        .cookie-text {
            line-height: 1.5;
            margin-bottom: 0;
        }

        .cookie-link {
            color: var(--color-cobalt);
            font-weight: 800;
            text-decoration: none;
        }

        .contact-email-link {
            color: inherit;
            font-weight: 700;
        }

        .terms-link {
            color: var(--color-cobalt);
            font-weight: 700;
            text-decoration: underline;
        }


/* --- INIETTATO DA INDEX.HTML --- */

        @media (max-height: 650px) {
            h1 {
                font-size: 1.5rem !important;
                margin-bottom: 0.2rem !important;
                line-height: 1.2 !important;
            }



            .sub-text {
                font-size: 0.8rem !important;
                margin-bottom: 0.5rem !important;
                line-height: 1.2 !important;
            }


            /* Stringiamo i bottoni per farceli stare entrambi */
            #btn-wrapper {
                gap: 8px !important;
                margin-top: 5px !important;
            }

            .cta-ghost {
                padding: 10px 15px !important;
                font-size: 0.8rem !important;
                margin-bottom: 0 !important;
            }
        }

        @media (max-height: 550px) {
            h1 {
                font-size: 1.3rem !important;
            }

            .sub-text {
                display: none !important;
            }

            /* Sacrifichiamo la sub-text su schermi esasperatamente corti */
            #btn-wrapper {
                gap: 5px !important;
                margin-top: 0 !important;
            }
        }

        /* VISTA TATTICA PER APPLE WATCH (< 250px) */
        @media (max-width: 250px),
        (max-height: 250px) {

            /* Eliminazione superfluo totale */
            .brand-claim,
            .sub-text,
            .brand-separator,
            footer,
            .cta-ghost,
            div[style*="width: fit-content"],
            h1 br {
                display: none !important;
            }

            body,
            html {
                height: 100dvh !important;
                margin: 0 !important;
                padding: 0 !important;
                overflow-y: scroll !important;
                /* Abilitiamo lo scroll per sicurezza, ma miriamo a fit-to-screen */
            }

            main.container {
                padding: 10px 2px 50px 2px !important;
                /* Padding bottom per non far coprire dalla dock */
                margin: 0 !important;
                gap: 5px !important;
                justify-content: flex-start !important;
                height: auto !important;
                min-height: 100dvh !important;
            }

            h1 {
                font-size: 0.75rem !important;
                margin: 0 !important;
                line-height: 1.1 !important;
                padding: 0 5px !important;
            }

            /* Ancoraggio assoluto e minimale della docking bar */
            .contact-dock {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                width: 100% !important;
                padding: 2px 0 !important;
                margin: 0 !important;
                gap: 0 !important;
                justify-content: space-evenly !important;
            }

            .contact-btn {
                padding: 0 !important;
                margin: 0 !important;
            }

            .btn-label {
                font-size: 0.5rem !important;
                margin: 0 !important;
            }

            .contact-btn svg {
                width: 14px !important;
                height: 14px !important;
                margin-bottom: 2px !important;
            }
        }

        /* --- MODAL LOGIN OVERLAY --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100dvh;
            background: rgba(0, 80, 181, 0.4);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        .modal-content {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 20px 50px rgba(0, 80, 181, 0.2);
            border: 1px solid rgba(0, 80, 181, 0.1);
            max-width: 400px;
            width: 90%;
            text-align: left;
            position: relative;
            transform: translateY(20px) scale(0.95);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            color: var(--color-cobalt);
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0) scale(1);
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--color-cobalt);
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s;
            padding: 0;
        }

        .modal-close:hover {
            background: rgba(0, 80, 181, 0.1);
        }

        .modal-content h2 {
            margin-top: 0;
            font-size: 1.8rem;
            text-align: center;
            margin-bottom: 25px;
            line-height: 1.1;
        }

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

        .form-group label {
            display: block;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--color-cobalt);
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid #E0E6ED;
            border-radius: 12px;
            font-size: 1.05rem;
            font-family: inherit;
            color: var(--color-cobalt);
            background: #f8fafc;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--color-green);
            background: white;
            box-shadow: 0 0 0 4px rgba(8, 255, 8, 0.15);
        }

        .error-msg {
            background: rgba(255, 59, 48, 0.1);
            color: var(--color-red);
            padding: 15px;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 25px;
            display: none;
            text-align: center;
            border: 1px solid rgba(255, 59, 48, 0.3);
            animation: shake 0.5s;
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            25% {
                transform: translateX(-5px);
            }

            50% {
                transform: translateX(5px);
            }

            75% {
                transform: translateX(-5px);
            }
        }

        #button-group .cta-ghost {
            width: 100%;
            margin: 15px 0 0 0;
        }

        /* VISTA TATTICA PER APPLE WATCH (< 250px) PER MODALE */
        @media (max-width: 250px),
        (max-height: 250px) {
            .modal-content {
                padding: 10px !important;
                width: 95% !important;
                border-radius: 12px !important;
                box-shadow: none !important;
                border: none !important;
            }
            .modal-close {
                top: 2px !important;
                right: 2px !important;
                font-size: 1.2rem !important;
                width: 20px !important;
                height: 20px !important;
            }
            .modal-content h2 {
                display: none !important; /* Nascondiamo il titolo per salvare pixel preziosi */
            }
            .form-group {
                margin-bottom: 5px !important;
            }
            .form-group label {
                font-size: 0.6rem !important;
                margin-bottom: 2px !important;
                text-align: center !important;
                letter-spacing: 0px !important;
            }
            .form-group input {
                padding: 4px !important;
                font-size: 0.85rem !important;
                text-align: center !important;
                height: 30px !important;
                border-radius: 8px !important;
            }
            #button-group .cta-ghost {
                margin-top: 5px !important;
                height: 30px !important;
                font-size: 0.8rem !important;
                padding: 0 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }
            .error-msg {
                font-size: 0.7rem !important;
                padding: 8px !important;
                margin-bottom: 10px !important;
            }
        }