/**
 * components.css — Frigotel Reusable Components
 *
 * Depends on: css/variables.css
 * Load order: variables → components → animations → style.css
 *
 * Table of contents:
 *  1. Reset & base
 *  2. Typography
 *  3. Layout utilities
 *  4. Buttons
 *  5. Navbar
 *  6. Footer
 *  7. Cards
 *  8. Sections
 *  9. Forms (base)
 * 10. Accessibility
 * 11. Homepage — Services
 * 12. Homepage — FG 800
 * 13. Homepage — CTA
 * 14. Global Utilities
 * 15. Alias & Standardization
 *
 * @package Frigotel
 */

/* =========================================================
   1. RESET & BASE
========================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
    /* Global overflow prevention (clip allows position: sticky to work) */
}

body {
    --wp-admin-bar-height: 0px;
    font-family: var(--font-family-base);
    font-size: var(--text-body-medium);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-blu-profondo);
    background-color: var(--color-bianco);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    /* Double layer protection (clip allows position: sticky to work) */
    width: 100%;
    position: relative;
}

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

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

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

address {
    font-style: normal;
}

/* =========================================================
   2. TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-blu-profondo);
}

h1 {
    font-size: var(--text-heading-xl);
}

h2 {
    font-size: var(--text-heading-l);
}

h3 {
    font-size: var(--text-heading-m);
}

h4 {
    font-size: var(--text-heading-s);
}

h5 {
    font-size: var(--text-heading-xs);
}

p {
    color: var(--color-grigio-blu);
    line-height: var(--line-height-body);
}

/* Tablet */
@media (max-width: 1199px) {
    h1 {
        font-size: 3rem;
    }

    /* 48px */
    h2 {
        font-size: 2.5rem;
    }

    /* 40px */
    h3 {
        font-size: 2rem;
    }

    /* 32px */
    h4 {
        font-size: 1.375rem;
    }

    /* 22px */
    h5 {
        font-size: 1.125rem;
    }

    /* 18px */
}

/* Mobile */
@media (max-width: 767px) {
    h1 {
        font-size: 2.25rem;
    }

    /* 36px */
    h2 {
        font-size: 2rem;
    }

    /* 32px */
    h3 {
        font-size: 1.75rem;
    }

    /* 28px */
    h4 {
        font-size: 1.25rem;
    }

    /* 20px */
    h5 {
        font-size: 1rem;
    }

    /* 16px */
}

/* =========================================================
   3. LAYOUT UTILITIES
========================================================= */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.site-main {
    /* Padding managed by children to allow full-bleed backgrounds */
    padding-top: 0;
}

/* Offset for fixed header on the first element of each page 
   to allow backgrounds to flow UNDER the header while keeping content visible. */
.site-main> :first-child {
    padding-top: var(--header-height);
}

/* Specific adjustment for hero sections that might have their own padding logic */
.site-main>.section:first-child,
.site-main>header.section:first-child {
    padding-top: var(--header-height);
}

@media (max-width: 1199px) {
    .site-main> :first-child {
        padding-top: var(--header-height);
    }
}

@media (max-width: 767px) {
    .site-main> :first-child {
        padding-top: var(--header-height);
    }
}

/* =========================================================
   4. BUTTONS
========================================================= */

.btn,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 2rem;
    font-family: var(--font-family-base);
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    border-radius: var(--radius-full);
    /* Pill-shaped premium look — matching Assistenza button */
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary CTA — Dark Blue Gradient */
.btn--primary {
    background: var(--color-blu-primario);
    color: var(--color-bianco);
    box-shadow: 0 4px 15px rgba(0, 87, 168, 0.2);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--color-ciano-accento);
    color: var(--color-bianco);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 232, 0.3);
}

/* Outline variant — for dark backgrounds */
.btn--outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-bianco);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--color-bianco);
    border-color: var(--color-bianco);
    color: var(--color-blu-profondo);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

/* Outline Dark — for light backgrounds */
.btn--outline-dark {
    background: transparent;
    border-color: var(--color-blu-primario);
    color: var(--color-blu-primario);
}

.btn--outline-dark:hover,
.btn--outline-dark:focus-visible {
    background: var(--color-blu-primario);
    border-color: var(--color-blu-primario);
    color: var(--color-bianco);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 87, 168, 0.2);
}

/* Button small variant */
.btn--small {
    padding: 0.6rem 1.4rem;
    font-size: 11px;
}

/* =========================================================
   5. NAVBAR
========================================================= */

