/* ==========================================================================
   Ri-Hub — Global Stylesheet
   Struttura: Tokens → Reset → Top Bar → Header → Lang → Mobile → Footer → Responsive
   Design: dark premium, Poppins max-weight 600, teal #00938B, blue #5095B0
   Regola brand: "Ri-Hub" mai a capo (white-space: nowrap o &#8209;)
   ========================================================================== */

/* ==========================================================================
   1. FONT FACE — Poppins self-hosted (latin + latin-ext, weights 400–700)
   ========================================================================== */

/* 400 — latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/poppins-400-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* 400 — latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/poppins-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 500 — latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/poppins-500-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* 500 — latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/poppins-500.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 600 — latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/poppins-600-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* 600 — latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/poppins-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 700 — latin-ext */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/poppins-700-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                   U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                   U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* 700 — latin */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/poppins-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */
:root {
    /* --- Colori brand --- */
    --c-brand:          #00938B;
    --c-brand-hover:    #00a89f;
    --c-blue:           #5095B0;
    --c-teal-light:     #5dd9d0;

    /* --- Superfici --- */
    --c-bg:             #0A0A0F;
    --c-bg-footer:      #050508;
    --c-bg-topbar:      #0d1117;

    /* --- Testo --- */
    --c-text:           rgba(255, 255, 255, 0.85);
    --c-text-soft:      rgba(255, 255, 255, 0.55);
    --c-text-muted:     rgba(255, 255, 255, 0.35);
    --c-text-dim:       rgba(255, 255, 255, 0.2);

    /* --- Bordi / superfici vetro --- */
    --c-border:         rgba(255, 255, 255, 0.06);
    --c-border-soft:    rgba(255, 255, 255, 0.04);
    --c-surface-1:      rgba(255, 255, 255, 0.04);
    --c-surface-2:      rgba(255, 255, 255, 0.07);

    /* --- Gradients --- */
    --grad-brand:       linear-gradient(135deg, #00938B 0%, #5095B0 100%);
    --grad-brand-hover: linear-gradient(135deg, #00a89f 0%, #5095B0 100%);
    --grad-footer-line: linear-gradient(90deg, transparent 0%, #00938B 30%, #5095B0 70%, transparent 100%);

    /* --- Border radius --- */
    --r-sm:   8px;
    --r-md:   10px;
    --r-lg:   14px;
    --r-full: 9999px;

    /* --- Transizioni --- */
    --t-fast:   0.2s ease;
    --t-normal: 0.3s ease;
    --t-slow:   0.5s ease;

    /* --- Layout --- */
    --site-max: 1300px;
    --site-px:  40px;       /* padding orizzontale — usato anche dalla hero via var() */

    /* --- Altezze componenti --- */
    --topbar-h:         38px;
    --header-h:         70px;
    --header-h-sm:      56px;   /* header scrolled */
}

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --site-px:   24px;
        --topbar-h:  0px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    :root {
        --site-px:  16px;
        --header-h: 60px;
        --header-h-sm: 52px;
    }
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Accessibilità: focus keyboard visibile, mai intrusivo al click */
:focus { outline: none; }
:focus-visible {
    outline: 2px solid var(--c-brand);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

/* ==========================================================================
   3. TOP BAR
   ========================================================================== */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    height: var(--topbar-h);
    background: var(--c-bg-topbar);
    border-bottom: 1px solid var(--c-border-soft);
    transition: transform 0.35s ease;
}

.top-bar.hidden { transform: translateY(-100%); }

.top-bar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--site-px);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text-muted);
    transition: color var(--t-fast);
}

.top-bar-link:hover { color: rgba(255, 255, 255, 0.8); }

.top-bar-link svg {
    width: 13px;
    height: 13px;
    fill: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: fill var(--t-fast);
}

.top-bar-link:hover svg { fill: var(--c-teal-light); }

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar-right a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    transition: background var(--t-fast);
}

.top-bar-right a:hover { background: var(--c-surface-2); }

.top-bar-right svg {
    width: 13px;
    height: 13px;
    fill: rgba(255, 255, 255, 0.3);
    transition: fill var(--t-fast);
}

.top-bar-right a:hover svg { fill: rgba(255, 255, 255, 0.7); }

/* ==========================================================================
   4. SITE HEADER
   ========================================================================== */
.site-header {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    z-index: 1000;
    transition: top 0.35s ease, background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
    top: 0;
    background: linear-gradient(135deg, rgba(4, 4, 14, 0.93) 0%, rgba(8, 10, 22, 0.93) 100%);
    backdrop-filter: blur(64px) saturate(2.8) brightness(1.1);
    -webkit-backdrop-filter: blur(64px) saturate(2.8) brightness(1.1);
    box-shadow:
        0 8px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 147, 139, 0.12);
}

