/* ============================================
   ZONZINI STAIRCLIMBERS - MAIN STYLES
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text);
    background-color: var(--color-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 0 !important;  /* Mai padding-top, header è overlay */
    margin: 0;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   TYPOGRAPHY - H ELEMENTS
   Tutti uppercase + Poppins ExtraBold
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 800; /* ExtraBold */
    line-height: var(--line-height-heading);
    color: var(--color-text);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

h1 {
    font-size: var(--font-size-h1);
    letter-spacing: var(--letter-spacing-tight);
    line-height: var(--line-height-tight);
}

h2 {
    font-size: var(--font-size-h2);
    letter-spacing: var(--letter-spacing-tight);
}
@media (max-width: 768px) {
    h2 {
        font-size: 1.75rem; /* 28px */
        line-height: 1; /* 28px */
    }
}

h3 {
    font-size: var(--font-size-h3);
}

@media (max-width: 768px) {
    h3 {
        line-height: var(--line-height-h3-mobile, 1);
    }
}

h4 {
    font-size: var(--font-size-h4);
}

h5 {
    font-size: var(--font-size-h5);
}

h6 {
    font-size: var(--font-size-h6);
}

p {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular); /* 400 - Regular */
    margin-bottom: var(--space-md);
}


.lead {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: var(--font-size-lead);
    line-height: var(--line-height-lead);
}

@media (max-width: 768px) {
    .lead {
        font-size: 20px;
        line-height: 26px;
    }
}

.text-cream {
    color: var(--color-cream);
}

p:last-child {
    margin-bottom: 0;
}

/* Font Serif per testi speciali */
.font-serif {
    font-family: var(--font-secondary);
}

/* Small text */
small,
.small {
    font-size: var(--font-size-small);
}

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

/* ============================================
   LINKS
   ============================================ */

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */

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

img {
    border-style: none;
}

figure {
    margin: 0;
}

figcaption {
    font-size: var(--font-size-small);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

/* ============================================
   HEADER
   Trasparente, tutto allineato a sinistra
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 var(--layout-margin); /* Rimosso padding top */
    background: transparent !important;
    background-color: transparent !important;
    height: auto !important;
    box-shadow: none !important;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none;
}

.site-header.scrolled .menu-toggle {
        width: 32px;
}

/* Rimuove container wrapper se presente */
.site-header > .container {
    max-width: none;
    padding: 0;
}

/* Nasconde elementi del vecchio header */
.site-header .main-nav,
.site-header .header-actions .lang-switcher,
.site-header .header-actions .header-cta,
.site-header .nav-menu {
    display: none !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Tutto a sinistra */
    max-width: none;
    margin: 0;
    height: auto;
    gap: var(--space-md); /* Ridotto */
}

.home-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all var(--transition-base);
}

.home-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Header-left - TRASPARENTE di default */
.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg); /* Ridotto da space-lg */
    background-color: transparent;
    padding: 12px 15px 8px; /* Più stretto */
    border-radius: 0 0 12px 12px;
    position: relative;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}

/* Quando si scrolla - linguetta ROSSA attaccata al top + logo ridotto */
.site-header.scrolled .header-left,
.home-header.scrolled .header-left {
    background-color: var(--color-primary); /* Rosso */
    padding: 10px 18px 6px; /* Più stretto */
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    gap: var(--space-xs); 
}

/* Logo ridotto del 40% su scroll */
.site-header.scrolled .site-logo img,
.home-header.scrolled .site-logo img {
    transform: scale(0.8);
}

.site-logo img {
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.home-header .header-left {
    display: flex;
    align-items: center;
    gap: var(--space-md); /* Ridotto */
    background-color: transparent;
    padding: 12px 15px 8px; /* Più stretto */
    border-radius: 0 0 12px 12px;
    margin: 0;
    position: relative;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
}

/* Gruppo elementi header tutti a sinistra */
.header-left-group {
    display: flex;
    align-items: center;
    gap: var(--space-md); /* Ridotto */
}

/* Supporto vecchio header: riordina elementi */
.site-header .header-actions {
    order: -1;  /* Mette hamburger prima */
    margin-right: var(--space-md);
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 30px;
    width: auto;
    /* Forza bianco con filter se SVG non è già bianco */
    filter: brightness(0) invert(1);
}

/* Contact Icon - busta bianca senza cerchio */
.header-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: opacity var(--transition-fast);
}

.header-contact:hover {
    opacity: 0.7;
    color: white;
}

.header-contact svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* ============================================
   MENU TOGGLE - Hamburger 2 linee
   Supporta sia nuova struttura (menu-line-1/2) 
   che vecchia (3 span anonimi)
   ============================================ */

.menu-toggle {
    width: 48px;
    height: 48px;
    background: transparent !important;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* Allinea a sinistra */
    justify-content: center;
    gap: 8px;
    padding: 12px;
    transition: all var(--transition-fast);
}

.menu-toggle:hover {
    opacity: 0.7;
}