.site-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-navbar);
    /* Pure white opaque background */
    background-color: #ffffff;
    transition: background-color var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(13, 46, 107, 0.08);
}

/* Base: Hide mobile-specific elements globally, overrides happen in media queries */
.submenu-toggle,
.submenu-back,
.submenu-header,
.navbar-bottom-fixed,
.navbar-mobile-cta {
    display: none;
}

/* WordPress Admin Bar Compatibility */
.admin-bar .site-header {
    top: 32px;
}

.admin-bar {
    --wp-admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .admin-bar {
        --wp-admin-bar-height: 46px;
    }
}

.navbar-container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(1rem, 2vw, 2rem);
    /* Elegant, modern spacing from screen edges */
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.navbar-left-group,
.navbar-right-group {
    display: flex;
    align-items: center;
}

.navbar-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    position: relative;
}

@media (min-width: 1025px) {
    .navbar-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .navbar-left-group {
        display: flex;
        align-items: center;
        gap: var(--space-m);
        flex-shrink: 0;
    }

    .navbar-divider {
        width: 1px;
        height: 24px;
        background-color: var(--color-azzurro-tenue);
        opacity: 0.8;
    }

    .navbar-logo {
        flex-shrink: 0;
    }

    /* Dedicated wrapper for Assistenza button next to the logo */
    .navbar-center-cta {
        position: static;
        transform: none;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }

    .navbar-cta-wrapper {
        margin-left: 0;
        flex-shrink: 0;
    }

    /* Pushes desktop navigation items to the right side of the navbar next to language dropdown */
    .navbar-right-group {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    #desktop-navigation {
        position: static !important;
        /* Positioning logic handled in mega-menu.css to avoid grid collisions */
        width: auto !important;
        max-width: none !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex: none !important;
        margin-left: 0 !important; /* No longer needs auto margin because parent group is pushed right */
        margin-right: var(--space-m) !important; /* Add elegant spacing between pages and language selector */
    }
}

.navbar-logo img,
.navbar-logo .custom-logo {
    display: block;
    height: 30px !important;
    width: auto !important;
    max-width: 100%;
}

@media (max-width: 767px) {

    .navbar-logo img,
    .navbar-logo .custom-logo {
        height: 24px !important;
    }
}

.navbar-logo__text {
    font-size: var(--text-heading-s);
    font-weight: var(--font-weight-bold);
    color: var(--color-blu-profondo);
    letter-spacing: var(--letter-spacing-tight);
}

/* Logo (Left side) */
.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-l);
}

.navbar-menu>li {
    position: static;
}

.navbar-menu>li>a {
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-grigio-blu);
    letter-spacing: 0.01em;
    transition: color var(--transition-base), opacity var(--transition-base);
    padding: 0.25rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-bottom: none;
    position: relative;
}

.navbar-menu>li>a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background-color: var(--color-blu-primario);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
}

.navbar-menu>li>a:hover::after,
.navbar-menu>li.current-menu-item>a::after,
.navbar-menu>li.current-menu-ancestor>a::after,
.navbar-menu>li.current_page_parent>a::after {
    transform: scaleX(1);
}

.navbar-menu>li.current-menu-item>a,
.navbar-menu>li.current-menu-ancestor>a,
.navbar-menu>li.current_page_parent>a,
.navbar-menu>li>a:hover {
    color: var(--color-blu-primario);
}

/* (Deprecated dropdown styles removed) */

/* Wrapper right side CTA */
.navbar-cta-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: calc(var(--z-overlay) + 100);
}

.navbar-language-dropdown {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-s);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.dropdown-trigger img {
    width: 20px !important;
    height: auto !important;
    border-radius: 2px;
}

.dropdown-arrow {
    color: var(--color-grigio-blu);
    transition: transform var(--transition-base);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: #ffffff;
    border: 1px solid var(--color-azzurro-tenue);
    border-radius: var(--radius-s);
    padding: 5px;
    box-shadow: 0 10px 30px rgba(13, 26, 57, 0.12);
    min-width: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
    z-index: var(--z-overlay);
}

/* Invisible bridge to prevent dropdown from closing when moving the cursor */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.navbar-language-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.navbar-language-dropdown:hover .dropdown-trigger {
    background: var(--color-bianco);
    box-shadow: 0 4px 12px rgba(13, 26, 57, 0.06);
}

.navbar-language-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 4px;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: var(--color-sfondo-freddo);
    transform: scale(1.1);
}

.dropdown-menu img {
    width: 22px !important;
    height: auto !important;
    border-radius: 2px;
}

