* {
    box-sizing: border-box;
}

:root {
    --brand-red: #ff0000;
    --brand-black: #111111;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #efefef;
    --text: #1f1f1f;
    --muted: #5d5d5d;
    --line: #dddddd;
    --footer-bg: #ffffff;
    --footer-text: #5d5d5d;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: var(--text);
}

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

a {
    color: inherit;
}

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

/* TOP BAR */
.topbar {
    background: #0f0f0f;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
}

.topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-inner p {
    margin: 0;
}

.topbar-inner-centered {
    justify-content: center;
}

.topbar-inner-centered p {
    width: 100%;
    text-align: center;
    font-weight: 700;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.header-main {
    min-height: 108px;
    display: grid;
    grid-template-columns: 220px minmax(280px, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 18px 0;
    max-height: 220px;
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    will-change: max-height, padding, opacity, transform;
    transition:
        max-height 0.34s ease,
        padding 0.34s ease,
        opacity 0.22s ease,
        transform 0.22s ease;
}

.site-header.is-compact {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.site-header.is-compact .header-main {
    min-height: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.site-header.is-compact .main-nav {
    border-top-color: transparent;
}

.header-top-row {
    display: contents;
}

.brand-logo {
    max-width: 180px;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #111;
    display: block;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border: 1px solid #e2e2e2;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    height: 52px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: var(--text);
}

.search-bar button {
    width: 120px;
    height: 52px;
    border: 0;
    background: var(--brand-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.search-bar button:hover {
    background: #cc0000;
}

.header-mobile-account-link {
    display: none;
}

/* ACTIONS DESKTOP */
.header-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.header-actions-desktop {
    display: flex;
}

.header-actions-mobile {
    display: none;
}

.header-action-card {
    min-width: 96px;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    color: #111;
}

.header-action-card:hover {
    color: var(--brand-red);
}

.header-action-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-action-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.action-label {
    font-size: 12px;
    color: #6a6a6a;
    line-height: 1.1;
}

.header-actions strong {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    line-height: 1.15;
}

/* ACCOUNT NAV */
.desktop-account-menu {
    margin-left: auto;
    display: flex;
    align-items: stretch;
    min-width: max-content;
}

.desktop-account-menu .desktop-menu-item {
    border-left: 1px solid #f0f0f0;
}

.desktop-account-menu .desktop-menu-item + .desktop-menu-item {
    border-left: 0;
}

.desktop-menu-item-account.is-active,
.mobile-nav-item-account.is-active {
    color: var(--brand-red);
    background: #fafafa;
}

.desktop-menu-item-account.is-active .desktop-menu-icon,
.desktop-menu-item-account.is-active .desktop-menu-label,
.mobile-nav-item-account.is-active .mobile-nav-item-icon,
.mobile-nav-item-account.is-active .mobile-nav-item-label {
    color: var(--brand-red);
}

.desktop-menu-item-logout .desktop-menu-label,
.desktop-menu-item-logout .desktop-menu-icon {
    color: #6b0000;
}

.mobile-nav-section-title {
    margin: 16px 18px 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #777777;
}

.mobile-nav-item-logout .mobile-nav-item-icon,
.mobile-nav-item-logout .mobile-nav-item-label {
    color: #6b0000;
}

/* MENU DESKTOP */
.main-nav {
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 45;
    overflow: visible;
}

.main-nav-desktop {
    display: block;
    overflow: visible;
}

.nav-inner {
    min-height: 48px;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    white-space: normal;
    position: relative;
}

.nav-inner-icons {
    justify-content: flex-start;
}

.desktop-menu-item,
.desktop-menu-item-summary {
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    text-decoration: none;
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: left;
    border-right: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: transparent;
}

.desktop-menu-item:first-child,
.desktop-menu-dropdown:first-of-type .desktop-menu-item-summary {
    border-left: 1px solid #f0f0f0;
}

.desktop-menu-item:hover,
.desktop-menu-dropdown[open] > .desktop-menu-item-summary,
.desktop-menu-item-summary:hover {
    color: var(--brand-red);
    background: #fafafa;
}

.desktop-menu-item-summary {
    border: 0;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    cursor: pointer;
    list-style: none;
}

.desktop-menu-item-summary::-webkit-details-marker {
    display: none;
}

.desktop-menu-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    flex: 0 0 20px;
}

.desktop-menu-icon .material-symbols-outlined {
    font-size: 20px;
    line-height: 1;
}

.desktop-menu-item:hover .desktop-menu-icon,
.desktop-menu-item:hover .desktop-menu-label,
.desktop-menu-dropdown[open] > .desktop-menu-item-summary .desktop-menu-icon,
.desktop-menu-dropdown[open] > .desktop-menu-item-summary .desktop-menu-label,
.desktop-menu-item-summary:hover .desktop-menu-icon,
.desktop-menu-item-summary:hover .desktop-menu-label,
.desktop-menu-item-summary:hover .desktop-menu-caret,
.desktop-menu-dropdown[open] > .desktop-menu-item-summary .desktop-menu-caret {
    color: var(--brand-red);
}

.desktop-menu-label {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.desktop-menu-caret {
    font-size: 17px;
    color: #666;
    margin-left: -2px;
}

.desktop-menu-dropdown {
    position: relative;
    flex-shrink: 0;
    z-index: 80;
}

.desktop-menu-dropdown-categories > .desktop-menu-item-summary {
    min-width: 174px;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

.desktop-menu-dropdown-categories > .desktop-menu-item-summary .desktop-menu-label {
    font-size: 12px;
    letter-spacing: 0.04em;
}

.desktop-menu-dropdown-categories > .desktop-menu-item-summary .desktop-menu-icon {
    color: var(--brand-red);
}

.desktop-submenu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 320px;
    max-width: 420px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
    padding: 18px;
    z-index: 120;
}

.desktop-submenu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.desktop-submenu-link {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    text-decoration: none;
    color: #111;
    background: #fff;
    border: 0;
    border-radius: 16px;
}

.desktop-submenu-link:hover {
    background: #fafafa;
    color: var(--brand-red);
}

.desktop-submenu-main {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.desktop-submenu-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    font-size: 22px !important;
    line-height: 1;
    flex: 0 0 24px;
}

.desktop-submenu-name {
    min-width: 0;
    white-space: normal;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}

.desktop-submenu-count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* MOBILE NAV */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    z-index: 60;
}

.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: min(92vw, 380px);
    height: 100vh;
    background: #fff;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 61;
    overflow-y: auto;
    padding: 0;
}

.mobile-nav-header {
    min-height: 58px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8e8e8;
    font-size: 20px;
    font-weight: 700;
}

.mobile-nav-close {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #111;
}

.mobile-nav-links {
    display: block;
}

.mobile-nav-item,
.mobile-nav-item-summary {
    min-height: 72px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: #111;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
}

.mobile-nav-item-summary {
    cursor: pointer;
    list-style: none;
}

.mobile-nav-item-summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-item:hover {
    background: #fafafa;
}

.mobile-nav-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mobile-nav-item-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.mobile-nav-item-label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

.mobile-nav-item-arrow {
    width: 22px;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.mobile-nav-item-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.mobile-nav-group {
    display: block;
}

.mobile-nav-group[open] .mobile-nav-item-summary {
    background: #fafafa;
}

.mobile-nav-item-arrow-caret {
    font-size: 22px;
    transition: transform 0.22s ease;
}

.mobile-nav-group[open] .mobile-nav-item-arrow-caret {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    padding: 8px 0 12px;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
}

.mobile-nav-submenu-link {
    min-height: 46px;
    padding: 0 18px 0 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-decoration: none;
    color: #111;
}

.mobile-nav-submenu-link:hover {
    background: #fafafa;
    color: var(--brand-red);
}

.mobile-nav-submenu-count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f3f3;
    color: #444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.mobile-nav-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-open .mobile-nav-panel {
    transform: translateX(0);
}

.mobile-nav-open {
    overflow: hidden;
}

/* HERO */
.hero {
    padding: 34px 0 26px;
    background: #ffffff;
}

.hero-showcase {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(0, 1.95fr) minmax(280px, 1.2fr);
    gap: 24px;
    align-items: stretch;
}

.hero-main-slider-wrap,
.hero-side-banner {
    min-width: 0;
}

.hero-side-banner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
    height: 100%;
    background: #f3f3f3;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.hero-side-banner-card.no-image {
    justify-content: center;
}

.hero-side-banner-image-wrap {
    position: absolute;
    inset: 0;
}

.hero-side-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-side-banner-copy {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 28px 26px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.84) 52%,
        rgba(255, 255, 255, 0.96) 100%
    );
}

.hero-side-banner-copy h3 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.08;
    color: var(--brand-black);
}