/* Stile per span (vecchio e nuovo formato) */
.menu-toggle span,
.menu-line {
    display: block;
    height: 2px;
    background: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Prima linea - larghezza piena */
.menu-toggle span:first-child,
.menu-line-1 {
    width: 24px;
}

/* Seconda linea - 20% più corta */
.menu-toggle span:nth-child(2),
.menu-line-2 {
    width: 19px; /* 24px - 20% = 19.2px ≈ 19px */
}

/* Terza linea (vecchio formato) - NASCOSTA */
.menu-toggle span:nth-child(3) {
    display: none !important;
}

/* Stato attivo: diventa X */
.menu-toggle.active span:first-child,
.menu-toggle.active .menu-line-1 {
    width: 24px;
    transform: rotate(45deg) translate(3.5px, 3.5px);
}

.menu-toggle.active span:nth-child(2),
.menu-toggle.active .menu-line-2 {
    width: 24px;
    transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* ============================================
   FULLSCREEN MENU - AGGIORNATO
   Sfondo grigio, font 800, riempie TUTTA l'altezza
   
   SOSTITUIRE in main.css le righe 386-502
   ============================================ */

.fullscreen-menu {
    position: fixed;
    inset: 0;
    background: var(--color-secondary); /* Grigio #262626 */
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fullscreen-menu.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-menu-inner {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 80px var(--layout-margin) 30px;
    gap: var(--page-edge-gap);
}

.menu-left {
    flex: 3;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* AGGIUNGI */
    padding-right: var(--space-sm); /* AGGIUNGI - spazio per scrollbar */
}

.menu-right {
    flex: 1;
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    margin: calc(var(--page-edge-gap) - 80px) calc(var(--page-edge-gap) - var(--layout-margin)) calc(var(--page-edge-gap) - 30px) 0;
    padding: var(--page-edge-gap);
    display: flex;
    flex-direction: column;
    color: white;
    text-align: right;
    align-items: flex-end;
}

.menu-right .menu-lang {
    padding-top: 0;
    margin-bottom: var(--space-xl);
    justify-content: flex-end;
}

.menu-right .menu-lang a {
    color: rgba(255, 255, 255, 0.6);
}

.menu-right .menu-lang a:hover,
.menu-right .menu-lang a.active {
    color: white;
}

.menu-reserved {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 500;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-body);
}

.menu-reserved,
.menu-email {
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.menu-reserved:hover,
.menu-email:hover {
    text-decoration: underline;
    opacity: 1;
    color: white;
}
.menu-logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.menu-logo img {
    max-width: 80%;
    height: auto;
    filter: brightness(0) invert(1);
    transform: scale(1.5);
    transform-origin: right center;
}
.menu-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-h4);
    font-weight: 800;
    text-transform: uppercase;
    line-height: var(--line-height-tight);
    color: white;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-h3);
}

.menu-footer {
    margin-top: auto;
    padding-bottom: 15px;
}

.menu-email {
    display: block;
    font-size: var(--font-size-small);
    color: white;
    text-decoration: none;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-body);
}

.menu-social {
    display: flex;
    gap: var(--space-lg);
}

.menu-social a svg {
    width: 28px;
    height: 28px;
}

.menu-social a {
    color: white;
    transition: opacity var(--transition-fast);
}

.menu-social a:hover {
    opacity: 0.7;
}


/* ============================================
   HEADER QUANDO MENU È APERTO
   ============================================ */

   body.menu-open .site-header {
    pointer-events: none;
}

body.menu-open .menu-toggle {
    pointer-events: auto;
}

/* Header-left trasparente quando menu aperto */
body.menu-open .header-left {
    background-color: transparent !important;
}

/* Nascondi logo e icona contatti quando menu aperto */
body.menu-open .site-logo,
body.menu-open .header-contact {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Menu Navigation - riempie TUTTA l'altezza */
.menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: none; /* CAMBIA da flex: 1 a flex: none */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.menu-nav li {
    line-height: 1;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 10px;
    margin-bottom: 10px;

        background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 8px 4px;
    background-position: bottom left;
    background-repeat: repeat-x;
}

.fullscreen-menu.active .menu-nav li {
    opacity: 1;
    transform: translateX(0);
}

/* Delay scaglionato per ogni voce */
.fullscreen-menu.active .menu-nav li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-menu.active .menu-nav li:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-menu.active .menu-nav li:nth-child(3) { transition-delay: 0.2s; }
.fullscreen-menu.active .menu-nav li:nth-child(4) { transition-delay: 0.25s; }
.fullscreen-menu.active .menu-nav li:nth-child(5) { transition-delay: 0.3s; }
.fullscreen-menu.active .menu-nav li:nth-child(6) { transition-delay: 0.35s; }
.fullscreen-menu.active .menu-nav li:nth-child(7) { transition-delay: 0.4s; }
.fullscreen-menu.active .menu-nav li:nth-child(8) { transition-delay: 0.45s; }

.menu-nav > li > a {
    font-family: var(--font-primary);
    /* Font size dinamico: 100vh - padding (110px) diviso 9 voci circa */
     font-size: calc((100vh - 110px) / 11);
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.85;
    display: inline-block;
    position: relative;
    transition: opacity var(--transition-fast);
}

/* Highlight effect on hover - reveal */
.menu-nav > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    right: -8px;
    bottom: 0;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.menu-nav > li > a::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-secondary);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.3s ease;
    z-index: 2;
}

.menu-nav > li > a:hover::before {
    transform: scaleX(1);
}

.menu-nav > li > a:hover::after {
    clip-path: inset(0 0 0 0);
}

/* Language Switcher nel menu */
.menu-lang {
    padding-top: 20px;
    display: flex;
    gap: var(--space-md);
}

.menu-lang a {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition-fast);
}

.menu-lang a:hover,
.menu-lang a.active {
    color: white;
}

/* ============================================
   RESPONSIVE FULLSCREEN MENU
   ============================================ */

@media (max-width: 768px) {
    .fullscreen-menu-inner {
        padding-top: 80px;
    }

}

@media (max-height: 600px) {
    
    .menu-lang {
        padding-top: var(--space-md);
    }
}




