:root {
                --navy: #0b3558;
                --navy-deep: #07263f;
                --green: #008f4c;
                --green-dark: #006f3b;
                --red: #c92f3a;
                --ink: #172230;
                --muted: #607080;
                --line: #dce3e8;
                --soft: #f4f7f8;
                --white: #ffffff;
                --shadow: 0 12px 30px rgba(11, 53, 88, 0.09);
            }

            * {
                box-sizing: border-box;
            }

            html {
                scroll-behavior: smooth;
            }

            body {
                margin: 0;
                background: var(--white);
                color: var(--ink);
                font-family: Verdana, Geneva, Tahoma, sans-serif;
                line-height: 1.55;
            }

            body.menu-open {
                overflow: hidden;
            }

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

            button,
            input,
            select,
            textarea {
                font: inherit;
            }

            button,
            a {
                -webkit-tap-highlight-color: transparent;
            }

            .container {
                width: min(1180px, calc(100% - 32px));
                margin: 0 auto;
            }

            .topbar {
                background: var(--navy-deep);
                color: #dce8f1;
                font-size: 0.78rem;
            }

            .topbar .container {
                display: flex;
                min-height: 34px;
                align-items: center;
                justify-content: space-between;
                gap: 16px;
            }

            .topbar strong {
                color: var(--white);
            }

            .site-header {
                position: sticky;
                top: 0;
                z-index: 50;
                background: rgba(255, 255, 255, 0.98);
                border-bottom: 1px solid var(--line);
                backdrop-filter: blur(10px);
            }

            .header-row {
                display: flex;
                min-height: 76px;
                align-items: center;
                justify-content: space-between;
                gap: 24px;
            }

            .brand {
                display: inline-flex;
                align-items: center;
                gap: 11px;
                color: var(--navy);
                font-weight: 850;
                letter-spacing: -0.04em;
                font-size: 1.55rem;
            }

            .brand-mark {
                display: grid;
                width: 43px;
                height: 43px;
                place-items: center;
                background: var(--navy);
                color: var(--white);
                border: 3px solid var(--white);
                outline: 1px solid var(--navy);
                border-radius: 50%;
                font-size: 1.2rem;
            }

            .brand em {
                color: var(--green);
                font-style: normal;
            }

            .main-nav {
                display: none;
                align-items: center;
                gap: 4px;
            }

            .main-nav a {
                padding: 11px 10px;
                color: var(--navy);
                font-size: 0.92rem;
                font-weight: 720;
                border-bottom: 3px solid transparent;
            }

            .main-nav a:hover,
            .main-nav a:focus-visible {
                color: var(--green-dark);
                border-bottom-color: var(--green);
            }

            .menu-toggle {
                display: inline-grid;
                width: 46px;
                height: 46px;
                place-content: center;
                gap: 5px;
                background: var(--navy);
                color: var(--white);
                border: 0;
                border-radius: 4px;
                cursor: pointer;
            }

            .menu-toggle span {
                display: block;
                width: 23px;
                height: 2px;
                background: currentColor;
                transition: transform 0.2s ease, opacity 0.2s ease;
            }

            .menu-toggle[aria-expanded="true"] span:nth-child(1) {
                transform: translateY(7px) rotate(45deg);
            }

            .menu-toggle[aria-expanded="true"] span:nth-child(2) {
                opacity: 0;
            }

            .menu-toggle[aria-expanded="true"] span:nth-child(3) {
                transform: translateY(-7px) rotate(-45deg);
            }

            .tricolor {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                height: 4px;
            }

            .tricolor span:nth-child(1) {
                background: #009246;
            }

            .tricolor span:nth-child(2) {
                background: #f4f5f0;
            }

            .tricolor span:nth-child(3) {
                background: #ce2b37;
            }

            .mobile-menu {
                position: fixed;
                inset: 114px 0 0;
                z-index: 45;
                display: none;
                overflow-y: auto;
                padding: 18px 16px 40px;
                background: var(--white);
            }

            .mobile-menu.is-open {
                display: grid;
                align-content: start;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }

            .mobile-menu a {
                padding: 13px 12px;
                color: var(--navy);
                background: var(--soft);
                border-left: 3px solid var(--green);
                font-size: 0.9rem;
                font-weight: 700;
            }

            .hero {
                padding: 54px 0 44px;
                background:
                    linear-gradient(110deg, rgba(11, 53, 88, 0.93), rgba(7, 38, 63, 0.90)),
                    url("../images/categorie/home.jpg") center / cover no-repeat;
                color: var(--white);
            }

            .hero-grid {
                display: grid;
                gap: 32px;
            }

            .eyebrow {
                display: inline-flex;
                align-items: center;
                gap: 8px;
                margin: 0 0 14px;
                color: #bfe8d1;
                font-size: 0.78rem;
                font-weight: 850;
                letter-spacing: 0.13em;
                text-transform: uppercase;
            }

            .hero h1 {
                max-width: 760px;
                margin: 0;
                font-family: Verdana, Geneva, Tahoma, sans-serif;
                font-size: 2.4rem;
                line-height: 1.02;
                letter-spacing: -0.045em;
            }

            .hero p {
                max-width: 700px;
                margin: 22px 0 0;
                color: #dce8f1;
                font-size: 1.05rem;
            }

            .hero-actions {
                display: flex;
                flex-wrap: wrap;
                gap: 12px;
                margin-top: 28px;
            }

            .primary-button,
            .secondary-button {
                display: inline-flex;
                min-height: 48px;
                align-items: center;
                justify-content: center;
                padding: 0 18px;
                border-radius: 4px;
                font-weight: 800;
            }

            .primary-button {
                background: var(--green);
                color: var(--white);
            }

            .secondary-button {
                color: var(--white);
                border: 1px solid rgba(255, 255, 255, 0.45);
            }

            .hero-panel {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 1px;
                background: rgba(255, 255, 255, 0.18);
                border: 1px solid rgba(255, 255, 255, 0.18);
                box-shadow: var(--shadow);
            }

            .hero-stat {
                min-height: 118px;
                padding: 20px;
                background: rgba(255, 255, 255, 0.08);
            }

            .hero-stat strong {
                display: block;
                font-family: Verdana, Geneva, Tahoma, sans-serif;
                font-size: 2rem;
            }

            .hero-stat span {
                display: block;
                margin-top: 5px;
                color: #cbdbe6;
                font-size: 0.82rem;
            }

            .section {
                padding: 58px 0;
            }

            .section-soft {
                background: var(--soft);
            }

            .section-heading {
                display: flex;
                flex-direction: column;
                gap: 10px;
                margin-bottom: 28px;
            }

            .section-heading small {
                color: var(--green-dark);
                font-size: 0.76rem;
                font-weight: 850;
                letter-spacing: 0.13em;
                text-transform: uppercase;
            }

            .section-heading h2 {
                margin: 0;
                color: var(--navy);
                font-family: Verdana, Geneva, Tahoma, sans-serif;
                font-size: 2.1rem;
                line-height: 1.1;
            }

            .section-heading p {
                max-width: 760px;
                margin: 0;
                color: var(--muted);
            }

            .category-grid {
                display: grid;
                gap: 14px;
            }

            .category-card {
                display: grid;
                grid-template-columns: auto auto 1fr;
                gap: 14px;
                min-height: 178px;
                padding: 20px;
                background: var(--white);
                border: 1px solid var(--line);
                border-top: 4px solid var(--navy);
                box-shadow: 0 7px 18px rgba(11, 53, 88, 0.05);
                transition: transform 0.2s ease, border-color 0.2s ease;
            }

            .category-card:hover {
                transform: translateY(-3px);
                border-color: #b8c7d2;
            }

            .category-card-media {
                grid-column: 1 / -1;
                display: block;
                margin: -20px -20px 3px;
                aspect-ratio: 16 / 7;
                overflow: hidden;
                background: var(--navy-deep);
                border-bottom: 1px solid var(--line);
            }

            .category-card-media img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.35s ease;
            }

            .category-card:hover .category-card-media img {
                transform: scale(1.035);
            }

            .category-number {
                color: var(--green-dark);
                font-family: Verdana, Geneva, Tahoma, sans-serif;
                font-size: 0.8rem;
                font-weight: 800;
            }

            .category-icon {
                font-size: 1.7rem;
                line-height: 1;
            }

            .category-copy h3 {
                margin: 0;
                color: var(--navy);
                font-size: 1.12rem;
            }

            .category-copy p {
                margin: 8px 0 15px;
                color: var(--muted);
                font-size: 0.9rem;
            }

            .category-copy a {
                color: var(--green-dark);
                font-size: 0.86rem;
                font-weight: 850;
            }

            .operator-list {
                display: grid;
                gap: 14px;
            }

            .operator-card {
                display: grid;
                grid-template-columns: 52px 1fr;
                background: var(--white);
                border: 1px solid var(--line);
                box-shadow: 0 8px 22px rgba(11, 53, 88, 0.06);
            }

            .operator-rank {
                display: grid;
                place-items: start center;
                padding-top: 23px;
                background: var(--navy);
                color: var(--white);
                font-family: Verdana, Geneva, Tahoma, sans-serif;
                font-size: 1.08rem;
                font-weight: 800;
            }

            .operator-main {
                padding: 20px;
            }

            .operator-heading {
                display: flex;
                align-items: flex-start;
                justify-content: space-between;
                gap: 14px;
            }

            .operator-kind {
                color: var(--green-dark);
                font-size: 0.7rem;
                font-weight: 850;
                letter-spacing: 0.09em;
                text-transform: uppercase;
            }

            .operator-heading h3 {
                margin: 3px 0 0;
                color: var(--navy);
                font-size: 1.28rem;
            }

            .official-label {
                display: none;
                padding: 5px 8px;
                color: var(--navy);
                background: #e9f2f8;
                font-size: 0.7rem;
                font-weight: 800;
            }

            .operator-main > p {
                margin: 12px 0 18px;
                color: var(--muted);
                font-size: 0.92rem;
            }

            .operator-actions {
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .vote-box {
                display: flex;
                gap: 8px;
            }

            .vote-button {
                min-height: 42px;
                padding: 0 10px;
                background: var(--white);
                color: var(--ink);
                border: 1px solid var(--line);
                border-radius: 3px;
                font-weight: 750;
                cursor: pointer;
            }

            .vote-button.is-active {
                color: var(--green-dark);
                background: #eaf7f0;
                border-color: var(--green);
            }

            .official-button {
                display: inline-flex;
                min-height: 44px;
                align-items: center;
                justify-content: center;
                padding: 0 16px;
                background: var(--green);
                color: var(--white);
                border-radius: 3px;
                font-weight: 850;
            }

            .official-button:hover {
                background: var(--green-dark);
            }

            .editorial-box {
                display: grid;
                gap: 18px;
                padding: 26px;
                background: var(--navy);
                color: var(--white);
                border-left: 6px solid var(--green);
            }

            .editorial-box h2 {
                margin: 0;
                font-family: Verdana, Geneva, Tahoma, sans-serif;
                font-size: 1.7rem;
            }

            .editorial-box p {
                margin: 0;
                color: #d5e2eb;
            }

            .site-footer {
                padding: 42px 0;
                background: var(--navy-deep);
                color: #c9d8e2;
            }

            .footer-grid {
                display: grid;
                gap: 24px;
            }

            .footer-brand {
                color: var(--white);
                font-size: 1.4rem;
                font-weight: 850;
            }

            .footer-grid p {
                max-width: 650px;
                margin: 8px 0 0;
                font-size: 0.88rem;
            }

            .footer-meta {
                display: flex;
                flex-wrap: wrap;
                gap: 14px;
                font-size: 0.82rem;
            }

            :focus-visible {
                outline: 3px solid #f0ad31;
                outline-offset: 3px;
            }

            @media (min-width: 640px) {
                .category-grid {
                    grid-template-columns: repeat(2, minmax(0, 1fr));
                }

                .official-label {
                    display: inline-block;
                }

                .operator-actions {
                    flex-direction: row;
                    align-items: center;
                    justify-content: space-between;
                }

                .official-button {
                    min-width: 170px;
                }

                .footer-grid {
                    grid-template-columns: 1fr auto;
                    align-items: end;
                }
            }

            @media (min-width: 920px) {
                .main-nav {
                    display: flex;
                }

                .menu-toggle,
                .mobile-menu {
                    display: none !important;
                }

                .hero {
                    padding: 76px 0 64px;
                }

                .hero-grid {
                    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
                    align-items: end;
                }

                .category-grid {
                    grid-template-columns: repeat(3, minmax(0, 1fr));
                }

                .section-heading {
                    flex-direction: row;
                    align-items: end;
                    justify-content: space-between;
                }

                .section-heading > div {
                    max-width: 720px;
                }
            }

/* Componenti aggiuntivi del sito definitivo */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand small {
    margin-left: 2px;
    color: var(--navy);
    font-size: 0.48em;
    letter-spacing: 0;
}

.main-nav a.is-current,
.mobile-menu a.is-current {
    color: var(--green-dark);
    border-bottom-color: var(--green);
}

.page-hero {
    padding: 34px 0 44px;
    color: var(--white);
    background: linear-gradient(118deg, var(--navy), var(--navy-deep));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #c8dae7;
    font-size: 0.82rem;
}

.breadcrumb a {
    color: var(--white);
    font-weight: 750;
}

.page-hero-grid {
    display: grid;
    gap: 26px;
}

.page-hero h1 {
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 2.4rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 18px 0 0;
    color: #dce8f1;
    font-size: 1.04rem;
}

.page-count {
    display: grid;
    min-height: 130px;
    align-content: center;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.page-count strong {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 2.9rem;
    line-height: 1;
}

.page-count span {
    margin-top: 8px;
    color: #d5e2eb;
    font-size: 0.84rem;
}


.page-hero-media {
    position: relative;
    min-height: 190px;
    margin: 0;
    overflow: hidden;
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.page-hero-media::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 40%, rgba(7, 38, 63, 0.90) 100%);
}

.page-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.page-hero-media figcaption {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    gap: 11px;
    padding: 16px 18px;
    color: var(--white);
}

.page-hero-media figcaption strong {
    font-size: 1.9rem;
    line-height: 1;
}

.page-hero-media figcaption span {
    padding-bottom: 2px;
    color: #e4edf3;
    font-size: 0.78rem;
    font-weight: 750;
}

.category-search,
.site-search {
    display: block;
    width: min(100%, 340px);
}

.category-search input,
.site-search input,
.timezone-controls select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #b9c7d1;
    border-radius: 3px;
    font: inherit;
}