.btn--navbar-cta {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-hero);
    color: var(--color-bianco);
    padding: 0.625rem 1.5rem;
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.01em;
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), opacity var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Shine Reflection Effect */
.btn--navbar-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: navbar-cta-shine 10s infinite linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes navbar-cta-shine {
    0% {
        left: -150%;
    }

    12% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.btn--navbar-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn--navbar-cta:active {
    transform: translateY(0);
}

.btn--navbar-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 8px;
    background: rgba(0, 168, 232, 0.04);
    border: 1px solid var(--color-azzurro-tenue);
    color: var(--color-blu-primario);
    padding: 0.625rem 1.5rem;
    font-family: var(--font-family-base);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.01em;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast), opacity var(--transition-base);
    text-decoration: none;
    /* position + z-index tengono la pillola sopra lo sfondo dei dropdown della
       navbar. Non c'e' overflow: hidden perche' non c'e' piu' niente da
       ritagliare - il fascio di luce e' stato tolto. */
    position: relative;
    z-index: 1;
}

.btn--navbar-partner:hover {
    background: var(--color-blu-primario);
    color: var(--color-bianco);
    border-color: var(--color-blu-primario);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 87, 168, 0.15);
}

.btn--navbar-partner .partner-icon-img {
    filter: brightness(0) saturate(100%) invert(22%) sepia(93%) saturate(761%) hue-rotate(192deg) brightness(101%);
    transition: filter var(--transition-fast);
}

.btn--navbar-partner:hover .partner-icon-img {
    filter: brightness(0) invert(1);
}