/* ============================================
   LISTS
   ============================================ */

ul,
ol {
    list-style: none;
}

/* Liste con stile */
.list-styled {
    padding-left: var(--space-lg);
}

.list-styled li {
    position: relative;
    margin-bottom: var(--space-sm);
}

ul.list-styled li::before {
    content: '';
    position: absolute;
    left: calc(var(--space-lg) * -1);
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

ol.list-styled {
    counter-reset: list-counter;
}

ol.list-styled li {
    counter-increment: list-counter;
}

ol.list-styled li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: calc(var(--space-lg) * -1);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
}



/* ============================================
   BUTTONS SYSTEM
   Classi: btn btn-{colore} btn-{dimensione}
   Colori: grey, white, red (in base allo sfondo)
   Dimensioni: big, small
   ============================================ */

.btn {
    display: inline-flex;
    align-items: stretch;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    position: relative;
}

.btn-text {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
    border-radius: 4px 0 0 4px;
}

.btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 4px 4px 0;
    margin-left: -1px;
}

/* Triangolo diagonale */
.btn-arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: -1px;
    bottom: 0;
    width: 20px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 1;
}

.btn-arrow svg {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    stroke-width: 3;
}

/* Hover: freccia esce da sopra, rientra da sotto */
.btn:hover .btn-arrow svg {
    animation: arrowLoop 0.4s ease forwards;
}

@keyframes arrowLoop {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    49% {
        transform: translate(50%, -50%);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, 50%);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}


/* Button reset per form */
button.btn {
    border: none;
    background: none;
    cursor: pointer;
}

/* Form field più compatto */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.form-field label {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* ============================================
   DIMENSIONI
   ============================================ */

/* Big */
.btn-big {
    font-size: var(--font-size-body);
}

.btn-big .btn-text {
    padding: 16px 32px;
}

.btn-big .btn-arrow {
    padding: 16px 20px 16px 28px;
}

.btn-big .btn-arrow svg {
    width: 28px;
    height: 28px;
}

/* Small */
.btn-small {
    font-size: var(--font-size-small);
}

.btn-small .btn-text {
    padding: 10px 20px;
}

.btn-small .btn-arrow {
    padding: 10px 14px 10px 20px;
}

.btn-small .btn-arrow svg {
    width: 22px;
    height: 22px;
}

/* Mobile: btn-big diventa come btn-small */
@media (max-width: 768px) {
    .btn-big {
        font-size: var(--font-size-small);
    }
    
    .btn-big .btn-text {
        padding: 10px 20px;
    }
    
    .btn-big .btn-arrow {
        padding: 10px 14px 10px 20px;
    }
    
    .btn-big .btn-arrow svg {
        width: 22px;
        height: 22px;
    }
}

/* ============================================
   VARIANTI COLORE (in base allo sfondo)
   ============================================ */

/* Su sfondo GRIGIO/NERO */
.btn-grey .btn-text {
    background: var(--color-primary);
    color: white;
}

.btn-grey .btn-arrow {
    background: white;
}

.btn-grey .btn-arrow::before {
    background: var(--color-primary);
}

.btn-grey .btn-arrow svg {
    stroke: var(--color-secondary);
}

/* Su sfondo BIANCO */
.btn-white .btn-text {
    background: var(--color-primary);
    color: white;
}

.btn-white .btn-arrow {
    background: var(--color-secondary);
}

.btn-white .btn-arrow::before {
    background: var(--color-primary);
}

.btn-white .btn-arrow svg {
    stroke: white;
}

/* Su sfondo ROSSO */
.btn-red .btn-text {
    background: white;
    color: var(--color-primary);
}

.btn-red .btn-arrow {
    background: var(--color-secondary);
}

.btn-red .btn-arrow::before {
    background: white;
}

.btn-red .btn-arrow svg {
    stroke: white;
}



/* ============================================
   LAYOUT - BOXED
   ============================================ */

.boxed {
    padding-left: var(--layout-margin);
    padding-right: var(--layout-margin);
}

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

.container-narrow {
    max-width: var(--container-narrow);
}

.container-wide {
    max-width: var(--container-wide);
}

.container-fluid {
    max-width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
}

.section-sm {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.section-lg {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
}

/* Background variants */
.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: var(--color-text-inverse);
}

.section-gray {
    background-color: var(--color-bg-alt);
}

.section-primary {
    background-color: var(--color-primary);
    color: var(--color-text-inverse);
}

.section-primary h1,
.section-primary h2,
.section-primary h3,
.section-primary h4,
.section-primary h5,
.section-primary h6 {
    color: var(--color-text-inverse);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-primary);
    position: relative;
    z-index: 10;
    padding: var(--layout-margin) var(--layout-margin) 0;
    position: relative;
    padding-bottom: calc(var(--layout-margin) + 17px);
    /*border-radius: var(--radius-xl) var(--radius-xl) 0 0;*/
    border-radius: var(--radius-xl);
}

.footer-mega{
  padding: 0;
  line-height: 0;           /* evita che il contenitore aggiunga spazio */
}

.mega-title-svg {
    width: 100%;
    height: auto;
    display: block;
}

.footer-mega {
    padding: 0 0 var(--layout-margin);
}

.site-footer.has-bottom-accent{
        box-shadow: inset 0 -20px 0 0 var(--color-success);
        margin: var(--layout-margin); /*da togliere?????*/
}



/* ============================================
   CONTACT SECTION - Sfondo grigio, container crema
   ============================================ */

.contact-section {
    background-color: var(--color-secondary); /* era var(--color-primary) */
    padding: var(--space-4xl) var(--layout-margin);
    position: relative;
    z-index: 10;
}

