/* =========================================
   0. IMPORTAZIONE FONT
   ========================================= */
/* @import rimosso: i font arrivano dal <link> nel <head> di ogni pagina */
/* =========================================
   1. VARIABILI E RESET GLOBALI
   ========================================= */
:root {
    --black: #050505;
    --anthracite: #1a1a1a;
    --steel: #8b939a;
    --white: #fdfdfd;
    --pure-white: #ffffff;
    --overlay: rgba(5, 5, 5, 0.75);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw; 
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
}

/* =========================================
   2. TIPOGRAFIA (FIX FORZATI)
   ========================================= */
h1, h2, h3, .huge-title, .section-title {
    font-family: 'Montserrat', sans-serif !important;
    text-transform: uppercase;
    line-height: 1.1;
    font-weight: 800;
}

p, li, a {
    font-family: 'Inter', sans-serif !important;
}

a { 
    color: var(--white); 
    text-decoration: none; 
    transition: 0.3s ease; 
}

/* =========================================
   3. HEADER E NAVIGAZIONE (DESKTOP)
   ========================================= */
header {
    position: fixed;
    top: 0; 
    width: 100%;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px; 
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 30px; 
    align-items: center; 
}

nav ul li a { 
    font-size: 0.8rem; 
    font-weight: 500; 
    letter-spacing: 1px; 
    color: var(--steel); 
    text-transform: uppercase; 
}

nav ul li a:hover { 
    color: var(--white); 
}

.nav-reserved { 
    border: 1px solid var(--white); 
    padding: 8px 15px; 
    border-radius: 2px; 
    color: var(--white) !important; 
}

/* --- FIX DROPDOWN PRODOTTI (DESKTOP) --- */
nav ul li.dropdown { 
    position: relative; 
}

nav ul li.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--anthracite);
    min-width: 250px;
    padding: 15px 0;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    z-index: 1001;
}

nav ul li.dropdown:hover .dropdown-content { 
    display: block; 
}

nav ul li.dropdown .dropdown-content li { 
    width: 100%; 
}

nav ul li.dropdown .dropdown-content li a {
    display: block;
    padding: 12px 25px;
    font-size: 0.75rem;
    color: var(--steel);
}

nav ul li.dropdown .dropdown-content li a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--pure-white);
}

.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* =========================================
   4. LAYOUT E UTILITIES
   ========================================= */
.section {
    padding: 150px 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden; 
}

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    width: 100%; 
    position: relative; 
    z-index: 2; 
}

.huge-title { 
    font-size: clamp(3rem, 6vw, 7rem); 
    font-weight: 900; 
    letter-spacing: -2px; 
    margin-bottom: 30px;
    hyphens: none !important;
}

.section-title { 
    font-size: clamp(2.5rem, 4vw, 5rem); 
    font-weight: 800; 
    margin-bottom: 40px; 
    color: var(--white); 
}

.lead-text { 
    font-size: 1.5rem; 
    font-weight: 300; 
    color: var(--steel); 
    max-width: 800px; 
    margin-bottom: 50px; 
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--white);
    color: var(--black);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    border: 1px solid var(--white);
    transition: 0.3s;
}

.btn-outline { 
    background: transparent; 
    color: var(--white); 
}

.btn:hover { 
    background: var(--steel); 
    color: var(--white); 
    border-color: var(--steel); 
}

/* =========================================
   5. BACKGROUNDS & GRID
   ========================================= */
.bg-arch {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    z-index: 0; 
    filter: grayscale(100%) blur(5px); 
    opacity: 0.6; 
}

.bg-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--overlay); 
    z-index: 1; 
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px 40px;
    transition: transform 0.4s ease, background 0.4s;
}

.card:hover { 
    transform: translateY(-10px); 
    background: rgba(255,255,255,0.08); 
}

.card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--steel); 
    padding-bottom: 15px; 
}

/* =========================================
   6. LISTE NUMERATE
   ========================================= */
.numbered-list { 
    list-style: none; 
    margin-top: 40px; 
}

.numbered-list li {
    font-size: 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    padding: 30px 0;
    display: flex; 
    align-items: flex-start;
}

.numbered-list span { 
    font-family: 'Montserrat'; 
    font-weight: 900; 
    font-size: 2rem; 
    color: var(--steel); 
    margin-right: 30px; 
    line-height: 1; 
}

/* =========================================
   7. ANIMAZIONI (SCROLL REVEAL)
   ========================================= */
.reveal { opacity: 1; transform: none; }