.btn--navbar-partner .external-icon {
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.btn--navbar-partner:hover .external-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

.mobile-only {
    display: none !important;
    width: 100%;
    margin-top: var(--space-l);
    justify-content: center;
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .navbar-menu {
        gap: var(--space-m);
    }
}

/* (Redundant Hamburger toggle styles removed — managed in navbar.css) */

/* Remove blue outline/focus state from all interactive elements in header */
.site-header button,
.site-header a,
.navbar-toggle,
.submenu-toggle,
.navbar-mobile-cta {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.navbar-toggle:focus,
.navbar-toggle:active,
.submenu-toggle:focus,
.submenu-toggle:active,
#primary-navigation.navbar-nav .navbar-menu>li>a:focus,
#primary-navigation.navbar-nav .navbar-menu>li>a:active {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Ensure the mobile wrapper doesn't affect desktop layout */
.navbar-menu-container {
    display: contents;
}

/* Mobile nav */
/* Responsive Navbar Adjustments */
@media (max-width: 1024px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    /* Force header to stay pure white and flat when mobile menu is open */
    body.mobile-menu-open .site-header {
        background-color: #ffffff !important;
        box-shadow: none !important;
        border-bottom: none !important;
    }

    .navbar-menu-container {
        position: relative;
        width: 100%;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        display: block;
    }


    .navbar-inner {
        display: flex;
        justify-content: space-between;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex !important;
    }

    /* (Redundant Navbar toggle display rules removed) */

    .navbar-nav {
        position: absolute;
        /* Relative to .site-header */
        top: 100%;
        /* Always below header content */
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height) - var(--wp-admin-bar-height));
        /* Fallback */
        height: calc(100dvh - var(--header-height) - var(--wp-admin-bar-height));
        min-height: -webkit-fill-available;
        background-color: #ffffff !important;
        /* Solid white for maximum clarity on mobile */
        box-shadow: none;
        z-index: var(--z-overlay);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Admin bar height logic already handled in Section 5 global rules */

    #primary-navigation.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        border-top: 1px solid #D6EFFC;
    }

    .navbar-menu {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0.5rem 1.5rem 1.5rem;
        gap: 0 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }


    .navbar-menu>li {
        border-bottom: 1px solid rgba(13, 46, 107, 0.08) !important;
        position: static !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .navbar-menu>li>a {
        flex: 1 !important;
        min-width: 0 !important;
        color: var(--color-blu-profondo) !important;
        font-size: 1.1rem !important;
        font-weight: var(--font-weight-semibold) !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        border-bottom: none !important;
        padding: 1.15rem 0.5rem !important;
        margin: 0 !important;
    }

    .navbar-menu>li>a::after {
        content: '';
        display: none;
        /* Default hidden */
    }

    .navbar-menu>li.menu-item-has-children>a::after {
        content: '';
        display: none !important;
    }

    .navbar-menu .menu-item-has-children {
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap;
    }

    .submenu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: none;
        background: transparent;
        color: var(--color-blu-profondo);
        cursor: pointer;
        flex-shrink: 0;
        position: relative;
    }

    /* Vertical separator between link and toggle */
    .submenu-toggle::before {
        content: '';
        position: absolute;
        left: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background-color: rgba(13, 46, 107, 0.1);
    }

    .submenu-toggle__icon {
        transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1);
        transform-origin: center;
    }

    .menu-item-has-children.is-expanded>.submenu-toggle .submenu-toggle__icon {
        transform: rotate(90deg);
    }

    .navbar-menu .sub-menu {
        position: absolute;
        top: 0;
        left: 100%;
        width: 100%;
        height: auto;
        min-height: 100%;
        background: #fff;
        list-style: none;
        margin: 0;
        padding: 0 1.5rem;
        z-index: 100;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 0.3s, opacity 0.3s ease;
        display: block;
    }

    .menu-item-has-children.is-expanded>.sub-menu {
        visibility: visible;
        opacity: 1;
        transition: visibility 0s, opacity 0.3s ease;
    }

    /* SUBMENU HEADER (BACK + TITLE) */
    .submenu-header {
        display: block !important;
        padding: 1.5rem 0 0.5rem;
        margin-bottom: 0.5rem;
    }

    .submenu-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
    }

    .submenu-back {
        display: flex !important;
        align-items: center;
        gap: 8px;
        color: var(--color-blu-primario, #0057A8);
        font-weight: 600;
        font-size: 1rem;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        text-decoration: none;
    }

    .submenu-go-to {
        color: var(--color-blu-primario, #0057A8);
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
    }

    .submenu-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--color-blu-profondo, #0D2E6B);
        margin: 0 0 1rem;
    }

    .submenu-divider {
        height: 1px;
        background: rgba(0, 0, 0, 0.08);
        width: 100%;
        margin-bottom: 0.5rem;
    }


    .navbar-menu .sub-menu>li {
        border-bottom: 1px solid rgba(13, 46, 107, 0.05);
    }

    .navbar-menu .sub-menu>li:last-child {
        border-bottom: none;
    }

    .navbar-menu .sub-menu>li>a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        color: var(--color-blu-profondo, #0D2E6B);
        font-weight: 500;
        text-decoration: none;
        border-bottom: none !important;
    }


    .navbar-menu .sub-menu .sub-menu {
        padding-left: 0.85rem;
    }

    .navbar-bottom-fixed {
        padding: var(--space-m);
        padding-bottom: calc(var(--space-m) + env(safe-area-inset-bottom, 20px));
        background: transparent;
        border-top: 1px solid rgba(13, 46, 107, 0.08);
        width: 100%;
        flex-shrink: 0;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }

    .navbar-bottom-fixed .btn--navbar-cta,
    .navbar-bottom-fixed .btn--navbar-partner {
        display: flex !important;
        /* Ensure the link inside is visible */
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.25rem !important;
        font-size: 1rem !important;
    }

    .navbar-mobile-cta,
    .navbar-mobile-partner-cta {
        display: flex !important;
    }

    /* (Redundant dropdown display rules removed) */

    .navbar-cta-wrapper {
        gap: var(--space-s);
    }

    .navbar-language-dropdown {
        position: relative;
    }

    .navbar-language-dropdown .dropdown-menu {
        right: 0;
        left: auto;
    }

    .navbar-language-dropdown.is-open .dropdown-menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar-language-dropdown.is-open .dropdown-arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 767px) {
    .navbar-container {
        padding-inline: 12px;
    }

    .navbar-logo img {
        height: 38px;
        max-height: 38px;
    }
}

/* =========================================================
   6. FOOTER
========================================================= */

.site-footer {
    background-color: var(--color-bianco);
    box-shadow: 0 -10px 40px rgba(13, 46, 107, 0.05);
    border-top: 1px solid var(--color-azzurro-tenue);
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-l);
    position: relative;
}

@media (max-width: 767px) {
    .site-footer {
        padding-top: var(--space-2xl);
        padding-bottom: var(--space-m);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.footer-heading {
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-bold);
    color: var(--color-blu-profondo);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-m);
    position: relative;
    padding-bottom: 4px;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-blu-profondo);
    border-radius: var(--radius-full);
}

.footer-col--brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: var(--space-l);
}

.footer-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 45px; /* Slightly increased for presence */
    width: auto;
    margin-bottom: var(--space-s);
}

.footer-logo .custom-logo {
    margin: 0 0 var(--space-s);
}