.contact-inner {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow: 
        0 8px 16px -2px rgba(0, 0, 0, 0.2),
        0 20px 40px -10px rgba(0, 0, 0, 0.3),
        0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.contact-text {
    margin-bottom: var(--space-2xl);
}

.contact-text h3 {
    font-family: var(--font-secondary);
    font-size: 50px;
    line-height: 1.15;
    font-weight: 400;
    font-style: italic;
    color: var(--color-secondary);
    text-transform: none;
    margin: 0 0 var(--space-md);
}

@media (max-width: 768px) {
    .contact-text h3 {
        font-size: 28px;
        line-height: 33px;
    }
}

.contact-text p {
    color: var(--color-secondary);
    margin: 0;
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

/* Riga con 2 campi */
.contact-form-row:nth-child(2) {
    grid-template-columns: repeat(2, 1fr);
}

.form-field-full {
    grid-column: 1 / -1;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-form .form-field label {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    padding: 4px 0;
    border: none;
    background: transparent;
    color: var(--color-secondary);
    background-image: radial-gradient(circle, rgba(38, 38, 38, 0.3) 1px, transparent 1px);
    background-size: 8px 4px;
    background-position: bottom left;
    background-repeat: repeat-x;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-secondary);
    opacity: 0.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background-image: radial-gradient(circle, rgba(38, 38, 38, 0.8) 1px, transparent 1px);
}

.contact-form-footer {
    margin-top: var(--space-xl);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-form-row:nth-child(1) .form-field:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: var(--space-2xl) var(--layout-margin);
    }
    
    .contact-inner {
        padding: var(--space-2xl) var(--space-lg);
    }
    
    .contact-form-row,
    .contact-form-row:nth-child(2) {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}


.newsletter-box {
    background: var(--color-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-2xl);
}

.newsletter-text {
    margin-bottom: var(--space-lg);
}

.newsletter-text h3 {
    font-size: var(--font-size-body);
    font-weight: 700;
    color: white;
    margin: 0 0 var(--space-xs);
    text-transform: uppercase;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.newsletter-form {
    display: flex;
    align-items: flex-end;
    gap: var(--space-md);
    width: 100%;          /* ← aggiungi solo questa */
}

.newsletter-form .form-field {
    flex: 1;
}

.newsletter-form .btn,
.newsletter-privacy,
.newsletter-form .g-recaptcha {
    flex-shrink: 0;
}

.newsletter-form input {
    width: 100%;
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    border: none;
    background: transparent;
    color: white;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 8px 4px;
    background-position: bottom left;
    background-repeat: repeat-x;
    padding-bottom: var(--space-sm);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-size: var(--font-size-xs);
}

.newsletter-form input:focus {
    outline: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 1) 1px, transparent 1px);
}

.newsletter-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.newsletter-privacy label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    line-height: 1.3;
    white-space: nowrap;
}

.newsletter-privacy label a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.newsletter-privacy label a:hover {
    color: white;
}

/* reCAPTCHA compact nel footer */
.newsletter-form .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left center;
}


/* Companies Section */
.footer-companies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}


.footer-company h6, .footer-menu-col h6 {
    color: white;
    margin-top: var(--space-5xl);
    margin-bottom: var(--space-3xl);
}