.site-header.scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 147, 139, 0.7) 30%, rgba(80, 149, 176, 0.6) 50%, rgba(0, 147, 139, 0.7) 70%, transparent);
    animation: headerLineGlow 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerLineGlow {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

/* ── Header inner ── */
.header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--header-h);
    padding: 0 var(--site-px);
    transition: height 0.4s ease;
}

.site-header.scrolled .header-inner { height: var(--header-h-sm); }

/* ── Logo ── */
.header-logo {
    display: flex;
    align-items: center;
    transition: opacity var(--t-fast);
}

.header-logo:hover { opacity: 0.8; }

.header-logo svg {
    height: 28px;
    width: auto;
    display: block;
    transition: height 0.4s ease;
}

.site-header.scrolled .header-logo svg { height: 24px; }

/* ── Nav ── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-soft);
    padding: 7px 13px;
    border-radius: 14px;
    transition: color var(--t-fast), background var(--t-fast);
    white-space: nowrap;
}

.header-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile-only nav items: nascosti su desktop */
.nav-mobile-header,
.nav-close-btn,
.nav-mobile-lang,
.nav-mobile-cta,
.nav-mobile-accedi { display: none; }

/* ── Dropdown nav ── */
.nav-dropdown-item {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-soft);
    padding: 7px 13px;
    border-radius: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
    font-family: 'Poppins', sans-serif;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-item:hover .nav-dropdown-trigger,
.nav-dropdown-item.open .nav-dropdown-trigger {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.nav-dropdown-item:hover .nav-chevron,
.nav-dropdown-item.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: rgba(10, 10, 18, 0.96);
    backdrop-filter: blur(32px) saturate(2);
    -webkit-backdrop-filter: blur(32px) saturate(2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}

/* Desktop: hover apre il menu */
.nav-dropdown-item:hover .nav-dropdown-menu,
.nav-dropdown-item.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-soft);
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
    background: transparent !important; /* override .header-nav a:hover */
}

.nav-dropdown-menu a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

/* ── Right group: lang pill + CTA + burger ── */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ==========================================================================
   5. LANGUAGE SWITCHER
   ========================================================================== */
.lang-switcher { position: relative; }

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-soft);
    cursor: pointer;
    transition: color var(--t-fast);
    background: none;
    border: none;
}

.lang-current:hover { color: #fff; }

.lang-switcher.open .lang-current { color: #fff; }

.lang-current .lang-code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-current .lang-arrow {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.lang-switcher.open .lang-arrow { transform: rotate(180deg); }

/* Dropdown */
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(14, 14, 22, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: 6px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-fast), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility var(--t-fast);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-height: 380px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--c-border) transparent;
}

.lang-dropdown::-webkit-scrollbar { width: 3px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.lang-option:hover { background: var(--c-surface-2); color: #fff; }

.lang-option.active { color: var(--c-teal-light); background: rgba(0, 147, 139, 0.1); }

.lang-option .lang-abbr {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--c-surface-1);
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: all 0.15s;
}

.lang-option.active .lang-abbr   { background: rgba(0, 147, 139, 0.15); color: var(--c-teal-light); }
.lang-option:hover .lang-abbr    { background: var(--c-surface-2); color: rgba(255, 255, 255, 0.8); }
.lang-option.active:hover .lang-abbr { background: rgba(0, 147, 139, 0.2); color: var(--c-teal-light); }

.lang-option .lang-name { flex: 1; }

.lang-separator {
    height: 1px;
    background: var(--c-border-soft);
    margin: 4px 10px;
}

/* ==========================================================================
   6. HEADER BUTTONS
   ========================================================================== */
.header-btn-accedi {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--r-md);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}

.header-btn-accedi:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--grad-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r-md);
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    white-space: nowrap;
    margin-left: 8px;
    box-shadow: 0 2px 12px rgba(0, 147, 139, 0.2);
    letter-spacing: 0.01em;
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 147, 139, 0.35);
    background: var(--grad-brand-hover);
}

.header-cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* ==========================================================================
   7. MOBILE MENU — HAMBURGER & OVERLAY
   ========================================================================== */

/* ── Hamburger button — icon only, no box ── */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    padding: 0;
}

.menu-toggle:hover { opacity: 0.75; }
.menu-toggle.active { opacity: 1; }

/* Three lines — intentionally asymmetric for visual interest */
.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    position: relative;
    transition: all 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.38s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Shorter top line, medium bottom — asymmetry signals "menu" */