.footer-logo__text {
    font-size: var(--text-heading-s);
    font-weight: var(--font-weight-bold);
    color: var(--color-blu-profondo);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    display: block;
    margin-bottom: var(--space-s);
}

.footer-tagline {
    font-size: var(--text-body-large);
    color: var(--color-grigio-blu);
    line-height: var(--line-height-body);
    margin-top: var(--space-m);
    max-width: 300px;
}

/* WPML/OTGS frontend banners (dev-site notice + credit) */
.otgs-development-site-front-end,
#wpml_credit_footer {
    display: none !important;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li a {
    font-size: var(--text-body-medium);
    font-weight: var(--font-weight-semibold);
    color: var(--color-grigio-blu);
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    padding-block: 4px;
    position: relative;
    text-decoration: none;
}

.footer-menu li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-ciano-accento);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-base);
    font-size: 1.1em;
}

.footer-menu li a:hover {
    color: var(--color-blu-primario);
    padding-left: 18px;
}

.footer-menu li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}



.footer-address {
    font-style: normal;
}

.footer-address p {
    font-size: var(--text-body-medium);
    font-weight: var(--font-weight-semibold);
    color: var(--color-grigio-blu);
    margin-bottom: var(--space-s);
    display: flex;
    align-items: flex-start;
    gap: var(--space-s);
}

.footer-address p:last-child {
    margin-bottom: 0;
}

.footer-icon {
    flex-shrink: 0;
    color: var(--color-blu-primario);
    margin-top: 2px;
}

.footer-address a {
    color: var(--color-blu-primario);
    transition: color var(--transition-base);
    font-weight: var(--font-weight-semibold);
}

.footer-address a:hover {
    color: var(--color-ciano-accento);
}

.footer-social-links {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-m);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-bianco);
    border-radius: var(--radius-full);
    color: var(--color-blu-primario);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.footer-social:hover {
    background-color: var(--color-blu-primario);
    color: var(--color-bianco);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-m);
    border-top: 1px solid var(--color-azzurro-tenue);
}

.footer-copy,
.footer-legal {
    font-size: var(--text-body-small);
    color: var(--color-grigio-medio);
}

.footer-legal a {
    color: var(--color-grigio-medio);
    transition: color var(--transition-base);
    font-weight: var(--font-weight-semibold);
}

.footer-legal a:hover {
    color: var(--color-blu-primario);
}

/* Tablet */
@media (max-width: 1199px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl) var(--space-xl);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-col--brand {
        padding-right: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-s);
        text-align: center;
    }
}

/* =========================================================
   7. CARDS
========================================================= */

.card {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    padding: var(--space-xl);
    background-color: var(--color-bianco);
    border: 1px solid var(--color-azzurro-tenue);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-ciano-chiaro);
}

.card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-m);
    background: linear-gradient(135deg, var(--color-azzurro-tenue), var(--color-sfondo-freddo));
    border: 1px solid var(--color-azzurro-tenue);
    color: var(--color-blu-primario);
    flex-shrink: 0;
    margin-bottom: var(--space-s);
}

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card__title {
    font-size: var(--text-heading-xs);
    font-weight: var(--font-weight-bold);
    color: var(--color-blu-profondo);
    margin: 0;
}

.card__body {
    font-size: var(--text-body-medium);
    color: var(--color-grigio-blu);
    line-height: var(--line-height-body);
    flex: 1;
}

/* =========================================================
   8. SECTIONS
========================================================= */

.section {
    padding-block: var(--section-padding-desktop);
}

.section--alt {
    background-color: var(--color-sfondo-freddo);
}

.section__label {
    display: block;
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-semibold);
    color: var(--color-blu-primario);
    letter-spacing: var(--letter-spacing-wider);
    text-transform: uppercase;
    margin-bottom: var(--space-s);
}

.section__title {
    font-size: var(--text-heading-l);
    color: var(--color-blu-profondo);
    margin-bottom: var(--space-m);
    max-width: 720px;
}

/* =========================================================
   REUSABLE HEROES
========================================================= */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    margin-top: var(--space-xl);
}

/* Hero Small (Image focused) */

/* =========================================================
   REUSABLE HEROES & BACK BUTTONS
========================================================= */

.hero-small {
    position: relative;
    /* Balanced spacing: top padding is managed by the .site-main > .section:first-child global rule */
    padding-bottom: var(--space-2xl);
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border-bottom: var(--border-subtle);
}

.hero-small__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-small__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-small__overlay {
    position: absolute;
    inset: 0;
    /* Brand-inspired blue gradient overlay for a vibrant look */
    background: linear-gradient(135deg, rgba(0, 87, 168, 0.45) 0%, rgba(0, 168, 232, 0.2) 100%);
    z-index: 2;
}