.footer-company h4 {
    font-size: var(--font-size-small);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.footer-company address,
.footer-company p {
    font-style: normal;
    color: rgba(255, 255, 255, 1);
    margin-bottom: var(--space-md);
}

.footer-company a {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.footer-company a:hover {
    color: white;
}

.footer-legal {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Menu Section */
.footer-menu {
    margin-bottom: var(--space-4xl);
}

.footer-menu-col h4 {
    font-size: var(--font-size-small);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    margin-top: var(--space-lg);
}

.footer-menu-col h4:first-child {
    margin-top: 0;
}

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

.footer-menu-col li {
    margin-bottom: var(--space-xs);
}

.footer-menu-col a {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.footer-menu-col a:hover {
    color: white;
}

/* Social + Lang Row */
.footer-social-lang {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3xl);
    margin-top: var(--space-5xl);
}

.footer-social {
    display: flex;
    gap: var(--space-xl);
}

.footer-social svg {
    width: 36px;
    height: 36px;
}

.footer-social a {
    color: white;
    transition: opacity var(--transition-fast);
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-lang {
    display: flex;
    gap: var(--space-md);
}

.footer-lang a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-lang a:hover,
.footer-lang a.active {
    color: white;
}

/* Info Row */
.footer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-label {
    color: rgba(255, 255, 255, 1);
}

.footer-email {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-email:hover {
    color: white;
}

/* Mega Title */
.footer-mega {
    padding: 0;
}

.mega-line {
    font-family: var(--font-primary);
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
    display: block;
    height: 0.75em;
    overflow: visible;
}

/* ============================================
   FOOTER RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .newsletter-form {
        flex-wrap: wrap;
    }
    
    .newsletter-form .form-field {
        flex: 1 1 45%;
    }
}
@media (max-width: 768px) {
    .newsletter-box {
        padding: var(--space-lg) var(--space-lg);
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .newsletter-form .form-field {
        display: block;
        width: 100%;
        flex: none;
    }
    
    .newsletter-privacy {
        align-items: center;
    }
    
    .newsletter-privacy label {
        white-space: normal;
    }
    
    .newsletter-form .g-recaptcha {
        transform: scale(0.8);
    }
    
    .newsletter-text {
        text-align: left;
    }
}
@media (max-width: 1500px) {
    .newsletter-form {
        flex-wrap: wrap;
    }
    
    .newsletter-form .form-field {
        flex: 1 1 40%;
    }
    
    .newsletter-privacy,
    .newsletter-form .btn {
        flex: 0 0 auto;
    }
}
@media (max-width: 768px) {
    .footer-companies {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
        margin-top: var(--space-3xl);
    }
    
    .footer-social-lang {
        flex-direction: column;
        gap: var(--space-xl);
        align-items: flex-start;
        margin-top: var(--space-2xl);
    }
    
    .footer-info-row {
        /*flex-direction: column;*/
        gap: var(--space-sm);
        text-align: left;
        margin-bottom: var(--space-2xl);
    }
    
    .mega-title {
        font-size: clamp(2rem, 12vw, 4rem);
        white-space: normal;
    }

    .footer-company h6, .footer-menu-col h6 {
        margin-bottom: var(--space-sm); /* 8px invece di 16px */
        margin-top: var(--space-md);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-background img,
.hero-background video {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.hero-title {
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: var(--font-size-large);
    color: var(--color-gray-300);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

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

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-white);
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.hero-scroll-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 2px;
    animation: scrollIndicator 2s infinite;
}

@keyframes scrollIndicator {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--font-size-h5);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--color-text-light);
    font-size: var(--font-size-body);
}

/* ============================================
   GRID UTILITIES
   ============================================ */

.grid {
    display: grid;
    gap: var(--space-lg);
}

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

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

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

@media (min-width: 576px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.font-weight-light { font-weight: var(--font-weight-light); }
.font-weight-normal { font-weight: var(--font-weight-regular); }
.font-weight-medium { font-weight: var(--font-weight-medium); }
.font-weight-semibold { font-weight: var(--font-weight-semibold); }
.font-weight-bold { font-weight: var(--font-weight-bold); }
.font-weight-extrabold { font-weight: 800; }

/* ============================================
   SPACING UTILITIES
   ============================================ */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-2xl); }

.py-1 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-2 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-3 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-4 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-5 { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }

/* ============================================
   VISIBILITY
   ============================================ */

.hidden {
    display: none !important;
}

.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;
}

/* ============================================
   DECORATION UTILITIES
   ============================================ */
.has-bottom-accent {
    box-shadow: inset 0 -12px 0 0 var(--color-success);
}

/* ============================================
   ANIMATIONS - BASE CLASSES
   ============================================ */

.fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.fade-in.in-view {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.slide-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   BODY OFFSET FOR FIXED HEADER
   ============================================ */

/* ============================================
   BODY - NESSUN OFFSET
   L'header è sempre fixed e trasparente
   ============================================ */

/* Le pagine con header trasparente NON devono avere padding-top sul body */
/* Il contenuto (hero, ecc.) gestisce internamente il proprio padding */

/* ============================================
   RESPONSIVE - HEADER MOBILE
   ============================================ */

@media (max-width: 768px) {
   .site-header {
        transition: transform 0.3s ease;
        padding: 0 var(--radius-sm);
    }

    .site-header.header-hidden {
        transform: translateY(-100%);
    }

    .site-header.header-visible .header-left {
        padding: 8px 12px 6px;
    }
    
    .site-header.header-hidden .header-left {
    box-shadow: none;
}

    .header-left {
        padding: 8px 12px 6px 0;
        gap: var(--space-md);
    }
    
    .site-logo img {
        height: 32px;
    }
    
    .header-contact svg {
        width: 20px;
        height: 20px;
    }
    
    .menu-toggle {
        width: 44px;
        height: 44px;
    }
    
    .menu-line-1 {
        width: 20px;
    }
    
    .menu-line-2 {
        width: 16px;
    }
    
    .menu-toggle.active .menu-line-1,
    .menu-toggle.active .menu-line-2 {
        width: 20px;
    }

    .header-contact {
        margin-left: 5px;
    }

    .header-contact svg {
        width: 23px;
        height: 23px;
    }
    /*.menu-nav li {
        padding: 2px 0;
    }*/

    .menu-reserved {
        margin-bottom: 10px;
    }
}


@media (max-width: 768px) {
    .fullscreen-menu-inner {
        flex-direction: column;
        padding: 80px 0 0;
        gap: 0;
    }
    
    .menu-left {
        flex: 1;
        padding: 0 var(--layout-margin) var(--space-xl);
        overflow-y: auto;
    }
    .menu-nav > li > a {
        font-size: clamp(1.2rem, 10vw, 2.5rem);
    }
    
    .menu-right {
        flex: none;
        margin: 0 var(--layout-margin) var(--layout-margin); /* margini laterali e sotto */
        border-radius: var(--radius-lg); /* 12px */
        padding: var(--space-lg) var(--space-lg);
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .menu-right .menu-lang {
        margin-bottom: var(--space-md);
        justify-content: flex-start;
    }
    
    .menu-right .menu-logo,
    .menu-right .menu-title,
    .menu-right .menu-footer {
        display: none;
    }

        body.menu-open .site-header.scrolled .header-left,
    body.menu-open .home-header.scrolled .header-left {
        background-color: transparent !important;
        box-shadow: none !important;
    }

}

@media (min-width: 992px) {
    .footer-companies {
        display: contents;
    }
    
    .site-footer {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-lg);
    }
    
    /* Newsletter: tutte le colonne */
    .footer-newsletter {
        grid-column: 1 / -1;
    }
    
    /* Company 1: colonna 1 */
    .footer-company:first-child {
        grid-column: 1;
    }
    
    /* Company 2: colonna 2 */
    .footer-company:last-child {
        grid-column: 2;
    }
    
    /* Menu: colonna 4 (destra) */
    .footer-menu {
        grid-column: 4;
        margin-bottom: 0;
    }
    
    /* Allinea verticalmente companies e menu */
    .footer-company,
    .footer-menu {
        grid-row: 2;
    }
    
    /* Le altre sezioni: tutte le colonne */
    .footer-social-lang,
    .footer-info-row,
    .footer-mega {
        grid-column: 1 / -1;
    }
}


/* ============================================
   SUBMENU PANEL - Cosa Trasporti
   ============================================ */
.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.submenu-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--color-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 0;
}

.submenu-panel > .submenu-grid {
    min-height: 0;
    overflow: hidden;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-submenu.open .submenu-panel {
    grid-template-rows: 1fr;
    margin-top: var(--space-md);
}

.has-submenu.open .submenu-grid {
    padding: var(--space-2xl); /* Padding solo quando aperto */
}

/*.has-submenu.open > a {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--color-secondary);
    padding: var(--space-sm) 0;
}*/

@media (max-width: 768px) {
    .submenu-panel > .submenu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        padding: 0;
    }
    
    .has-submenu.open .submenu-grid {
        padding: var(--space-md);
    }
    
    .submenu-item {
        padding-bottom: var(--space-md);
    }
    
    .submenu-img {
        width: 100%;
        max-width: none; /* Rimuove limite, prende tutta la larghezza */
        border-radius: var(--radius-md);
    }
}

.submenu-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-lg);
    background-color: var(--color-cream);
}