.hero-side-banner-copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.hero-side-banner-link {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    background: var(--brand-red);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    align-self: flex-start;
}

.hero-side-banner-link:hover {
    background: #cc0000;
}

.hero-slider {
    position: relative;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
}

.hero-slides {
    position: relative;
    min-height: 520px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero .slider-dots,
.hero-slider .slider-dots {
    display: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 1px solid var(--line);
    background: #e9e9e9;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.hero-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.hero-banner-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 48px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.10) 28%,
        rgba(255, 255, 255, 0.00) 55%
    );
}

.hero-copy {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 38px 40px;
}

.hero-copy-overlay {
    max-width: 620px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.45);
    padding: 28px 30px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-red);
}

h1 {
    margin: 0;
    max-width: 720px;
    font-size: 46px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--brand-black);
}

.hero-text {
    margin: 18px 0 0;
    max-width: 680px;
    font-size: 19px;
    line-height: 1.75;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 48px;
    padding: 0 18px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary {
    background: var(--brand-red);
    color: #ffffff;
}

.btn-primary:hover {
    background: #cc0000;
}

.btn-secondary {
    background: #fff;
    color: var(--brand-black);
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.slider-arrow:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.slider-arrow-prev {
    left: 12px;
}

.slider-arrow-next {
    right: 12px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 0;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: #cfcfcf;
    cursor: pointer;
    padding: 0;
}

.slider-dot.is-active {
    background: var(--brand-red);
}

/* MINI BANNERS */
.mini-banners-section {
    padding: 0 0 26px;
}

.hero + .mini-banners-section {
    display: none;
}

.mini-banners-section-secondary {
    display: block;
    padding: 10px 0 34px;
}

.mini-banners-header {
    margin-bottom: 20px;
}

.mini-banners-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-red);
}

.mini-banners-header h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--brand-black);
}

.mini-banners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mini-banner-card {
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 220px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mini-banner-card.no-image,
.mini-banner-card.image-only {
    grid-template-columns: 1fr;
}

.mini-banner-image-wrap {
    background: #f1f1f1;
    min-height: 220px;
    height: 100%;
}

.mini-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-banner-copy {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-banner-copy h3 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.15;
    color: var(--brand-black);
}

.mini-banner-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--muted);
}

.mini-banner-link {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    background: var(--brand-red);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    align-self: flex-start;
}

.mini-banner-link:hover {
    background: #cc0000;
}

.mini-banner-card:hover {
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

/* SPONSOR BANNER */
.sponsor-banner-section {
    padding: 0 0 34px;
}

.sponsor-slider {
    position: relative;
}

.sponsor-slides {
    position: relative;
    aspect-ratio: 2048 / 532;
    min-height: 220px;
    background: #ffffff;
}

.sponsor-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.sponsor-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.sponsor-banner-card {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    background: #ffffff;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

a.sponsor-banner-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

a.sponsor-banner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.sponsor-banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #ffffff;
}

.sponsor-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
}

.sponsor-arrow:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.sponsor-arrow-prev {
    left: 12px;
}

.sponsor-arrow-next {
    right: 12px;
}

.sponsor-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.sponsor-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: #cfcfcf;
    cursor: pointer;
    padding: 0;
}

.sponsor-dot.is-active {
    background: var(--brand-red);
}

/* FOOTER */
.site-footer {
    background: var(--footer-bg);
    color: var(--text);
    padding: 46px 0 34px;
    margin-top: 18px;
    border-top: 1px solid #e7e7e7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1fr 1.15fr;
    gap: 0;
    align-items: start;
}

.footer-grid > div {
    position: relative;
    min-width: 0;
    padding: 6px 30px;
}

.footer-grid > div:first-child {
    padding-left: 0;
}

.footer-grid > div:last-child {
    padding-right: 0;
}

.footer-grid > div:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 0;
    width: 1px;
    height: calc(100% - 8px);
    background: linear-gradient(
        180deg,
        rgba(17, 17, 17, 0.00) 0%,
        rgba(17, 17, 17, 0.08) 18%,
        rgba(17, 17, 17, 0.08) 82%,
        rgba(17, 17, 17, 0.00) 100%
    );
}

.footer-logo {
    max-width: 170px;
    margin-bottom: 20px;
}

.footer-text {
    max-width: 340px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--footer-text);
}

.site-footer h3 {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-black);
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--footer-text);
}

.site-footer li:last-child {
    margin-bottom: 0;
}

.site-footer a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--brand-red);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.footer-bottom-separator {
    width: 1px;
    height: 16px;
    background: #d9d9d9;
}