.menu-toggle span::before { top: -7px; width: 13px; }
.menu-toggle span::after  { top:  7px; width: 16px; }

/* Active → X morphing in teal */
.menu-toggle.active span            { background: transparent; }
.menu-toggle.active span::before    { top: 0; width: 20px; transform: rotate(45deg);  background: #5dd9d0; }
.menu-toggle.active span::after     { top: 0; width: 20px; transform: rotate(-45deg); background: #5dd9d0; }

/* ── Backdrop overlay ── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(0, 147, 139, 0.05) 0%, rgba(0, 0, 0, 0.72) 55%);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mobile-overlay.active { opacity: 1; }

/* ==========================================================================
   8. SITE FOOTER
   ========================================================================== */
.site-footer {
    position: relative;
    background: var(--c-bg-footer);
    padding: 0 var(--site-px) 0;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-footer-line);
    opacity: 0.3;
}

.footer-inner {
    max-width: var(--site-max);
    margin: 0 auto;
}

.footer-top {
    padding: 64px 0 56px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 56px;
}

/* Left columns */
.footer-brand,
.footer-links { /* equivalent to old .footer-info */ }

.footer-logo {
    height: 28px;
    width: auto;
    display: block;
    margin-bottom: 28px;
}

.footer-tagline {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--c-text);
    margin-bottom: 20px;
}

.footer-contact-intro {
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-text-soft);
    margin-bottom: 14px;
}

.footer-contact-list {
    list-style: none;
    margin-bottom: 24px;
}

.footer-contact-list li + li { margin-top: 8px; }

.footer-contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--c-text-soft);
    transition: color var(--t-fast);
}

.footer-contact-list a:hover { color: #fff; }

.footer-contact-list svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    transition: fill var(--t-fast);
}

.footer-contact-list a:hover svg { fill: var(--c-teal-light); }

/* Social */
.footer-social {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-surface-2);
    transition: background var(--t-fast), transform var(--t-fast);
}

.footer-social a:hover {
    background: rgba(0, 147, 139, 0.15);
    transform: translateY(-1px);
}

.footer-social svg {
    width: 15px;
    height: 15px;
    fill: rgba(255, 255, 255, 0.4);
    transition: fill var(--t-fast);
}

.footer-social a:hover svg { fill: var(--c-teal-light); }

/* Legal info */
.footer-legal-info {
    font-size: 13px;
    line-height: 1.9;
    color: var(--c-text-muted);
}

.footer-legal-info p { margin-bottom: 12px; }
.footer-legal-info p:last-child { margin-bottom: 0; }

.footer-legal-info a {
    color: var(--c-text-soft);
    transition: color var(--t-fast);
}

.footer-legal-info a:hover { color: #fff; }

/* Right column: form */
.footer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-form input[type="text"],
.footer-form input[type="email"],
.footer-form input[type="tel"],
.footer-form select,
.footer-form textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--c-surface-1);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: border-color var(--t-fast), background var(--t-fast);
    outline: none;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder { color: var(--c-text-muted); }

.footer-form input:focus,
.footer-form select:focus,
.footer-form textarea:focus {
    border-color: rgba(0, 147, 139, 0.45);
    background: var(--c-surface-2);
}

.footer-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

.footer-form select option { background: #0e0e16; color: #fff; }

.footer-form textarea { resize: vertical; min-height: 96px; }

.footer-form-acceptance {
    font-size: 11px;
    line-height: 1.6;
    color: var(--c-text-muted);
}

.footer-form-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.footer-form-acceptance input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--c-brand);
    cursor: pointer;
}

.footer-form-acceptance a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    transition: text-decoration-color var(--t-fast);
}

.footer-form-acceptance a:hover { text-decoration-color: rgba(255, 255, 255, 0.6); }

.footer-form-submit {
    width: 100%;
    padding: 13px 24px;
    background: var(--grad-brand);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: none;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    box-shadow: 0 4px 20px rgba(0, 147, 139, 0.25);
}

.footer-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(0, 147, 139, 0.35);
}

/* ==========================================================================
   9. RESPONSIVE — Tablet ≤1024px
   ========================================================================== */