.submenu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Overlay gradient */
.submenu-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(38, 38, 38, 0.8) 0%,
        rgba(38, 38, 38, 0.2) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: var(--radius-lg);
}

.submenu-item:hover .submenu-overlay {
    opacity: 1;
}

/* Shine effect */
.submenu-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.submenu-item:hover .submenu-shine {
    animation: submenuShine 0.8s ease forwards;
}

@keyframes submenuShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

.submenu-item {
    display: block;
    text-decoration: none;
    padding-bottom: var(--space-lg); /* Spazio sotto ogni item */
}

.submenu-item:hover .submenu-img img {
    transform: scale(1.08);
}

.submenu-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.submenu-product {
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
}

.has-submenu.open > a::before {
    transform: scaleX(1);
}

.has-submenu.open > a::after {
    clip-path: inset(0 0 0 0);
}

/* Mobile */
@media (max-width: 768px) {
    .submenu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    
}


/* ============================================
   SUBMENU PRODOTTI
   ============================================ */
.submenu-prodotti-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    padding: 0;
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                visibility 0.3s ease;
}

.has-submenu.open .submenu-prodotti-inner {
    padding: var(--space-2xl);
    opacity: 1;
    visibility: visible;
}

.prodotti-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.prodotto-item {
    display: block;
    text-decoration: none;
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity var(--transition-fast);
}

.prodotto-item:last-child {
    border-bottom: none;
}

.prodotto-item:hover {
    opacity: 0.8;
}

.prodotto-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-lg);
    margin-bottom: var(--space-xs);
    flex-wrap: wrap;
}

.prodotto-nome {
    font-family: var(--font-primary);
    font-size: var(--font-size-h3);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    line-height: 1;
}

.prodotto-tipo {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.prodotto-caratteristiche {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--line-height-body);
    margin: 0;
}