.empty-message {
    margin: 20px 0 0;
    padding: 18px;
    color: var(--navy);
    background: #edf4f7;
    border-left: 4px solid var(--green);
    font-weight: 750;
}

.important-notice,
.vote-disclosure {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin: 0 0 22px;
    padding: 17px 18px;
    color: #584615;
    background: #fff8df;
    border: 1px solid #ead79a;
}

.important-notice > span,
.vote-disclosure > span {
    font-size: 1.25rem;
}

.important-notice strong,
.vote-disclosure strong {
    color: #46370d;
}

.important-notice p,
.vote-disclosure p {
    margin: 3px 0 0;
    font-size: 0.88rem;
}

.vote-disclosure {
    margin: 24px 0 0;
    color: var(--muted);
    background: var(--soft);
    border-color: var(--line);
}

.vote-disclosure strong {
    color: var(--navy);
}

.vote-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.vote-button strong {
    font-size: 0.83rem;
}

.vote-button[data-vote="unlike"].is-active {
    color: #9c2430;
    background: #fff0f1;
    border-color: var(--red);
}

.official-button span {
    margin-left: 7px;
}

.operator-card {
    grid-template-columns: 52px minmax(0, 1fr);
    max-width: 100%;
}

.operator-main,
.operator-heading > div,
.operator-actions,
.vote-box {
    min-width: 0;
}