.hero-small .container {
    position: relative;
    z-index: 10;
}

.hero-small__title {
    font-size: var(--text-heading-xl);
    color: var(--color-bianco);
    margin-bottom: var(--space-m);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95);
}

.hero-small__desc {
    font-size: var(--text-heading-xs);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-body);
    color: var(--color-bianco);
    max-width: 680px;
    opacity: 1;
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.95);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-semibold);
    color: var(--color-blu-primario);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-bottom: var(--space-m);
    transition: transform var(--transition-base), color var(--transition-base);
}

.hero-small .btn-back {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-bianco);
    padding: 10px 40px 10px 12px;
    border-radius: 0;
    margin-bottom: var(--space-l);
    border-left: 3px solid var(--color-ciano-accento);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
    overflow: hidden;
}

.hero-small .btn-back::before,
.hero-small .btn-back::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.hero-small .btn-back::before {
    background: linear-gradient(90deg, var(--color-blu-primario) 0%, transparent 100%);
    opacity: 1;
}

.hero-small .btn-back::after {
    background: linear-gradient(90deg, rgba(61, 81, 102, 0.8) 0%, transparent 100%);
    opacity: 0;
}

.hero-small .btn-back:hover::before {
    opacity: 0;
}

.hero-small .btn-back:hover::after {
    opacity: 1;
}

.hero-small .btn-back:hover {
    transform: translateX(8px);
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

.section__subtitle {
    font-size: var(--text-body-large);
    color: var(--color-grigio-blu);
    max-width: 600px;
    line-height: var(--line-height-body);
    margin-bottom: var(--space-2xl);
}

.hero-content {
    position: relative;
    z-index: var(--z-raised);
    padding-block: var(--space-3xl);
    max-width: 760px;
}

.hero-title {
    color: var(--color-bianco);
    margin-bottom: 8px;
    /* Further reduced from space-xs */
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95);
}

.hero-subtitle {
    font-size: var(--text-body-large);
    color: var(--color-ciano-chiaro);
    margin-bottom: 16px;
    /* Further reduced from space-m */
    max-width: 560px;
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.95);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
}

/* Tablet */
@media (max-width: 1199px) {
    .section {
        padding-block: var(--section-padding-tablet);
    }

    .section__title {
        font-size: var(--text-heading-m);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .section {
        padding-block: var(--section-padding-mobile);
    }

    .section__title {
        font-size: var(--text-heading-s);
    }

    .section__subtitle {
        font-size: var(--text-body-medium);
    }

    .hero-content {
        padding-block: var(--space-2xl);
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-s);
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* =========================================================
   9. FORMS — shared base (contact + careers + partner)
   Rules that were byte-identical across contatti.css and
   lavora-con-noi.css, centralized here. Page-specific
   variations (header, title, subtitle, checkmark, action
   button min-width, file-upload, etc.) stay in their own
   page stylesheets.
========================================================= */

.contact-form,
.careers-form,
.partner-form {
    max-width: 780px;
    margin-inline: auto;
}

/* Honeypot field for bot spam protection — hidden from users */
.contact-form__honeypot,
.careers-form__honeypot,
.partner-form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.contact-form__grid,
.careers-form__grid,
.partner-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m);
}

.contact-form__group--full,
.careers-form__group--full,
.partner-form__group--full {
    grid-column: 1 / -1;
}

.contact-form__label,
.careers-form__label,
.partner-form__label {
    display: block;
    font-size: var(--text-body-small);
    font-weight: var(--font-weight-semibold);
    color: var(--color-blu-profondo);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.02em;
}

.contact-form__label .required,
.careers-form__label .required,
.partner-form__label .required {
    color: var(--color-ciano-accento);
}

.contact-form__input,
.contact-form__textarea,
.careers-form__input,
.partner-form__input,
.careers-form__textarea,
.partner-form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-family-base);
    font-size: var(--text-body-medium);
    color: var(--color-blu-profondo);
    background-color: var(--color-sfondo-freddo);
    border: 1px solid var(--color-azzurro-tenue);
    border-radius: var(--radius-m);
    outline: none;
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        background-color var(--transition-base);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder,
.careers-form__input::placeholder,
.partner-form__input::placeholder,
.careers-form__textarea::placeholder,
.partner-form__textarea::placeholder {
    color: var(--color-grigio-medio);
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.careers-form__input:focus,
.partner-form__input:focus,
.careers-form__textarea:focus,
.partner-form__textarea:focus {
    border-color: var(--color-ciano-accento);
    background-color: var(--color-bianco);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.12);
}