@media (max-width: 1024px) {

    /* ── System ── */
    .top-bar { display: none; }
    .site-header { top: 0; }
    .lang-switcher { display: none; }
    .header-cta.desktop-only       { display: none; }
    .header-btn-accedi.desktop-only { display: none; }
    .lang-switcher.desktop-only    { display: none; }
    .mobile-overlay.active         { display: block; }
    .menu-toggle                   { display: flex; }

    /* ── Stagger keyframes ── */
    @keyframes navSlideIn {
        from { opacity: 0; transform: translateX(22px); }
        to   { opacity: 1; transform: translateX(0); }
    }

    /* ── Nav drawer ── */
    .header-nav {
        position: fixed;
        top: 0;
        right: -360px;
        width: min(340px, 88vw);
        height: 100dvh;
        /* Rich teal gradient — not all black */
        background:
            radial-gradient(ellipse 120% 45% at 60% -5%, rgba(0, 147, 139, 0.28) 0%, transparent 55%),
            radial-gradient(ellipse 70% 50% at 100% 100%, rgba(80, 149, 176, 0.15) 0%, transparent 55%),
            linear-gradient(180deg, rgba(7, 10, 24, 0.98) 0%, rgba(4, 5, 14, 0.99) 100%);
        backdrop-filter: blur(48px) saturate(2.2);
        -webkit-backdrop-filter: blur(48px) saturate(2.2);
        flex-direction: column;
        align-items: stretch;
        padding: 0 28px 32px;
        padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
        gap: 0;
        z-index: 999;
        transition: right 0.42s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(0, 147, 139, 0.18);
        box-shadow: -4px 0 60px rgba(0, 0, 0, 0.5), -1px 0 0 rgba(0, 147, 139, 0.15);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .header-nav.open { right: 0; }

    /* ── Mobile drawer logo header ── */
    .nav-mobile-header {
        display: flex;
        align-items: center;
        height: 76px;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        margin-bottom: 4px;
    }

    .nav-mobile-logo {
        display: flex;
        align-items: center;
        opacity: 0.92;
        transition: opacity 0.2s ease;
    }

    .nav-mobile-logo:hover { opacity: 1; box-shadow: none; }

    .nav-mobile-logo svg {
        height: 24px;
        width: auto;
    }

    /* Logo link: override nav-link styles */
    .header-nav .nav-mobile-logo {
        border-bottom: none;
        padding: 0;
        font-size: inherit;
        width: auto;
        color: inherit;
        background: none;
        flex: 1;
    }

    /* Close button */
    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s ease, border-color 0.2s ease;
        flex-shrink: 0;
    }

    .nav-close-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .nav-close-btn svg {
        width: 18px;
        height: 18px;
        stroke: rgba(255, 255, 255, 0.7);
    }

    /* Stagger children when drawer opens */
    .header-nav.open > *:nth-child(1) { animation: navSlideIn 0.4s ease 0.04s both; }
    .header-nav.open > *:nth-child(2) { animation: navSlideIn 0.4s ease 0.09s both; }
    .header-nav.open > *:nth-child(3) { animation: navSlideIn 0.4s ease 0.13s both; }
    .header-nav.open > *:nth-child(4) { animation: navSlideIn 0.4s ease 0.17s both; }
    .header-nav.open > *:nth-child(5) { animation: navSlideIn 0.4s ease 0.20s both; }
    .header-nav.open > *:nth-child(6) { animation: navSlideIn 0.4s ease 0.23s both; }
    .header-nav.open > *:nth-child(7) { animation: navSlideIn 0.4s ease 0.26s both; }
    .header-nav.open > *:nth-child(8) { animation: navSlideIn 0.4s ease 0.29s both; }
    .header-nav.open > *:nth-child(9)  { animation: navSlideIn 0.4s ease 0.32s both; }
    .header-nav.open > *:nth-child(10) { animation: navSlideIn 0.4s ease 0.35s both; }

    /* ── Nav links ── */
    .header-nav a {
        position: relative;
        font-size: 17px;
        font-weight: 500;
        padding: 17px 0;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.65);
        transition: color 0.2s ease, padding-left 0.2s ease, box-shadow 0.2s ease;
    }

    .header-nav a:hover {
        background: none;
        color: #fff;
        padding-left: 10px;
        box-shadow: inset 3px 0 0 rgba(0, 147, 139, 0.7);
    }

    /* ── Dropdown in drawer — accordion style ── */
    .nav-dropdown-item { width: 100%; }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 17px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
        font-size: 17px;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.65);
        transition: color 0.2s ease, padding-left 0.2s ease, box-shadow 0.2s ease;
    }

    .nav-dropdown-trigger:hover {
        background: none;
        color: #fff;
        padding-left: 10px;
        box-shadow: inset 3px 0 0 rgba(0, 147, 139, 0.7);
    }

    .nav-dropdown-item.open .nav-dropdown-trigger {
        background: none;
        color: #5dd9d0;
        padding-left: 10px;
        box-shadow: inset 3px 0 0 rgba(0, 200, 180, 0.9);
        border-bottom-color: transparent;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1; visibility: visible; transform: none;
        background: rgba(0, 147, 139, 0.05);
        border: none;
        border-left: 2px solid rgba(0, 147, 139, 0.4);
        box-shadow: none; backdrop-filter: none;
        padding: 4px 0 8px 18px;
        border-radius: 0;
        margin: 0 0 4px;
        display: none;
    }

    .nav-dropdown-item.open .nav-dropdown-menu { display: block; }

    .nav-dropdown-menu a {
        font-size: 14px;
        padding: 11px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        color: rgba(255, 255, 255, 0.45);
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        transition: color 0.2s, padding-left 0.2s;
    }

    .nav-dropdown-menu a:hover {
        color: #5dd9d0;
        padding-left: 4px;
        box-shadow: none;
    }

    /* ── Lingua row ── */
    .nav-mobile-lang {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 20px 0 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 4px;
    }

    .nav-mobile-lang::before {
        content: 'Lingua';
        display: block;
        width: 100%;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.22);
        margin-bottom: 10px;
        font-family: 'Poppins', sans-serif;
    }

    .nav-mobile-lang-item {
        padding: 8px 14px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        cursor: pointer;
        transition: all 0.18s ease;
        user-select: none;
    }

    .nav-mobile-lang-item:hover {
        color: rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(255, 255, 255, 0.16);
    }

    .nav-mobile-lang-item.active {
        color: #5dd9d0;
        background: rgba(0, 147, 139, 0.15);
        border-color: rgba(0, 147, 139, 0.4);
        box-shadow: 0 0 14px rgba(0, 147, 139, 0.15);
    }

    /* ── Acquista sedute CTA ── */
    .nav-mobile-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 16px 24px;
        background: linear-gradient(135deg, #00938B 0%, #5095b0 100%);
        color: #fff;
        font-size: 15px;
        font-weight: 600;
        border-radius: 14px;
        margin-top: 32px;
        text-decoration: none;
        border-bottom: none;
        box-shadow: 0 8px 32px rgba(0, 147, 139, 0.35);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        overflow: hidden;
        position: relative;
    }

    /* Shimmer on hover */
    .nav-mobile-cta::after {
        content: '';
        position: absolute;
        top: 0; left: -60%; width: 40%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        transform: skewX(-20deg);
        transition: left 0.5s ease;
    }

    .nav-mobile-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 40px rgba(0, 147, 139, 0.5);
        padding-left: 24px;
        color: #fff;
    }

    .nav-mobile-cta:hover::after { left: 140%; }

    /* ── Accedi button ── */
    .nav-mobile-accedi {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px 24px;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        font-weight: 500;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        margin-top: 10px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .nav-mobile-accedi:hover {
        background: rgba(255, 255, 255, 0.09);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.22);
        padding-left: 24px;
        box-shadow: none;
    }

    /* ── Footer tablet ── */
    .footer-top { gap: 32px; }
}