.operator-heading h3,
.operator-main > p {
    overflow-wrap: anywhere;
}

.official-button {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.operator-card[hidden],
.category-card[hidden] {
    display: none;
}

.operator-card-compact .operator-main > p {
    min-height: 44px;
}

.editorial-box {
    align-items: center;
}

.editorial-kicker,
.tool-kicker {
    display: block;
    margin-bottom: 7px;
    color: #bfe8d1;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.category-grid-related .category-card {
    min-height: 160px;
}

.timezone-section {
    padding-bottom: 20px;
}

.timezone-map {
    margin: 0;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.timezone-map img {
    display: block;
    width: 100%;
    height: auto;
}

.timezone-map figcaption {
    padding: 12px 4px 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.timezone-tool {
    display: grid;
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
    color: var(--white);
    background: var(--navy);
    border-left: 6px solid var(--green);
}

.timezone-tool h2 {
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 1.8rem;
}

.timezone-tool p {
    margin: 8px 0 0;
    color: #d5e2eb;
}

.timezone-controls {
    display: grid;
    gap: 12px;
}

.timezone-controls label span {
    display: block;
    margin-bottom: 6px;
    color: #d5e2eb;
    font-size: 0.78rem;
    font-weight: 750;
}

.swap-zones {
    width: 48px;
    height: 48px;
    justify-self: center;
    color: var(--white);
    background: var(--green);
    border: 0;
    border-radius: 3px;
    font-size: 1.35rem;
    cursor: pointer;
}

.timezone-results {
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.time-result,
.time-difference {
    display: grid;
    min-height: 128px;
    align-content: center;
    justify-items: center;
    padding: 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
}

.time-result span,
.time-difference span {
    color: #c9dae6;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.time-result strong {
    margin-top: 4px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 2rem;
}

.time-result small {
    margin-top: 4px;
    color: #d5e2eb;
}

.time-difference strong {
    margin-top: 5px;
    color: #bfe8d1;
    font-size: 1.35rem;
}

.footer-top {
    display: grid;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-note {
    max-width: 470px;
}

.footer-note strong {
    color: var(--white);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
    padding: 30px 0;
}

.footer-links-column {
    display: grid;
    align-content: start;
    gap: 7px;
}

.footer-links-column > strong {
    margin-bottom: 5px;
    color: var(--white);
}

.footer-links-column a {
    color: #c9d8e2;
    font-size: 0.82rem;
}

.footer-links-column a:hover {
    color: var(--white);
}

.menu-toggle span {
    display: none;
}

.menu-toggle::before {
    content: "☰";
    font-size: 1.65rem;
    line-height: 1;
}

.menu-toggle[aria-expanded="true"]::before {
    content: "✕";
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
}

@media (max-width: 430px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar .container span:last-child {
        display: none;
    }

    .brand {
        gap: 8px;
        font-size: 1.22rem;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.35rem;
    }

    .section-heading h2 {
        font-size: 2.05rem;
    }

    .mobile-menu.is-open {
        grid-template-columns: 1fr;
    }

    .category-card-media {
        aspect-ratio: 16 / 7.5;
    }

    .operator-card {
        display: block;
        width: 100%;
    }

    .operator-rank {
        display: block;
        width: 100%;
        padding: 8px 14px;
        text-align: left;
        font-size: 0.92rem;
    }

    .operator-main {
        width: 100%;
        padding: 17px 14px;
    }

    .operator-heading h3 {
        font-size: 1.1rem;
    }

    .vote-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .vote-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 0 6px;
        overflow: hidden;
        font-size: 0.76rem;
    }

    .official-button {
        width: 100%;
        min-width: 0;
        padding: 0 10px;
        text-align: center;
        font-size: 0.88rem;
    }
}


@media (min-width: 640px) {
    .page-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 38%);
        align-items: end;
    }

    .editorial-box {
        grid-template-columns: minmax(260px, 0.65fr) 1fr;
    }

    .timezone-results {
        grid-template-columns: 1fr 0.7fr 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        justify-content: space-between;
    }
}

@media (min-width: 820px) {
    .hero h1 {
        font-size: 4.2rem;
    }

    .page-hero h1 {
        font-size: 3.8rem;
    }

    .section-heading h2 {
        font-size: 2.8rem;
    }

    .timezone-controls {
        grid-template-columns: 1fr auto 1fr;
        align-items: end;
    }

    .footer-links-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