/* Privacy checkbox */
.contact-form__checkbox-label,
.careers-form__checkbox-label,
.partner-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-s);
    cursor: pointer;
    font-size: var(--text-body-small);
    color: var(--color-grigio-blu);
    line-height: 1.5;
}

.contact-form__checkbox,
.careers-form__checkbox,
.partner-form__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.contact-form__checkbox:checked + .contact-form__checkmark,
.careers-form__checkbox:checked + .careers-form__checkmark,
.partner-form__checkbox:checked + .partner-form__checkmark {
    background: var(--color-blu-primario);
    border-color: var(--color-blu-primario);
}

.contact-form__checkbox:checked + .contact-form__checkmark::after,
.careers-form__checkbox:checked + .careers-form__checkmark::after,
.partner-form__checkbox:checked + .partner-form__checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: solid var(--color-bianco);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Actions */
.contact-form__actions,
.careers-form__actions,
.partner-form__actions {
    margin-top: var(--space-xl);
    text-align: center;
}

/* Submit button loading state */
.btn__spinner {
    display: none;
    animation: spin 0.8s linear infinite;
}

.btn.is-loading .btn__text {
    opacity: 0;
}

.btn.is-loading .btn__spinner {
    display: block;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status messages */
.contact-form__status,
.careers-form__status,
.partner-form__status {
    margin-top: var(--space-m);
    text-align: center;
    font-size: var(--text-body-medium);
    font-weight: var(--font-weight-semibold);
    padding: 0;
    border-radius: var(--radius-m);
    transition: all var(--transition-base);
}

.contact-form__status.is-success,
.careers-form__status.is-success,
.partner-form__status.is-success {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
    padding: var(--space-m);
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.contact-form__status.is-error,
.careers-form__status.is-error,
.partner-form__status.is-error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
    padding: var(--space-m);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Responsive (shared) */
@media (max-width: 767px) {
    .contact-form__grid,
    .careers-form__grid,
    .partner-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form__actions .btn,
    .careers-form__actions .btn,
    .partner-form__actions .btn {
        width: 100%;
    }
}

/* =========================================================
   10. ACCESSIBILITY
========================================================= */

/* Skip to content */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-s);
    z-index: 9999;
    padding: var(--space-xs) var(--space-m);
    background-color: var(--color-blu-primario);
    color: var(--color-bianco);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-s);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-s);
}

/* Visible focus rings */
:focus-visible {
    outline: 2px solid var(--color-ciano-accento);
    outline-offset: 3px;
    border-radius: var(--radius-s);
}

/* Screen reader only */
.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;
}

/* =========================================================
   11. SHARED LAYOUT HELPERS
========================================================= */

/* Section header layout */
.section-header {
    max-width: 680px;
    margin-bottom: var(--space-2xl);
}

@media (max-width: 767px) {
    .card {
        padding: var(--space-l);
    }
}

/* Feature list */
.product-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    margin-block: var(--space-s);
}

/* =========================================================
   12. GLOBAL UTILITIES & HELPER CLASSES
========================================================= */

.w-full {
    width: 100%;
}

.mt-s {
    margin-top: var(--space-s);
}

.mt-m {
    margin-top: var(--space-m);
}

.mt-l {
    margin-top: var(--space-l);
}

.mb-s {
    margin-bottom: var(--space-s);
}

.mb-m {
    margin-bottom: var(--space-m);
}

.mb-l {
    margin-bottom: var(--space-l);
}

.pt-m {
    padding-top: var(--space-m);
}

.pt-l {
    padding-top: var(--space-l);
}

/* =========================================================
   15. ALIAS & STANDARDIZATION (FG800 backwards comp)
========================================================= */

/* Align FG800 title hierarchy with the FSE Design System */
.section__title,
.fg800-h2 {
    font-size: var(--text-heading-l);
    color: var(--color-blu-profondo);
    line-height: var(--line-height-heading);
    letter-spacing: var(--letter-spacing-tight);
}

.section__subtitle,
.fg800-lead {
    font-size: var(--text-body-large);
    color: var(--color-grigio-blu);
    line-height: var(--line-height-body);
}

.section__label,
.fg800-tag {
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-ciano-accento);
    display: inline-block;
    margin-bottom: var(--space-s);
}

/* Card modifiers for legacy modules */
.card--safety,
.card--touch {
    display: flex;
    flex-direction: column;
}