/* ==========================================================================
   10. RESPONSIVE — Mobile ≤600px
   ========================================================================== */
@media (max-width: 600px) {
    .header-logo { margin-right: 0; }

    /* Full-screen drawer on small phones */
    .header-nav {
        width: 100%;
        right: -100%;
        padding: 0 22px 28px;
        padding-bottom: max(28px, env(safe-area-inset-bottom, 28px));
    }

    .header-nav a { font-size: 16px; padding: 16px 0; }

    .nav-dropdown-trigger { font-size: 16px; padding: 16px 0; }

    .nav-mobile-lang-item { padding: 7px 12px; font-size: 11px; }

    .nav-mobile-cta { padding: 15px 20px; font-size: 15px; }
    .nav-mobile-accedi { padding: 13px 20px; font-size: 14px; }

    /* Footer single column */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0 40px;
    }
}

/* ==========================================================================
   11. RESPONSIVE — Very small ≤380px
   ========================================================================== */
@media (max-width: 380px) {
    .footer-form-row { grid-template-columns: 1fr; }
    .footer-tagline { font-size: 15px; }
}

/* ==========================================================================
   12. ACCESSIBILITÀ — prefers-reduced-motion
   Spegne transizioni e animazioni non essenziali per chi ha
   impostato "Preferisci animazioni ridotte" nel sistema operativo.
   La hero ha un blocco aggiuntivo dedicato nel proprio <style> inline.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration:       0.01ms !important;
        animation-iteration-count: 1     !important;
        transition-duration:      0.01ms !important;
        scroll-behavior:          auto   !important;
    }
}