/* Scopri di più - nascosto su desktop, visibile su hover */
.prodotto-scopri {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 600;
    color: white;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.prodotto-scopri svg {
    transition: transform 0.3s ease;
}

.prodotto-item:hover .prodotto-scopri {
    max-height: 30px;
    margin-top: var(--space-sm);
    opacity: 1;
}

.prodotto-item:hover .prodotto-scopri svg {
    transform: translateX(4px);
}

/* Immagine prodotto a destra */
.prodotti-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prodotto-img {
    position: absolute;
    max-width: 60%;
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prodotto-img.active {
    opacity: 1;
}

.prodotto-img:not(:first-child) {
    opacity: 0;
}

.prodotto-img.active {
    opacity: 1;
}

.prodotto-item .prodotto-nome {
    padding-left: 0;
    border-left: 0 solid white;
    transition: border-left-width 0.3s ease, padding-left 0.3s ease;
}

.prodotto-item:hover .prodotto-nome {
    padding-left: var(--space-md);
    border-left-width: 8px;
}

/* Mobile */
.prodotto-img-mobile {
    display: none;
}

@media (max-width: 768px) {
    .submenu-prodotti-inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .has-submenu.open .submenu-prodotti-inner {
        padding: var(--space-md);
    }
    
    .prodotti-image {
        display: none;
    }
    
    .prodotto-item {
        display: flex;
        gap: var(--space-md);
        align-items: flex-start;
    }
    
    .prodotto-img-mobile {
        display: block;
        width: 120px;
        height: auto;
        flex-shrink: 0;
    }
    
    .prodotto-content {
        flex: 1;
    }
    
    .prodotto-header {
        flex-direction: column;
        gap: var(--space-xs);
    }
    
    .prodotto-nome {
        font-size: var(--font-size-h4);
    }
    
/* Scopri di più sempre visibile su mobile */
    .prodotto-scopri {
        max-height: 30px;
        margin-top: var(--space-sm);
        opacity: 1;
    }
}



/* ============================================
   HIGHLIGHT TEXT SECTION
   Effetto evidenziazione riga per riga
   ============================================ */

.highlight-text-section {
    background: var(--color-secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
}

.highlight-text-section h2,
.highlight-text-section p {
    color: white;
    text-align: center;
}

.highlight-title {
    margin-bottom: var(--space-3xl);
}

.highlight-lead {
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}
.highlight-p {
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/*
.highlight-line-inner {
    display: inline-block;
    position: relative;
    overflow: hidden;
    clip-path: inset(0 100% 0 0);
}

.highlight-line-inner.animate {
    animation: highlight-clip-text 0.6s forwards;
}

.highlight-line-inner::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-primary);
    pointer-events: none;
    animation: none;
}

.highlight-line-inner.animate::after {
    animation: highlight-bg-reveal 0.5s 0.5s forwards;
}

.highlight-text-section .boxed {
    width: 100%;
}

.highlight-line-wrap {
    display: block;
    width: 100%;
    display: block;    
}
.lead .highlight-line-wrap {
    height: 60px;
}

@keyframes highlight-bg-reveal {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    50% {
        clip-path: inset(0 0% 0 0);
    }
    100% {
        clip-path: inset(0 0% 0 100%);
    }
}

@keyframes highlight-clip-text {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}*/

@media (max-width: 768px) {
    .highlight-text-section {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }
    
    .lead .highlight-line-wrap {
        height: 30px;
        text-align: left !important;
    }
    .highlight-lead, .highlight-p, .highlight-text-section h2 {
        max-width: 100%;
        text-align: left !important;
    }
}

/* ============================================
   HEADER SU SFONDO CHIARO
   Usa: bodyClass => 'page-light-bg'
   ============================================ */

/* Header trasparente su sfondo chiaro */
.page-light-bg .header-left {
    background-color: transparent !important;
}

/* Hamburger grigio */
.page-light-bg .menu-toggle span,
.page-light-bg .menu-toggle .menu-line,
.page-light-bg .menu-line {
    background-color: var(--color-secondary) !important;
}

/* Logo grigio (rimuove inversione bianca) */
.page-light-bg .site-logo img {
    filter: none !important;
}
/* Quando menu aperto su pagina light-bg, X deve essere bianca */
.page-light-bg.menu-open .menu-toggle span,
.page-light-bg.menu-open .menu-toggle .menu-line,
.page-light-bg.menu-open .menu-line {
    background-color: white !important;
}

/* Icona contatti grigia */
.page-light-bg .header-contact {
    color: var(--color-secondary) !important;
}

.page-light-bg .header-contact svg {
    stroke: var(--color-secondary) !important;
}

.page-light-bg .header-contact:hover {
    opacity: 0.6;
    color: var(--color-secondary) !important;
}

/* Quando si scrolla - torna normale (linguetta rossa + elementi bianchi) */
.page-light-bg .site-header.scrolled .header-left {
    background-color: var(--color-primary) !important;
}

.page-light-bg .site-header.scrolled .menu-toggle span,
.page-light-bg .site-header.scrolled .menu-toggle .menu-line,
.page-light-bg .site-header.scrolled .menu-line {
    background-color: white !important;
}

.page-light-bg .site-header.scrolled .site-logo img {
    filter: brightness(0) invert(1) !important;
}

.page-light-bg .site-header.scrolled .header-contact,
.page-light-bg .site-header.scrolled .header-contact svg {
    color: white !important;
    stroke: white !important;
}
.page-light-bg .site-logo img {
    filter: brightness(0.2) !important; /* Rende nero/grigio scuro */
}



/* ============================================
   FASCIA TÜV SÜD - Sfondo blu #0b253b
   ============================================ */

.azienda-tuv {
    padding: 0 0 var(--space-5xl);
    background: var(--color-white);
    position: relative;
    z-index: 55;
}

.azienda-tuv .container {
    max-width: none;
    width: calc(100% - (var(--layout-margin) * 2));
    margin: 0 var(--layout-margin);
    padding: calc(var(--space-4xl) * 2) var(--space-3xl);
    background: #0b253b;
    border-radius: var(--radius-xl);
}

.azienda-tuv__inner {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: var(--space-3xl);
    align-items: center;
}

.azienda-tuv__logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.azienda-tuv__logo svg {
    width: 100%;
    max-width: 420px;
    height: auto;
}

.azienda-tuv__content h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.azienda-tuv__content p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .azienda-tuv {
        padding: var(--space-3xl) 0;
    }
    
    .azienda-tuv .container {
        width: calc(100% - (var(--layout-margin-mobile) * 2));
        margin: 0 var(--layout-margin-mobile);
        padding: var(--space-2xl) var(--space-xl);
    }
    
    .azienda-tuv__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .azienda-tuv__logo {
        justify-content: flex-start;
    }
    
    .azienda-tuv__logo svg {
        max-width: 100px;
    }
    
    .azienda-tuv__content {
        text-align: left;
    }
}


/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.page-loader-logo {
    width: 120px;
    height: auto;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

.page-loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
}

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

/* Impedisci scroll durante loading */
body.is-loading {
    overflow: hidden;
}

/* ============================================
   FORM MESSAGES - Footer Contact Form
   ============================================ */

.form-messages {
    margin: var(--space-md) 0;
}

.form-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.form-message svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-message-success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message-success svg {
    stroke: #16a34a;
}

.form-message-error {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-message-error svg {
    stroke: #dc2626;
}

/* Form Checkbox - Footer */
.contact-form .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-form .form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.contact-form .form-checkbox label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-secondary);  /* Grigio chiaro */
    cursor: pointer;
}

.contact-form .form-checkbox label a {
    color: var(--color-secondary);  /* Grigio chiaro */
    text-decoration: underline;
}

.contact-form .form-checkbox label a:hover {
    color: var(--color-primary);
}

/* Loading Spinner */
.contact-form .form-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.contact-form .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   NOVELTY BADGE - Menu
   ============================================ */
.novelty-badge-menu {
    display: inline-block;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    background: #D20A11;
    padding: 7px 16px;
    border-radius: 18px;
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.novelty-badge-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: badgeShine 4s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    20%, 100% { left: 100%; }
}

/* ============================================================
   GOOGLE REVIEWS SECTION - DARK GLASSMORPHISM
   Desktop: 2 righe scrollabili con frecce + offset sfalsato
   Mobile: 1 riga scrollabile a swipe (tutte le recensioni)
   ============================================================ */

.google-reviews-section {
    margin: var(--layout-margin);
    position: relative;
    z-index: 10;
}

.google-reviews-inner {
    position: relative;
    width: 100%;
    background-color: var(--color-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-2xl);
    overflow: hidden;
}

.google-reviews-inner::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(
        ellipse at center,
        rgba(210, 10, 17, 0.12) 0%,
        rgba(210, 10, 17, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.google-reviews-inner::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.gr-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== HEADER ===== */

.gr-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.gr-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    margin-bottom: var(--space-md);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-cream);
}

.gr-google-icon { flex-shrink: 0; }

.gr-title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    color: var(--color-cream);
    margin: 0 0 10px;
}

.gr-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: rgba(246, 245, 238, 0.65);
    margin: 0 0 var(--space-md);
    font-weight: 400;
}