@media (max-width: 767px) {

    .section__title,
    .fg800-h2 {
        font-size: var(--text-heading-m);
    }

    .section__subtitle,
    .fg800-lead {
        font-size: var(--text-body-medium);
    }
}

/* =========================================================
   16. PRIVACY POLICY PAGE
========================================================= */

.privacy-container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.page-privacy {
    background-color: var(--color-sfondo-freddo);
}

.privacy-hero {
    background: linear-gradient(135deg, var(--color-blu-profondo), var(--color-blu-primario));
    padding: var(--space-2xl) 0;
    margin-top: calc(var(--header-height, 100px) - 1px);
    text-align: center;
    color: var(--color-bianco);
}

.privacy-title {
    font-size: var(--text-heading-xl);
    margin-bottom: var(--space-s);
    color: var(--color-bianco);
}

.privacy-subtitle {
    font-size: var(--text-body-large);
    color: var(--color-azzurro-tenue);
    font-weight: var(--font-weight-medium);
}

.privacy-layout {
    display: flex;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0 var(--space-3xl);
    align-items: flex-start;
}

/* Sticky Sidebar */
.privacy-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
    background-color: var(--color-bianco);
    border-radius: var(--radius-l);
    padding: var(--space-l);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-azzurro-tenue);
}

.privacy-toc__title {
    font-size: var(--text-heading-xs);
    color: var(--color-blu-profondo);
    margin-bottom: var(--space-m);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-azzurro-tenue);
}

.privacy-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.privacy-toc__list a {
    display: block;
    padding: var(--space-xs) var(--space-s);
    color: var(--color-grigio-blu);
    text-decoration: none;
    font-size: var(--text-body-medium);
    font-weight: var(--font-weight-medium);
    border-left: 3px solid transparent;
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
    transition: all var(--transition-base);
}

.privacy-toc__list a:hover {
    background-color: var(--color-sfondo-freddo);
    color: var(--color-blu-primario);
    border-left-color: var(--color-azzurro-tenue);
}

.privacy-toc__list a.is-active {
    background-color: var(--color-sfondo-freddo);
    color: var(--color-blu-primario);
    font-weight: var(--font-weight-semibold);
    border-left-color: var(--color-ciano-accento);
}

/* Main Content Area */
.privacy-content {
    flex-grow: 1;
    background-color: var(--color-bianco);
    border-radius: var(--radius-l);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-azzurro-tenue);
}

.privacy-intro {
    font-size: var(--text-body-large);
    color: var(--color-grigio-blu);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-relaxed);
}

.privacy-section {
    margin-bottom: var(--space-2xl);
    scroll-margin-top: calc(var(--header-height) + var(--space-xl)); /* Prevents header overlap */
}

.privacy-section:last-child {
    margin-bottom: 0;
}

.privacy-section h2 {
    font-size: var(--text-heading-m);
    color: var(--color-blu-profondo);
    margin-bottom: var(--space-m);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-azzurro-tenue);
}

.privacy-section p, 
.privacy-section ul, 
.privacy-section ol {
    font-size: var(--text-body-medium);
    color: var(--color-grigio-blu);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-m);
}

.privacy-section ul, 
.privacy-section ol {
    padding-left: var(--space-l);
}

.privacy-section li {
    margin-bottom: var(--space-xs);
}

.privacy-section strong {
    color: var(--color-blu-profondo);
}

.privacy-infobox {
    background-color: var(--color-sfondo-freddo);
    border-left: 4px solid var(--color-ciano-accento);
    padding: var(--space-m) var(--space-l);
    border-radius: 0 var(--radius-m) var(--radius-m) 0;
    margin-top: var(--space-m);
}

.privacy-infobox p {
    margin-bottom: var(--space-xs);
    color: var(--color-blu-profondo);
}

.privacy-infobox p:last-child {
    margin-bottom: 0;
}

.privacy-infobox a {
    color: var(--color-blu-primario);
    font-weight: var(--font-weight-semibold);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .privacy-layout {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .privacy-sidebar {
        width: 100%;
        position: static; /* Disable sticky on tablet/mobile */
        padding: var(--space-m);
    }
    
    .privacy-toc__list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .privacy-toc__list li {
        width: calc(50% - var(--space-xs));
    }

    .privacy-content {
        padding: var(--space-l);
    }
}

@media (max-width: 767px) {
    .privacy-hero {
        padding: var(--space-xl) 0 var(--space-l);
    }

    .privacy-toc__list {
        flex-direction: column;
    }
    
    .privacy-toc__list li {
        width: 100%;
    }
}