.js .reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   8. OTTIMIZZAZIONE MOBILE
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    header { padding: 15px 20px; }
    .logo-img { height: 45px; } 

    nav {
        position: fixed; top: 0; right: 0; width: 85%; height: 100vh;
        background: var(--anthracite); padding: 100px 30px;
        transform: translateX(100%); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8); z-index: 1050; 
    }

    nav.active { transform: translateX(0); }
    nav ul { flex-direction: column; gap: 20px; align-items: flex-start; }
    nav ul li a { font-size: 1.2rem; }

    /* --- FIX DROPDOWN MOBILE --- */
    nav ul li.dropdown .dropdown-content {
        position: static;
        display: none;
        background: transparent;
        padding-left: 20px;
        box-shadow: none;
        border: none;
    }
    nav ul li.dropdown.show-dropdown .dropdown-content { display: block; }

    .menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .section { padding: 120px 20px 60px; min-height: auto; }

    .huge-title {
        font-size: 2.2rem !important; 
        line-height: 1.15;
        margin-bottom: 20px;
        hyphens: none !important; 
        word-break: normal !important;
    }

    .grid-3 { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================
   9. SLIDER COMPAGNIE (LOGHI A COLORI)
   ========================================= */
.logos-slider {
    overflow: hidden;
    padding: 60px 0;
    background: transparent;
    position: relative;
    width: 100%;
}

.logos-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 40s linear infinite;
    align-items: center;
}

.logo-item {
    flex: 0 0 220px;
    padding: 0 40px;
    filter: none; 
    opacity: 1;
    transition: transform 0.4s;
}

.logo-item:hover { transform: scale(1.1); }

.logo-item img {
    max-height: 45px;
    max-width: 100%;
    object-fit: contain;
}

@keyframes scrollLogos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================================
   10. PARTNER PAGAMENTO E GRIGLIE
   ========================================= */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.payment-item {
    background: #ffffff; 
    border-radius: 4px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: none; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.payment-item:hover { 
    transform: translateY(-12px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.1);
}

.payment-item img { 
    max-height: 40px; 
    max-width: 100%; 
    object-fit: contain; 
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.partner-card {
    background: var(--pure-white);
    padding: 45px 35px;
    text-align: center;
    border: 1px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.partner-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.partner-card h3 { color: var(--black); font-size: 1.25rem; margin-bottom: 15px; }
.partner-card p { color: #555; font-size: 0.95rem; line-height: 1.5; }

/* =========================================
   11. ICONE E FORM CONTATTI
   ========================================= */
.icon-box {
    background: var(--black);
    color: var(--white);
    width: 60px; height: 60px;
    margin: 0 auto 25px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 2px;
}

.icon-box i { font-size: 1.5rem; font-style: normal; }

.partner-form {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 60px;
}

.form-group { margin-bottom: 30px; }
.form-group label {
    display: block; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    color: var(--steel); 
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif !important;
}

.form-control {
    width: 100%; 
    background: transparent; 
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 12px 0; 
    color: var(--white); 
    font-size: 1.1rem;
    transition: 0.3s;
    font-family: 'Inter', sans-serif !important;
}

.form-control:focus { 
    outline: none; 
    border-bottom-color: var(--white); 
}


/* =========================================
   12. FOOTER (FIX MOBILE & DESKTOP)
   ========================================= */
.main-footer {
    background: var(--black);
    padding: 80px 0 0; /* Rimosso padding laterale per gestire meglio i container */
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px 60px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-col h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: var(--steel);
    font-size: 0.9rem;
}

.brand-col .footer-logo { height: 45px; margin-bottom: 25px; }
.brand-col .footer-vision { 
    color: var(--steel); 
    font-size: 0.9rem; 
    max-width: 320px; 
    margin-bottom: 25px; 
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Riga orizzontale su Desktop */
.footer-bottom .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    gap: 20px;
}

.legal-info { 
    color: var(--steel); 
    font-size: 0.75rem; 
    line-height: 1.5;
}

.copyright { 
    color: var(--steel); 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    white-space: nowrap;
}

/* =========================================
   FIX SPECIFICO PER MOBILE (Screenshot Error)
   ========================================= */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; /* Una colonna sola */
        padding: 0 30px 50px;
        text-align: left; /* Allineamento pulito a sinistra come da brand */
        gap: 40px;
    }

    .brand-col .footer-logo {
        height: 40px;
        margin-bottom: 20px;
    }

    .footer-bottom .footer-container {
        flex-direction: column; /* Impila gli elementi */
        align-items: flex-start; /* Allinea a sinistra */
        padding: 30px 30px;
        gap: 30px;
    }

    .legal-info {
        text-align: left;
        width: 100%;
        order: 1; /* Info legali sopra */
    }

    .copyright {
        text-align: left;
        width: 100%;
        order: 2; /* Copyright sotto */
        white-space: normal; /* Permette il ritorno a capo su schermi piccoli */
    }
    
    /* Correzione per il widget Trustpilot se presente nel bottom */
    .trustpilot-widget {
        order: 0; 
        margin-bottom: 10px;
    }
}



	

/* =========================================================================
   13. REVISIONE 03/09/2026
   Accessibilita', consenso cookie, rifiniture. Aggiunto in coda per non
   alterare le regole preesistenti.
   ========================================================================= */

/* --- Il menu e' un <button>: va ripulito dagli stili predefiniti --- */
.menu-toggle {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
}

/* --- Focus sempre visibile (A11Y-09) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- La tendina Prodotti si apre anche da tastiera (A11Y-04) --- */
nav ul li.dropdown:focus-within .dropdown-content { display: block; }

/* --- Salta al contenuto --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--white);
    color: var(--black);
    padding: 14px 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
}

/* --- Pagina corrente evidenziata nel menu --- */
nav ul li a[aria-current="page"] { color: var(--white); }
nav ul li a[aria-current="page"]:not(.nav-reserved) { border-bottom: 1px solid var(--white); padding-bottom: 3px; }

/* --- Icone social del footer --- */
.footer-socials { display: flex; gap: 18px; }
.footer-socials a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--steel);
    border-radius: 2px;
    transition: 0.3s;
}
.footer-socials a:hover { border-color: var(--white); color: var(--white); }
.rui-link { color: var(--steel); font-weight: 700; text-decoration: underline; }
.rui-link:hover { color: var(--white); }