.footer-payments {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.payment-icon {
    width: 58px;
    height: 38px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.payment-icon svg {
    width: 44px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.payment-icon text {
    fill: currentColor;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.payment-icon-visa svg {
    width: 46px;
    height: 16px;
}

.payment-icon-visa text {
    font-size: 14px;
    letter-spacing: 0.1em;
}

.payment-icon-mastercard svg {
    width: 46px;
    height: 20px;
}

.payment-icon-mastercard circle:first-of-type {
    opacity: 0.9;
}

.payment-icon-mastercard circle:last-of-type {
    opacity: 0.55;
}

.payment-icon-mastercard text {
    font-size: 7px;
    letter-spacing: 0.12em;
}

.payment-icon-paypal svg {
    width: 42px;
    height: 18px;
}

.payment-icon-apple-pay svg,
.payment-icon-google-pay svg {
    width: 48px;
    height: 18px;
}

.payment-icon-generic .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
}

/* TABLET NAV */
@media (max-width: 1180px) {
    .main-nav-desktop {
        overflow-x: auto;
        overflow-y: visible;
    }

    .nav-inner {
        min-width: max-content;
    }
}

/* TABLET */
@media (max-width: 1180px) {
    .header-main {
        grid-template-columns: 180px 1fr;
    }

    .header-actions-desktop {
        grid-column: 1 / -1;
    }

    .mini-banners-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-grid > div {
        padding: 24px 22px;
    }

    .footer-grid > div:first-child,
    .footer-grid > div:nth-child(odd) {
        padding-left: 0;
    }

    .footer-grid > div:nth-child(even),
    .footer-grid > div:last-child {
        padding-right: 0;
    }

    .footer-grid > div::after {
        display: none;
    }

    .footer-grid > div {
        border-bottom: 1px solid #ededed;
    }

    .footer-grid > div:nth-last-child(-n+3) {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .footer-bottom {
        margin-top: 24px;
        padding-top: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-payments {
        justify-content: flex-start;
    }

    .slider-arrow-prev {
        left: 8px;
    }

    .slider-arrow-next {
        right: 8px;
    }

    .mini-banner-card {
        grid-template-columns: 1fr;
    }
}

/* MOBILE */
@media (max-width: 820px) {
    .container {
        width: min(100% - 28px, 1600px);
    }

    .topbar-inner {
        min-height: auto;
        padding: 10px 0;
    }

    .topbar-inner-centered {
        justify-content: center;
        align-items: center;
    }

    .topbar-inner-centered p {
        text-align: center;
        width: 100%;
        font-weight: 700;
    }

    .header-main {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
        padding: 14px 0 18px;
        gap: 14px;
        opacity: 1;
        transform: none;
        overflow: visible;
        will-change: auto;
    }

    .site-header.is-compact .header-main {
        min-height: auto;
        max-height: none;
        padding: 14px 0 18px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .site-header.is-compact .main-nav {
        border-top-color: #f0f0f0;
    }

    .header-top-row {
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .header-top-row .nav-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        display: inline-flex;
        margin: 0;
    }

    .header-top-row .brand,
    .header-top-row > a {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .header-top-row::after {
        display: none;
    }

    .header-mobile-account-link {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #111111;
        text-decoration: none;
    }

    .header-mobile-account-link .material-symbols-outlined {
        font-size: 28px;
        line-height: 1;
    }

    .header-mobile-account-link:hover,
    .header-mobile-account-link:focus,
    .header-mobile-account-link.is-active {
        color: var(--brand-red);
        outline: none;
    }

    .brand-logo {
        max-width: 160px;
        width: auto;
        height: auto;
        margin: 0 auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-actions-desktop,
    .main-nav-desktop {
        display: none;
    }

    .mobile-nav-overlay,
    .mobile-nav-panel {
        display: block;
    }

    .mobile-nav-panel {
        left: 0;
        right: auto;
        margin-left: 0;
        width: min(92vw, 380px);
        max-width: 380px;
        transform: translateX(-100%);
    }

    .mobile-nav-open .mobile-nav-panel {
        transform: translateX(0);
    }

    .header-actions-mobile {
        display: none !important;
    }

    .search-bar {
        width: 100%;
    }

    .search-bar button {
        width: 92px;
    }

    h1 {
        font-size: 34px;
        line-height: 1.15;
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .mini-banner-copy {
        padding: 24px 22px;
    }

    .mini-banner-copy h3 {
        font-size: 28px;
    }

    .hero-slides {
        min-height: 260px;
    }

    .hero-banner {
        min-height: 260px;
        height: 260px;
    }

    .hero-banner-overlay {
        min-height: 260px;
        height: 100%;
        padding: 18px;
        align-items: flex-end;
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.00) 0%,
            rgba(255, 255, 255, 0.04) 40%,
            rgba(255, 255, 255, 0.20) 100%
        );
    }

    .hero-banner-image {
        object-position: center;
    }

    .hero-copy-overlay {
        width: 100%;
        max-width: 100%;
        padding: 18px 16px;
        background: rgba(255, 255, 255, 0.92);
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .slider-arrow-prev {
        left: 6px;
    }

    .slider-arrow-next {
        right: 6px;
    }

    .slider-dots {
        margin-top: 12px;
    }

    .slider-dot {
        width: 14px;
        height: 14px;
    }

    .sponsor-slides {
        min-height: auto;
        aspect-ratio: 2048 / 532;
        background: #ffffff;
    }

    .sponsor-banner-card {
        background: #ffffff;
    }

    .sponsor-banner-image {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        object-position: center;
        background: #ffffff;
    }

    .sponsor-arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .sponsor-arrow-prev {
        left: 6px;
    }

    .sponsor-arrow-next {
        right: 6px;
    }

    .sponsor-dots {
        margin-top: 12px;
    }

    .sponsor-dot {
        width: 14px;
        height: 14px;
    }

    .site-footer {
        padding: 34px 0 28px;
        margin-top: 14px;
    }

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

    .footer-grid > div {
        padding: 20px 0;
        border-bottom: 1px solid #ededed;
    }

    .footer-grid > div:first-child {
        padding-top: 0;
    }

    .footer-grid > div:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .footer-text {
        max-width: none;
    }

    .footer-bottom {
        margin-top: 22px;
        padding-top: 16px;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-bottom-left {
        gap: 10px;
        font-size: 13px;
    }

    .footer-bottom-separator {
        display: none;
    }

    .footer-payments {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
    }

    .payment-icon {
        width: 54px;
        height: 36px;
    }

    .payment-icon svg {
        width: 40px;
        height: 16px;
    }

    .mini-banner-image-wrap {
        min-height: 200px;
    }
}

/* LATEST PRODUCTS */
.latest-products-section {
    padding: 18px 0 28px;
    background: #ffffff;
}

.latest-products-header {
    margin-bottom: 18px;
}

.latest-products-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-red);
}

.latest-products-header h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--brand-black);
}

.latest-products-intro {
    margin: 8px 0 0;
    max-width: 700px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

.latest-products-shell {
    position: relative;
    padding: 0;
}

.latest-products-viewport {
    overflow: hidden;
}

.latest-products-track {
    --latest-products-gap: 24px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--latest-products-gap) * 6)) / 7);
    gap: var(--latest-products-gap);
    transition: transform 0.35s ease;
    will-change: transform;
    align-items: stretch;
}

.latest-product-card {
    width: auto;
    min-height: 430px;
    display: flex;
    flex-direction: column;
    color: #111;
    text-decoration: none;
}

.latest-product-top {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.latest-product-badge-row {
    min-height: 28px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.latest-product-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #ebebeb;
    background: #fff;
    color: var(--brand-red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.latest-product-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.latest-product-media {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    overflow: hidden;
    margin-bottom: 14px;
}

.latest-product-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
}

.latest-product-link:hover .latest-product-media img {
    transform: scale(1.03);
}

.latest-product-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9d9d9d;
    background: #f5f5f5;
}

.latest-product-fallback .material-symbols-outlined {
    font-size: 54px;
}

.latest-product-name {
    margin: 0;
    min-height: 58px;
    font-size: 15px;
    line-height: 1.28;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111;
}

.latest-product-meta {
    margin-top: 10px;
}

.latest-product-brand {
    font-size: 11px;
    line-height: 1.25;
    text-transform: uppercase;
    color: #555;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.latest-product-code {
    margin-top: 4px;
    min-height: 14px;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #7a7a7a;
    letter-spacing: 0.05em;
}

.latest-product-tech {
    margin-top: 8px;
    min-height: 14px;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #8a8a8a;
    letter-spacing: 0.03em;
}

.latest-product-bottom {
    margin-top: auto;
    padding-top: 14px;
}

.latest-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.latest-product-price {
    font-size: 21px;
    line-height: 1.05;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

.latest-product-vat {
    font-size: 12px;
    color: #6c6c6c;
    font-weight: 600;
}

.latest-product-stock {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    line-height: 1.3;
    color: #1f7a31;
    font-weight: 600;
}

.latest-product-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    display: inline-block;
    flex: 0 0 auto;
}

.latest-product-stock.is-low {
    color: #c77700;
}

.latest-product-stock.is-zero {
    color: #b3261e;
}

.latest-product-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.latest-product-qty {
    width: 92px;
    min-width: 92px;
    height: 40px;
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.latest-product-qty button {
    border: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 18px;
    color: #111;
    cursor: pointer;
}

.latest-product-qty span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #111;
}

.latest-product-cart {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border: 1px solid var(--brand-red);
    background: var(--brand-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 12px;
}

.latest-product-cart:hover:not(:disabled) {
    background: #cc0000;
    border-color: #cc0000;
}

.latest-product-cart:disabled {
    opacity: 0.45;
    cursor: default;
}

.latest-product-cart svg {
    width: 18px;
    height: 18px;
    display: block;
}

.latest-product-hint {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 10px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
}

.latest-products-arrow {
    position: absolute;
    top: 168px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid #dfdfdf;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.latest-products-arrow:hover:not(:disabled) {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

.latest-products-arrow:disabled {
    opacity: 0.45;
    cursor: default;
}

.latest-products-arrow-prev {
    left: -22px;
}

.latest-products-arrow-next {
    right: -22px;
}

.latest-products-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.latest-products-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #cfcfcf;
    padding: 0;
    cursor: pointer;
}

.latest-products-dot.is-active {
    background: var(--brand-red);
}

@media (max-width: 1180px) {
    .latest-products-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 820px) {
    .latest-products-section {
        padding: 12px 0 24px;
    }

    .latest-products-header {
        margin-bottom: 14px;
    }

    .latest-products-header h2 {
        font-size: 24px;
    }

    .latest-products-intro {
        font-size: 13px;
        line-height: 1.55;
    }

    .latest-products-shell {
        padding: 0;
    }

    .latest-products-track {
        --latest-products-gap: 16px;
        grid-auto-columns: min(calc((100% - (var(--latest-products-gap) * 2)) / 3), 244px);
        gap: var(--latest-products-gap);
    }

    .latest-product-card {
        width: auto;
        min-height: 372px;
    }

    .latest-product-media {
        height: 170px;
        margin-bottom: 10px;
    }

    .latest-product-name {
        min-height: 44px;
        font-size: 14px;
        line-height: 1.24;
    }

    .latest-product-meta {
        margin-top: 8px;
    }

    .latest-product-tech {
        display: none;
    }

    .latest-product-bottom {
        padding-top: 10px;
    }

    .latest-product-price {
        font-size: 19px;
    }

    .latest-product-stock {
        margin-top: 8px;
        font-size: 11px;
    }

    .latest-product-actions {
        margin-top: 10px;
        gap: 8px;
    }

    .latest-product-qty {
        width: 84px;
        min-width: 84px;
        height: 38px;
        grid-template-columns: 28px 1fr 28px;
    }

    .latest-product-cart {
        height: 38px;
        font-size: 10px;
        padding: 0 10px;
    }

    .latest-product-hint {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 9px;
    }

    .latest-products-arrow {
        top: 134px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }

    .latest-products-arrow-prev {
        left: -10px;
    }

    .latest-products-arrow-next {
        right: -10px;
    }
}

@media (max-width: 1320px) {
    .hero-showcase {
        grid-template-columns: minmax(240px, 1fr) minmax(0, 1.7fr) minmax(240px, 1fr);
        gap: 18px;
    }

    .hero-side-banner-card,
    .hero-banner,
    .hero-slides,
    .hero-banner-overlay {
        min-height: 460px;
    }
}

@media (max-width: 1100px) {
    .hero-showcase {
        grid-template-columns: 1fr;
    }

    .hero-side-banner {
        order: 2;
    }

    .hero-main-slider-wrap {
        order: 1;
    }

    .hero-side-banner-card,
    .hero-banner,
    .hero-slides,
    .hero-banner-overlay {
        min-height: 360px;
    }
}

@media (max-width: 820px) {
    .hero-showcase {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-main-slider-wrap,
    .hero-side-banner {
        order: initial;
    }

    .hero-side-banner-card {
        min-height: 0;
        height: auto;
        aspect-ratio: 489 / 518;
    }

    .hero-side-banner-image-wrap {
        position: absolute;
        inset: 0;
    }

    .hero-side-banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .hero-side-banner-copy {
        padding: 18px 16px;
    }

    .hero-side-banner-copy h3 {
        font-size: 22px;
    }
}

@media (max-width: 820px) {
    .mini-banners-section-secondary {
        padding: 4px 0 28px;
    }

    .mini-banners-header {
        margin-bottom: 16px;
    }

    .mini-banners-header h2 {
        font-size: 28px;
        line-height: 1.12;
    }
}

/* EXTRA MINI BANNERS: altezza massima 400px */
.mini-banners-section-secondary .mini-banner-card {
    min-height: 400px;
    max-height: 400px;
}

.mini-banners-section-secondary .mini-banner-image-wrap {
    min-height: 400px;
    max-height: 400px;
}

.mini-banners-section-secondary .mini-banner-copy {
    min-height: 400px;
}

@media (max-width: 1180px) {
    .mini-banners-section-secondary .mini-banner-card {
        max-height: none;
    }

    .mini-banners-section-secondary .mini-banner-image-wrap,
    .mini-banners-section-secondary .mini-banner-copy {
        max-height: none;
        min-height: 260px;
    }
}

@media (max-width: 820px) {
    .mini-banners-section-secondary .mini-banner-card {
        min-height: auto;
    }

    .mini-banners-section-secondary .mini-banner-image-wrap {
        min-height: 200px;
    }

    .mini-banners-section-secondary .mini-banner-copy {
        min-height: auto;
    }
}

@media (max-width: 1200px) {
    .latest-products-track {
        --latest-products-gap: 18px;
        grid-auto-columns: calc((100% - (var(--latest-products-gap) * 3)) / 4);
        gap: var(--latest-products-gap);
    }
}

@media (max-width: 980px) {
    .latest-products-track {
        --latest-products-gap: 16px;
        grid-auto-columns: calc((100% - (var(--latest-products-gap) * 2)) / 3);
        gap: var(--latest-products-gap);
    }
}

@media (max-width: 720px) {
    .latest-products-track {
        --latest-products-gap: 16px;
        grid-auto-columns: calc((100% - var(--latest-products-gap)) / 2);
        gap: var(--latest-products-gap);
    }

    .latest-product-media {
        background: #ffffff;
    }
}

@media (max-width: 540px) {
    .latest-products-track {
        grid-auto-columns: min(244px, calc(100vw - 92px));
    }
}

@media (max-width: 479px) {
    .header-top-row {
        grid-template-columns: 44px 1fr 44px;
    }

    .header-top-row::after {
        width: 44px;
        height: 44px;
    }

    .brand-logo {
        max-width: 138px;
    }

    .mobile-nav-panel {
        width: min(92vw, 360px);
        max-width: 360px;
    }
}

/* =========================================================
   FIX MOBILE SAFARI / NO OVERFLOW
   Corregge larghezza container, header, search bar e sezioni
   per evitare zoom-out e trasbordo laterale su iPhone/Safari.
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 820px) {
    .container {
        width: min(1600px, calc(100% - 28px));
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .topbar,
    .site-header,
    .hero,
    .mini-banners-section,
    .mini-banners-section-secondary,
    .sponsor-banner-section,
    .latest-products-section,
    .site-footer {
        width: 100%;
        max-width: 100%;
    }

    .header-main,
    .header-top-row,
    .search-bar,
    .hero-showcase,
    .hero-main-slider-wrap,
    .hero-side-banner,
    .hero-slider,
    .hero-slides,
    .hero-banner,
    .mini-banners-grid,
    .mini-banner-card,
    .sponsor-slider,
    .sponsor-slides,
    .latest-products-shell,
    .latest-products-viewport {
        min-width: 0;
        max-width: 100%;
    }

    .header-main {
        width: 100%;
        padding: 12px 0 14px;
        gap: 12px;
    }

    .header-top-row {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
    }

    .header-top-row::after {
        width: 44px;
        height: 44px;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .brand,
    .header-top-row .brand,
    .header-top-row > a {
        min-width: 0;
        max-width: 100%;
    }

    .brand-logo {
        max-width: 146px;
    }

    .search-bar {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 92px;
    }

    .search-bar input {
        min-width: 0;
        width: 100%;
        height: 46px;
        padding: 0 14px;
        font-size: 14px;
    }

    .search-bar button {
        width: 92px;
        min-width: 92px;
        height: 46px;
        padding: 0 10px;
        font-size: 13px;
    }

    .hero {
        padding: 22px 0 18px;
    }

    .mini-banners-grid {
        grid-template-columns: 1fr;
    }

    .mini-banners-section-secondary .mini-banner-card,
    .mini-banners-section-secondary .mini-banner-image-wrap,
    .mini-banners-section-secondary .mini-banner-copy {
        max-width: 100%;
    }

    .mini-banners-section-secondary .mini-banner-card.image-only,
    .mini-banners-section-secondary .mini-banner-card.no-image {
        display: block;
    }

    .mini-banners-section-secondary .mini-banner-image-wrap {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 7.6;
    }

    .mini-banner-image,
    .sponsor-banner-image,
    .hero-banner-image,
    .hero-side-banner-image {
        max-width: 100%;
    }

    .latest-products-arrow-prev {
        left: 0;
    }

    .latest-products-arrow-next {
        right: 0;
    }
}

@media (max-width: 479px) {
    .container {
        width: calc(100% - 24px);
        max-width: 100%;
    }

    .header-main {
        padding: 11px 0 13px;
        gap: 11px;
    }

    .header-top-row {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .header-top-row::after {
        width: 42px;
        height: 42px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand-logo {
        max-width: 132px;
    }

    .search-bar {
        grid-template-columns: minmax(0, 1fr) 84px;
    }

    .search-bar input {
        height: 44px;
        padding: 0 12px;
        font-size: 13px;
    }

    .search-bar button {
        width: 84px;
        min-width: 84px;
        height: 44px;
        font-size: 12px;
    }

    .mini-banners-section-secondary .mini-banner-image-wrap {
        aspect-ratio: 16 / 8.2;
    }
}

/* =========================================================
   FIX MENU MOBILE + OVERFLOW + NO PINCH GESTURE SUPPORT
   ========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 820px) {
    .mobile-nav-overlay {
        z-index: 99980 !important;
    }

    .mobile-nav-panel {
        z-index: 99990 !important;
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        height: 100dvh;
        max-height: 100dvh;
        transform: translate3d(-100%, 0, 0);
    }

    .mobile-nav-open .mobile-nav-panel,
    body.mobile-nav-open .mobile-nav-panel {
        transform: translate3d(0, 0, 0) !important;
    }

    body.mobile-nav-open .site-header {
        z-index: 99970 !important;
    }

    body.mobile-nav-open .header-main,
    body.mobile-nav-open .main-nav-desktop,
    body.mobile-nav-open .header-search-preview {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.mobile-nav-open .mobile-nav-panel,
    body.mobile-nav-open .mobile-nav-overlay {
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.mobile-nav-open {
        overflow: hidden !important;
        touch-action: none;
    }

    body.mobile-nav-open .mobile-nav-panel {
        touch-action: pan-y;
    }
}

/* =========================================================
   TOUCH / SWIPE CAROUSEL PRODOTTI HOME
   Abilita lo scorrimento con dito su "Ultimi prodotti" e "Prodotti in evidenza"
   ========================================================= */
.latest-products-viewport {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.latest-products-track {
    touch-action: pan-y;
    cursor: grab;
}

.latest-products-track.is-dragging {
    cursor: grabbing;
    transition: none !important;
}

.latest-product-card,
.latest-product-link,
.latest-product-media,
.latest-product-media img {
    -webkit-user-drag: none;
    user-select: none;
}

@media (max-width: 820px) {
    .latest-products-viewport {
        overflow: hidden;
    }

    .latest-products-track {
        touch-action: pan-y;
    }
}


/* =========================================================
   FIX DEFINITIVO CAROUSEL MOBILE: 1 PRODOTTO PER VOLTA
   Deve stare in fondo al file per sovrascrivere le media query precedenti
   ========================================================= */
@media (max-width: 720px) {
    .latest-products-shell {
        width: 100%;
        overflow: hidden;
        padding: 0 !important;
    }

    .latest-products-viewport {
        width: 100%;
        overflow: hidden !important;
        touch-action: pan-y;
    }

    .latest-products-track {
        --latest-products-gap: 0px !important;
        grid-auto-columns: 100% !important;
        gap: 0 !important;
        column-gap: 0 !important;
    }

    .latest-product-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .latest-products-arrow-prev {
        left: 0 !important;
    }

    .latest-products-arrow-next {
        right: 0 !important;
    }
}

@media (max-width: 540px) {
    .latest-products-track {
        grid-auto-columns: 100% !important;
    }

    .latest-product-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}


/* Card carousel cliccabile */
.latest-product-card {
    cursor: pointer;
}

.latest-product-card .latest-product-qty,
.latest-product-card .latest-product-cart {
    cursor: auto;
}

.latest-product-hint {
    cursor: pointer;
}


/* Cart counter */
.desktop-menu-icon {
    position: relative;
}

.desktop-menu-cart-count,
.mobile-nav-cart-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 10px;
    line-height: 18px;
    font-weight: 800;
    text-align: center;
}

.desktop-menu-cart-count {
    position: absolute;
    top: -9px;
    right: -13px;
}

.mobile-nav-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}


/* Global cart toast */
.itn-cart-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99999;
    max-width: 340px;
    padding: 14px 16px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
    font-size: 14px;
    line-height: 1.45;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.itn-cart-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 820px) {
    .itn-cart-toast {
        left: 14px;
        right: 14px;
        max-width: none;
    }
}


/* Mini cart header */
.desktop-header-mini-cart {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    border-left: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
}

.header-mini-cart-button {
    min-height: 68px;
    min-width: 86px;
    padding: 0 20px;
    border: 0;
    background: #111111;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.header-mini-cart-button:hover,
.header-mini-cart-button:focus,
.header-mini-cart.is-open .header-mini-cart-button {
    background: var(--brand-red);
    color: #ffffff;
    outline: none;
}

.header-mini-cart-icon {
    width: 28px;
    height: 28px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-mini-cart-icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.header-mini-cart-count,
.header-mobile-cart-count {
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-red);
    color: #ffffff;
    font-size: 10px;
    line-height: 19px;
    font-weight: 900;
    text-align: center;
}

.header-mini-cart-count {
    position: absolute;
    right: -10px;
    top: -9px;
    box-shadow: 0 0 0 2px #111111;
}

.header-mini-cart.is-open .header-mini-cart-count,
.header-mini-cart-button:hover .header-mini-cart-count,
.header-mini-cart-button:focus .header-mini-cart-count {
    box-shadow: 0 0 0 2px var(--brand-red);
}

.header-mini-cart-text {
    font-size: 12px;
    line-height: 1;
}

.header-mini-cart-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 99995;
    width: min(420px, calc(100vw - 32px));
    background: #ffffff;
    color: #111111;
    border: 1px solid #e4e4e4;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18);
}

.header-mini-cart-panel[hidden] {
    display: none !important;
}

.header-mini-cart-head {
    min-height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #eeeeee;
}

.header-mini-cart-head strong {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 900;
}

.header-mini-cart-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: #f3f3f3;
    color: #111111;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.header-mini-cart-close:hover,
.header-mini-cart-close:focus {
    background: #111111;
    color: #ffffff;
    outline: none;
}

.header-mini-cart-body {
    max-height: min(560px, 72vh);
    overflow-y: auto;
}

.header-mini-cart-loading,
.header-mini-cart-empty,
.header-mini-cart-error {
    padding: 22px 18px;
    font-size: 14px;
    line-height: 1.45;
    color: #666666;
}

.header-mini-cart-empty strong,
.header-mini-cart-error strong {
    display: block;
    margin-bottom: 6px;
    color: #111111;
    font-size: 16px;
}

.header-mini-cart-error strong {
    color: #b3261e;
}

.header-mini-cart-list {
    display: flex;
    flex-direction: column;
}

.header-mini-cart-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 30px;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    border-bottom: 1px solid #eeeeee;
}

.header-mini-cart-item-media {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    text-decoration: none;
    color: #999999;
    overflow: hidden;
}

.header-mini-cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.header-mini-cart-fallback {
    font-size: 26px;
}

.header-mini-cart-item-title {
    display: block;
    color: #111111;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.header-mini-cart-item-title:hover,
.header-mini-cart-item-title:focus {
    color: var(--brand-red);
    outline: none;
}

.header-mini-cart-item-meta {
    margin-top: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    color: #686868;
    font-size: 11px;
    line-height: 1.25;
}

.header-mini-cart-item-total {
    margin-top: 6px;
    color: #111111;
    font-size: 13px;
    font-weight: 900;
}

.header-mini-cart-remove {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #f2f2f2;
    color: #111111;
    cursor: pointer;
    font-size: 19px;
    line-height: 30px;
    text-align: center;
}

.header-mini-cart-remove:hover,
.header-mini-cart-remove:focus {
    background: var(--brand-red);
    color: #ffffff;
    outline: none;
}

.header-mini-cart-footer {
    padding: 15px 16px 16px;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

.header-mini-cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666666;
}

.header-mini-cart-total strong {
    color: #111111;
    font-size: 18px;
    font-weight: 900;
}

.header-mini-cart-checkout {
    min-height: 48px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-red);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.header-mini-cart-checkout:hover,
.header-mini-cart-checkout:focus {
    background: #111111;
    color: #ffffff;
    outline: none;
}

.header-mobile-cart-link {
    position: relative;
}

.header-mobile-cart-count {
    position: absolute;
    right: 4px;
    top: 5px;
    box-shadow: 0 0 0 2px #ffffff;
}

@media (max-width: 1180px) {
    .header-mini-cart-text {
        display: none;
    }

    .header-mini-cart-button {
        min-width: 68px;
        padding: 0 18px;
    }
}

@media (max-width: 820px) {
    .desktop-header-mini-cart {
        display: none;
    }
}

/* Mobile mini cart UX patch */
.header-mobile-mini-cart {
    position: relative;
}

.header-mobile-cart-link {
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #111111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    position: relative;
}

.header-mobile-cart-link:hover,
.header-mobile-cart-link:focus,
.header-mobile-mini-cart.is-open .header-mobile-cart-link {
    color: var(--brand-red);
    outline: none;
}

.header-mobile-cart-link .material-symbols-outlined {
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 820px) {
    .header-mobile-mini-cart {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #111111;
        text-decoration: none;
        z-index: 100002;
    }

    .header-mobile-mini-cart::before {
        content: none;
    }

    .header-mobile-mini-cart.is-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 99994;
        background: rgba(0, 0, 0, 0.42);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .header-mobile-mini-cart .header-mobile-cart-link {
        position: relative;
        z-index: 100003;
        border-radius: 999px;
        background: #ffffff;
    }

    .header-mobile-mini-cart.is-open .header-mobile-cart-link {
        background: #111111;
        color: #ffffff;
    }

    .header-mobile-cart-count {
        right: 2px;
        top: 2px;
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        padding: 0 6px;
        box-shadow: 0 0 0 2px #ffffff;
    }

    .header-mobile-mini-cart.is-open .header-mobile-cart-count {
        box-shadow: 0 0 0 2px #111111;
    }

    .header-mobile-mini-cart-panel {
        position: fixed;
        top: max(10px, env(safe-area-inset-top));
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        z-index: 99995;
        width: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
    }

    .header-mobile-mini-cart-panel[hidden] {
        display: none !important;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-head {
        min-height: 62px;
        padding: 0 16px 0 18px;
        background: #ffffff;
        flex: 0 0 auto;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-head strong {
        font-size: 17px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-close {
        width: 42px;
        height: 42px;
        font-size: 28px;
        border-radius: 999px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-body {
        flex: 1 1 auto;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-item {
        grid-template-columns: 58px minmax(0, 1fr) 36px;
        gap: 10px;
        padding: 12px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-item-media {
        width: 58px;
        height: 58px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-item-title {
        font-size: 13px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-remove {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 22px;
        background: #111111;
        color: #ffffff;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-footer {
        position: sticky;
        bottom: 0;
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
        background: #ffffff;
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.06);
    }

    .header-mobile-mini-cart-panel .header-mini-cart-checkout {
        min-height: 52px;
        border-radius: 999px;
        font-size: 13px;
    }

    body.mini-cart-open {
        overflow: hidden;
        touch-action: none;
    }
}

@media (max-width: 380px) {
    .header-mobile-mini-cart-panel {
        top: 6px;
        right: 6px;
        bottom: 6px;
        left: 6px;
        border-radius: 14px;
    }
}

/* Mobile cart drawer: comportamento a comparsa tipo menu hamburger */
@media (max-width: 820px) {
    .header-mobile-mini-cart {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 100020;
    }

    .header-mobile-mini-cart::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 100000;
        background: rgba(0, 0, 0, 0.48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 220ms ease, visibility 220ms ease;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .header-mobile-mini-cart.is-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header-mobile-mini-cart .header-mobile-cart-link {
        position: relative;
        z-index: 100030;
        width: 48px;
        height: 48px;
        border-radius: 999px;
        background: #ffffff;
        color: #111111;
        box-shadow: none;
    }

    .header-mobile-mini-cart .header-mobile-cart-link:hover,
    .header-mobile-mini-cart .header-mobile-cart-link:focus {
        color: var(--brand-red);
        outline: none;
    }

    .header-mobile-mini-cart.is-open .header-mobile-cart-link {
        opacity: 0;
        pointer-events: none;
    }

    .header-mobile-mini-cart-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 100010;
        width: min(88vw, 430px);
        max-width: 430px;
        max-height: none;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: -22px 0 55px rgba(0, 0, 0, 0.28);
        overflow: hidden;
        transform: translateX(105%);
        opacity: 1;
        transition: transform 280ms cubic-bezier(.2, .8, .2, 1);
        will-change: transform;
    }

    .header-mobile-mini-cart-panel[hidden] {
        display: none !important;
    }

    .header-mobile-mini-cart.is-open .header-mobile-mini-cart-panel {
        transform: translateX(0);
    }

    .header-mobile-mini-cart-panel .header-mini-cart-head {
        min-height: calc(62px + env(safe-area-inset-top));
        padding: env(safe-area-inset-top) 14px 0 18px;
        background: #ffffff;
        border-bottom: 1px solid #eeeeee;
        flex: 0 0 auto;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-head strong {
        font-size: 17px;
        font-weight: 900;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-close {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        background: #111111;
        color: #ffffff;
        font-size: 28px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-close:hover,
    .header-mobile-mini-cart-panel .header-mini-cart-close:focus {
        background: var(--brand-red);
        color: #ffffff;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-body {
        flex: 1 1 auto;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #ffffff;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-list {
        padding-bottom: 4px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-item {
        grid-template-columns: 58px minmax(0, 1fr) 38px;
        gap: 10px;
        padding: 12px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-item-media {
        width: 58px;
        height: 58px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-item-title {
        font-size: 13px;
        line-height: 1.25;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-item-meta {
        font-size: 10.5px;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-remove {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 23px;
        background: #111111;
        color: #ffffff;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-footer {
        position: sticky;
        bottom: 0;
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
        background: #ffffff;
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.06);
        flex: 0 0 auto;
    }

    .header-mobile-mini-cart-panel .header-mini-cart-checkout {
        min-height: 52px;
        border-radius: 999px;
        font-size: 13px;
    }

    body.mini-cart-open {
        overflow: hidden;
        touch-action: none;
    }
}

@media (max-width: 430px) {
    .header-mobile-mini-cart-panel {
        width: 92vw;
    }
}


/* ITNETCOM FIX MOBILE MENU CLOSED SHADOW - START */
@media (max-width: 820px) {
    /*
       Quando il menu mobile è chiuso il pannello rimane fuori schermo.
       La sua box-shadow può però rientrare di qualche pixel nel viewport,
       creando la sfumatura sul lato sinistro. Qui lo nascondiamo davvero
       e lo spostiamo leggermente oltre la larghezza del pannello.
    */
    body:not(.mobile-nav-open) .mobile-nav-overlay {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        display: none !important;
    }

    body:not(.mobile-nav-open) .mobile-nav-panel {
        transform: translate3d(calc(-100% - 48px), 0, 0) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        box-shadow: none !important;
    }

    body.mobile-nav-open .mobile-nav-overlay {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.mobile-nav-open .mobile-nav-panel {
        transform: translate3d(0, 0, 0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12) !important;
    }
}
/* ITNETCOM FIX MOBILE MENU CLOSED SHADOW - END */


/* ==========================================================================
   ITNETCOM - Header mini cart panel UX fix
   Allinea font, spaziature e comportamento mobile del mini carrello.
   Fine header mini cart panel UX fix
   ========================================================================== */

.header-mini-cart-panel,
.header-mini-cart-panel * {
    box-sizing: border-box;
}

.header-mini-cart-panel {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
    color: #111111;
    letter-spacing: 0;
}

.header-mini-cart-panel h1,
.header-mini-cart-panel h2,
.header-mini-cart-panel h3,
.header-mini-cart-panel h4,
.header-mini-cart-panel p,
.header-mini-cart-panel ul,
.header-mini-cart-panel li {
    margin-top: 0;
}

.header-mini-cart-panel strong,
.header-mini-cart-panel b {
    font-weight: 700;
}

.header-mini-cart-panel .material-symbols-outlined {
    font-size: 18px;
    line-height: 1;
}

.header-mini-cart-panel button,
.header-mini-cart-panel a {
    font-family: inherit;
}

.header-mini-cart-panel a {
    text-decoration: none;
}

.header-mini-cart-panel img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Titoli e intestazioni */
.header-mini-cart-panel [class*="title"],
.header-mini-cart-panel [class*="heading"] {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.header-mini-cart-panel [class*="kicker"],
.header-mini-cart-panel [class*="label"],
.header-mini-cart-panel [class*="meta"] {
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Righe prodotto mini carrello */
.header-mini-cart-panel [class*="item"] {
    font-size: 12.5px;
    line-height: 1.4;
}

.header-mini-cart-panel [class*="item"] [class*="name"],
.header-mini-cart-panel [class*="product"] [class*="name"],
.header-mini-cart-panel [class*="item"] [class*="title"],
.header-mini-cart-panel [class*="product"] [class*="title"] {
    font-size: 12.5px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.header-mini-cart-panel [class*="price"],
.header-mini-cart-panel [class*="total"] {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.header-mini-cart-panel [class*="subtotal"],
.header-mini-cart-panel [class*="summary"] {
    font-size: 12px;
    line-height: 1.4;
}

/* Quantità e pulsanti piccoli */
.header-mini-cart-panel [class*="qty"],
.header-mini-cart-panel [class*="quantity"] {
    font-size: 12px;
    line-height: 1;
}

.header-mini-cart-panel button {
    min-height: 32px;
    border-radius: 0;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 800;
    cursor: pointer;
}

/* CTA mini cart */
.header-mini-cart-panel a[class*="button"],
.header-mini-cart-panel a[class*="link"],
.header-mini-cart-panel button[class*="button"],
.header-mini-cart-panel button[class*="checkout"],
.header-mini-cart-panel button[class*="cart"] {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Evita testi enormi ereditati da altre pagine */
.header-mini-cart-panel .cart-summary-total strong,
.header-mini-cart-panel .cart-item-title,
.header-mini-cart-panel .cart-item-price strong,
.header-mini-cart-panel .cart-item-total strong {
    font-size: inherit;
}

/* Pannello desktop */
@media (min-width: 761px) {
    .header-mini-cart-panel {
        width: min(380px, calc(100vw - 32px));
        max-height: min(620px, calc(100vh - 120px));
        overflow-y: auto;
    }
}

/* UX mobile */
@media (max-width: 760px) {
    .header-mini-cart-panel {
        position: fixed !important;
        top: 0;
        right: 0;
        left: auto;
        width: min(92vw, 380px);
        max-width: 92vw;
        height: 100dvh;
        max-height: 100dvh;
        overflow-y: auto;
        font-size: 13px;
        line-height: 1.45;
        padding-bottom: env(safe-area-inset-bottom);
        -webkit-overflow-scrolling: touch;
        z-index: 10010;
    }

    .header-mini-cart-panel [class*="title"],
    .header-mini-cart-panel [class*="heading"] {
        font-size: 13px;
        line-height: 1.25;
    }

    .header-mini-cart-panel [class*="item"] [class*="name"],
    .header-mini-cart-panel [class*="product"] [class*="name"],
    .header-mini-cart-panel [class*="item"] [class*="title"],
    .header-mini-cart-panel [class*="product"] [class*="title"] {
        font-size: 12.5px;
        line-height: 1.3;
    }

    .header-mini-cart-panel [class*="price"],
    .header-mini-cart-panel [class*="total"] {
        font-size: 13px;
    }

    .header-mini-cart-panel button,
    .header-mini-cart-panel a[class*="button"],
    .header-mini-cart-panel a[class*="link"],
    .header-mini-cart-panel button[class*="button"],
    .header-mini-cart-panel button[class*="checkout"],
    .header-mini-cart-panel button[class*="cart"] {
        min-height: 42px;
        font-size: 11px;
    }

    .header-mini-cart-panel .material-symbols-outlined {
        font-size: 18px;
    }
}

@media (max-width: 390px) {
    .header-mini-cart-panel {
        width: 94vw;
        max-width: 94vw;
        font-size: 12.5px;
    }

    .header-mini-cart-panel [class*="item"] [class*="name"],
    .header-mini-cart-panel [class*="product"] [class*="name"],
    .header-mini-cart-panel [class*="item"] [class*="title"],
    .header-mini-cart-panel [class*="product"] [class*="title"] {
        font-size: 12px;
    }
}

/* === ITNETCOM FIXED DESKTOP MENU START === */
/*
   Menu desktop definitivo:
   - normale a inizio pagina
   - fisso in alto durante lo scroll
   - quasi senza ombra
   - altezza ridotta
   - font ridotto
*/
@media (min-width: 1181px) {
    .site-header {
        position: relative !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        overflow: visible !important;
        box-shadow: none !important;
    }

    .header-main {
        position: relative !important;
        background: #ffffff !important;
        z-index: 100000 !important;
    }

    .main-nav {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: #ffffff !important;
        border-top: 1px solid #eeeeee !important;
        border-bottom: 1px solid #dedede !important;
        padding: 0 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025) !important;
        overflow: visible !important;
        z-index: 99999 !important;
    }

    body.itn-menu-fixed {
        padding-top: 49px !important;
    }

    body.itn-menu-fixed .main-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 99999 !important;
        border-top: 0 !important;
        border-bottom: 1px solid #dcdcdc !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    }

    body.itn-menu-fixed .site-header {
        z-index: 99999 !important;
    }

    body.itn-menu-fixed .header-main {
        display: none !important;
    }

    .main-nav .nav-inner {
        min-height: 48px !important;
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .desktop-menu-item,
    .desktop-menu-item-summary {
        min-height: 48px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        border-right: 1px solid #eeeeee !important;
        background: #ffffff !important;
        transition: background-color 0.12s ease, color 0.12s ease !important;
    }

    .desktop-menu-item:first-child,
    .desktop-menu-dropdown:first-of-type .desktop-menu-item-summary {
        border-left: 1px solid #eeeeee !important;
    }

    .desktop-menu-item:hover,
    .desktop-menu-dropdown[open] > .desktop-menu-item-summary,
    .desktop-menu-item-summary:hover {
        background: #f8f8f8 !important;
        color: var(--brand-red) !important;
        box-shadow: inset 0 -2px 0 rgba(255, 0, 0, 0.12) !important;
    }

    .desktop-menu-dropdown-categories > .desktop-menu-item-summary {
        min-width: 168px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .desktop-menu-label {
        font-size: 10.4px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
        letter-spacing: .02em !important;
    }

    .desktop-menu-dropdown-categories > .desktop-menu-item-summary .desktop-menu-label {
        font-size: 10.9px !important;
        font-weight: 900 !important;
    }

    .desktop-menu-icon {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
        margin-right: 6px !important;
    }

    .desktop-menu-icon .material-symbols-outlined,
    .menu-icon-google {
        font-size: 17px !important;
        line-height: 1 !important;
    }

    .desktop-account-menu .desktop-menu-item {
        border-left: 1px solid #eeeeee !important;
    }

    .desktop-header-mini-cart {
        border-left: 1px solid #eeeeee !important;
        border-right: 1px solid #eeeeee !important;
        overflow: visible !important;
    }

    .header-mini-cart-button {
        min-height: 48px !important;
        min-width: 78px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-shadow: none !important;
    }

    .header-mini-cart-button .material-symbols-outlined {
        font-size: 22px !important;
    }

    .header-mini-cart-label,
    .header-mini-cart-button span,
    .desktop-account-menu .desktop-menu-label {
        font-size: 10.4px !important;
        line-height: 1.1 !important;
    }

    .desktop-submenu,
    .header-mini-cart-panel {
        top: calc(100% + 4px) !important;
        border-radius: 5px !important;
        border: 1px solid #dedede !important;
        background: #ffffff !important;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.055) !important;
        overflow: hidden !important;
    }

    .desktop-submenu::before,
    .header-mini-cart-panel::before {
        display: none !important;
        content: none !important;
    }

    .desktop-submenu a,
    .desktop-submenu button,
    .desktop-submenu summary {
        min-height: 36px !important;
        padding: 8px 12px !important;
        border-radius: 3px !important;
        font-size: 11.5px !important;
        line-height: 1.25 !important;
    }

    .desktop-submenu a:hover,
    .desktop-submenu button:hover,
    .desktop-submenu summary:hover {
        background: #f6f6f6 !important;
    }

    .desktop-submenu .material-symbols-outlined {
        font-size: 17px !important;
    }
}
/* === ITNETCOM FIXED DESKTOP MENU END === */

/* === ITNETCOM MENU TYPOGRAPHY FIX START === */
/*
   Correzione proporzioni menu desktop:
   - testo meno schiacciato
   - altezza leggermente più naturale
   - font più leggibile
   - nessuna sfumatura aggiunta
*/
@media (min-width: 1181px) {
    .main-nav .nav-inner {
        min-height: 54px !important;
    }

    .desktop-menu-item,
    .desktop-menu-item-summary {
        min-height: 54px !important;
        padding-left: 17px !important;
        padding-right: 17px !important;
        align-items: center !important;
    }

    .desktop-menu-dropdown-categories > .desktop-menu-item-summary {
        min-width: 184px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .desktop-menu-label,
    .desktop-account-menu .desktop-menu-label,
    .header-mini-cart-label,
    .header-mini-cart-button span {
        font-size: 11.4px !important;
        line-height: 1.35 !important;
        font-weight: 800 !important;
        letter-spacing: 0.01em !important;
        font-stretch: normal !important;
        transform: none !important;
        white-space: nowrap !important;
    }

    .desktop-menu-dropdown-categories > .desktop-menu-item-summary .desktop-menu-label {
        font-size: 11.8px !important;
        line-height: 1.35 !important;
        font-weight: 900 !important;
        letter-spacing: 0.012em !important;
    }

    .desktop-menu-icon {
        width: 19px !important;
        height: 19px !important;
        flex-basis: 19px !important;
        margin-right: 7px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .desktop-menu-icon .material-symbols-outlined,
    .menu-icon-google {
        font-size: 18px !important;
        line-height: 1 !important;
        font-variation-settings:
            'FILL' 0,
            'wght' 400,
            'GRAD' 0,
            'opsz' 24 !important;
    }

    .header-mini-cart-button {
        min-height: 54px !important;
        min-width: 86px !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .header-mini-cart-button .material-symbols-outlined {
        font-size: 24px !important;
        line-height: 1 !important;
    }

    .desktop-submenu,
    .header-mini-cart-panel {
        top: calc(100% + 4px) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .desktop-submenu a,
    .desktop-submenu button,
    .desktop-submenu summary {
        min-height: 38px !important;
        padding: 9px 13px !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
        letter-spacing: 0 !important;
        font-stretch: normal !important;
        transform: none !important;
    }
}
/* === ITNETCOM MENU TYPOGRAPHY FIX END === */

/* === ITNETCOM INTERMEDIATE DESKTOP HEADER FIX START ===
   Between 821px and 1180px:
   - header-main restores 3-column single-row layout (no extra action-card row)
   - main nav items shrink to fit the container without internal scroll
   =================================================================== */
@media (min-width: 821px) and (max-width: 1180px) {

    /* ── Header: 3 columns, single row ── */
    .header-main {
        grid-template-columns: 160px minmax(0, 1fr) auto !important;
        gap: 16px !important;
        min-height: 88px !important;
        padding: 12px 0 !important;
    }

    .header-actions-desktop {
        grid-column: auto !important;
    }

    .header-action-card {
        min-width: 64px !important;
        padding: 8px 6px !important;
        gap: 3px !important;
    }

    .header-action-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .header-action-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .action-label {
        font-size: 10px !important;
    }

    .header-actions strong {
        font-size: 11px !important;
    }

    .brand-logo {
        max-width: 150px !important;
    }

    /* ── Nav bar: remove internal scroll, compact items ── */
    .main-nav-desktop {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    .nav-inner {
        min-width: 0 !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }

    .desktop-menu-item,
    .desktop-menu-item-summary {
        min-height: 44px !important;
        padding: 0 9px !important;
        gap: 5px !important;
    }

    .desktop-menu-dropdown-categories > .desktop-menu-item-summary {
        min-width: 130px !important;
        padding: 0 10px !important;
        gap: 5px !important;
    }

    .desktop-menu-label {
        font-size: 9.8px !important;
        letter-spacing: 0.03em !important;
        white-space: nowrap !important;
    }

    .desktop-menu-dropdown-categories > .desktop-menu-item-summary .desktop-menu-label {
        font-size: 10px !important;
    }

    .desktop-menu-icon {
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;
        margin-right: 0 !important;
    }

    .desktop-menu-icon .material-symbols-outlined,
    .menu-icon-google {
        font-size: 15px !important;
        line-height: 1 !important;
    }

    .desktop-menu-caret {
        font-size: 15px !important;
    }

    .header-mini-cart-button {
        min-height: 44px !important;
        min-width: 56px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 6px !important;
    }

    .header-mini-cart-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* ── Product carousel: 4 cards visible (not 7) so each card has enough width ── */
    .latest-products-track {
        grid-auto-columns: calc((100% - 54px) / 4) !important;
        gap: 18px !important;
    }

    .latest-product-qty {
        width: 80px !important;
        min-width: 80px !important;
    }

    /* Hide button text label – icon is sufficient at this width range */
    .latest-product-cart span,
    .product-related-cart span {
        display: none !important;
    }

    .latest-product-cart,
    .product-related-cart {
        padding: 0 10px !important;
    }

    /* ── Sponsor banner: let aspect-ratio control height (removes lateral crop) ── */
    .sponsor-slides {
        min-height: 0 !important;
    }
}
/* === ITNETCOM INTERMEDIATE DESKTOP HEADER FIX END === */

/* Hero banner: scale height proportionally at narrow single-column layout (821–1100px)
   Prevents object-fit:cover from clipping wide images laterally */
@media (min-width: 821px) and (max-width: 1100px) {
    .hero-slides,
    .hero-banner {
        min-height: 0 !important;
        aspect-ratio: 16 / 7 !important;
    }

    .hero-banner-overlay {
        min-height: 0 !important;
        height: 100% !important;
    }
}

/* Hero side banners at 1101–1180px sit in narrow portrait columns (~290px wide × 460px tall).
   contain shows the full image; cover would severely clip landscape images laterally.
   NOT applied at 821–1100px because there the side banners are stacked full-width (cover is fine). */
@media (min-width: 1101px) and (max-width: 1180px) {
    .hero-side-banner-image {
        object-fit: contain !important;
    }
}