.gr-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.gr-stars { display: flex; gap: 3px; }
.gr-stars svg { width: 20px; height: 20px; }

.gr-rating-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(246, 245, 238, 0.7);
}

.gr-rating-text strong {
    font-weight: 700;
    color: var(--color-cream);
    font-size: 18px;
}

/* ============================================================
   CAROUSEL & FRECCE
   ============================================================ */

.gr-carousel {
    position: relative;
}

.gr-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Desktop: transform-based (no overflow) per max smoothness */
.gr-rows {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        black 40px,
        black calc(100% - 40px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        black 40px,
        black calc(100% - 40px),
        transparent 100%
    );
}

.gr-row {
    display: flex;
    gap: 16px;
    padding: 4px 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.gr-row:active {
    cursor: grabbing;
}

/* ===== Frecce desktop ===== */

.gr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-cream);
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gr-arrow:hover {
    background: var(--color-cream);
    color: var(--color-secondary);
    border-color: var(--color-cream);
    transform: translateY(-50%) scale(1.05);
}

.gr-arrow-prev { left: -8px; }
.gr-arrow-next { right: -8px; }

/* Loop infinito = frecce sempre attive */

.gr-arrow svg { display: block; }

/* ============================================================
   GLASS CARDS
   ============================================================ */

.gr-card {
    flex: 0 0 320px;
    width: 320px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

.gr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.gr-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 12px 32px rgba(0, 0, 0, 0.25);
}

.gr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.gr-stars-small { display: flex; gap: 2px; }
.gr-stars-small svg { width: 14px; height: 14px; }

.gr-flag {
    font-size: 16px;
    line-height: 1;
    opacity: 0.85;
}

/* ===== Contenuto + toggle ===== */

.gr-content-wrap {
    flex-grow: 1;
    margin-bottom: 16px;
}

.gr-content {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(246, 245, 238, 0.85);
    margin: 0;
}

/* Transizione morbida tra preview e full */
.gr-content-preview,
.gr-content-full {
    transition: opacity 0.4s ease, max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.gr-content-full {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.gr-content-preview {
    max-height: 200px;
    opacity: 1;
}

.gr-card[data-expanded="true"] .gr-content-preview {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.gr-card[data-expanded="true"] .gr-content-full {
    max-height: 800px;
    opacity: 1;
}

.gr-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--color-primary-light);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.gr-toggle-btn:hover {
    opacity: 0.75;
}

.gr-toggle-icon {
    transition: transform 0.3s ease;
}

.gr-card[data-expanded="true"] .gr-toggle-icon {
    transform: rotate(180deg);
}

/* ===== Author ===== */

.gr-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gr-author-info {
    flex-grow: 1;
    min-width: 0;
}

.gr-author-name {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-cream);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-author-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    color: rgba(246, 245, 238, 0.5);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Mobile: 1 sola riga, swipe nativo, card più strette */
@media (max-width: 768px) {
    .google-reviews-inner {
        padding: var(--space-2xl) 0;
    }

    .gr-header {
        padding: 0 var(--space-lg);
    }

    .gr-title {
        font-size: 26px;
    }

    .gr-subtitle {
        font-size: 14px;
    }

    /* Frecce nascoste su mobile (c'è già il swipe) */
    .gr-arrow {
        display: none;
    }

    /* Mobile: 1 sola riga (concatena top + bottom in una riga visibile) */
    .gr-rows {
        flex-direction: column;
        gap: 14px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Mobile: 1 sola riga con loop infinito + snap */
    .gr-rows {
        gap: 0;
    }

    .gr-row-bottom {
        display: none;
    }

    .gr-row {
        gap: 14px;
        padding: 4px var(--space-lg);
    }

    .gr-card {
        flex: 0 0 80%;
        width: 80%;
        min-width: 280px;
        max-width: 340px;
        padding: 20px;
    }


}

/* Mobile piccolo */
@media (max-width: 480px) {
    .gr-card {
        flex: 0 0 85%;
        width: 85%;
    }
}