/* --- Numeri di telefono cliccabili (A11Y-05) --- */
a[href^="tel:"] { color: inherit; border-bottom: 1px solid rgba(255,255,255,0.25); }
a[href^="tel:"]:hover { border-bottom-color: var(--white); }

/* =========================================================================
   BANNER CONSENSO COOKIE
   ========================================================================= */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 780px;
    background: var(--pure-white);
    color: #1a1a1a;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    z-index: 3000;
    animation: cookieSu 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSu {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { animation: none; }
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 26px 30px;
}

.cookie-titolo {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #000;
}

.cookie-copy p { font-size: 0.88rem; line-height: 1.55; color: #444; margin: 0; }
.cookie-copy a { color: #000; font-weight: 700; text-decoration: underline; }

.cookie-azioni { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 30px;
    border-radius: 3px;
    cursor: pointer;
    transition: 0.25s;
    white-space: nowrap;
}
/* Accetta e Rifiuta hanno lo stesso rilievo, come richiesto dalle
   linee guida cookie del Garante di giugno 2021. */
.cookie-accetta { background: #000; color: #fff; border: 1px solid #000; }
.cookie-accetta:hover { background: #333; border-color: #333; }
.cookie-rifiuta { background: #fff; color: #000; border: 1px solid #000; }
.cookie-rifiuta:hover { background: #f0f0f0; }
.cookie-btn:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.cookie-prefs-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--steel);
    font-family: 'Inter', sans-serif;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: underline;
    cursor: pointer;
}
.cookie-prefs-link:hover { color: var(--white); }

@media (max-width: 768px) {
    .cookie-inner { flex-direction: column; align-items: stretch; gap: 20px; padding: 22px; }
    .cookie-azioni { flex-direction: row; }
    .cookie-btn { flex: 1; padding: 14px 10px; }
}

/* =========================================================================
   CAROSELLO COMPAGNIE - maschera laterale e rispetto delle preferenze moto
   ========================================================================= */
.logos-slider {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-slider:hover .logos-track { animation-play-state: paused; }
.logo-item img { max-height: 42px; width: auto; }

@media (prefers-reduced-motion: reduce) {
    .logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* --- Esito invio form ---------------------------------------------------- */
.form-status {
    display: none;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 3px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}
.form-status.is-ok { background: rgba(76,175,80,0.12); border: 1px solid rgba(76,175,80,0.45); color: #7ede82; }
.form-status.is-ko { background: rgba(244,67,54,0.10); border: 1px solid rgba(244,67,54,0.40); color: #ff8a80; }

/* --- Honeypot: invisibile agli umani, compilato dai bot ------------------- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* --- Documento non ancora pubblicato: si richiede, non si finge un download --- */
.btn-download.btn-richiesta { background: transparent; color: var(--white); border: 1px solid var(--steel); }
.btn-download.btn-richiesta:hover { background: var(--white); color: var(--black); border-color: var(--white); }
