/* ==========================================================================
   GLOBO LIGHTING v3 — Design System
   Concept: Editoriale bianco, tipografia monumentale Ubuntu, accento sabbia
   Palette: #FFFFFF | #F5F3EE (warm white) | #D4B896 (sabbia) | #2A2A2A | #888
   Font: Ubuntu 300/400/500/700 (font ufficiale del brand reale)
   Firma: numeri indicizzati giganti + ticker orizzontale
   ========================================================================== */

:root {
    --white:      #FFFFFF;
    --warm:       #F5F3EE;
    --warm2:      #EDEAE4;
    /* Nero protagonista. Il giallo brand resta solo come micro-accento. */
    --sand:       #1A1A1A;  /* ex-fill: ora nero (campi, bordi forti) */
    --sand-dark:  #6F6F6F;  /* ex-accent-text: ora grigio neutro */
    --accent:     #F0E000;  /* giallo brand — SOLO micro-dettagli */
    --black:      #1A1A1A;
    --dark:       #2A2A2A;
    --mid:        #666666;
    --light:      #AAAAAA;
    --border:     #E0DDD8;
    --border-dark: #C8C8C0;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);
    --t:          all 0.5s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.gl3-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.gl3-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.gl3-nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.gl3-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--black);
}

.gl3-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.gl3-logo-footer { height: 64px; }

.gl3-brand-mark {
    width: 36px;
    height: 36px;
    border: 1px solid var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--sand-dark);
    flex-shrink: 0;
}

.gl3-brand-footer .gl3-brand-mark { border-color: rgba(212,184,150,0.4); }

.gl3-brand-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.3;
    color: var(--black);
}

.gl3-brand-sub { font-weight: 300; opacity: 0.55; }

/* Nav links */
.gl3-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
}

.gl3-nl {
    display: block;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.25s;
    position: relative;
}

.gl3-nl::after {
    content: '';
    position: absolute;
    bottom: 0; left: 16px; right: 16px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.gl3-nl:hover, .gl3-nl.is-active { color: var(--black); }
.gl3-nl:hover::after, .gl3-nl.is-active::after { transform: scaleX(1); }

.gl3-nl-cta {
    display: block;
    margin-left: 8px;
    padding: 8px 22px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--white);
    background: var(--black);
    text-decoration: none;
    transition: var(--t);
}

.gl3-nl-cta:hover, .gl3-nl-cta.is-active { background: var(--dark); color: var(--white); }

/* Hamburger */
.gl3-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.gl3-hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--black);
    transition: var(--t);
}

/* ==========================================================================
   HERO — Tipografia monumentale
   ========================================================================== */
.gl3-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 32px 80px;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.gl3-hero-label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: 32px;
}

.gl3-hero-label span { margin: 0 8px; opacity: 0.5; }

.gl3-hero-headline {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0;
}

.gl3-hero-word { display: block; overflow: hidden; }

/* Ogni parola si rivela dal basso */
.gl3-hw-1 { animation: wordUp 0.9s var(--ease) 0.1s both; }
.gl3-hw-2 { animation: wordUp 0.9s var(--ease) 0.22s both; }

.gl3-dot { color: var(--accent); }
.gl3-hw-3 { animation: wordUp 0.9s var(--ease) 0.34s both; }
.gl3-hw-4 { animation: wordUp 0.9s var(--ease) 0.46s both; }

@keyframes wordUp {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gl3-hero-sub {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: wordUp 0.9s var(--ease) 0.6s both;
}

.gl3-hero-sub p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--mid);
    max-width: 380px;
    line-height: 1.7;
    margin: 0;
}

/* Ticker orizzontale (firma) */
.gl3-hero-ticker {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--border-dark);
    pointer-events: none;
}

.gl3-hero-ticker span {
    display: inline-block;
    animation: ticker 18s linear infinite;
}

.gl3-hero-ticker span:nth-child(2) { animation-delay: -9s; }

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

/* ==========================================================================
   NUMERI
   ========================================================================== */
.gl3-numbers {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.gl3-numbers-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.gl3-number-item {
    padding: 48px 32px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.gl3-number-item:last-child { border-right: none; }

.gl3-number-val {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1;
}

.gl3-number-val sup {
    font-size: 0.45em;
    font-weight: 400;
    vertical-align: super;
    color: var(--accent);
}

.gl3-number-lbl {
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--mid);
    margin-top: 10px;
    text-transform: uppercase;
}

/* ==========================================================================
   SEZIONE EDITORIALE (Filosofia)
   ========================================================================== */
.gl3-editorial {
    background: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.gl3-editorial-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.gl3-ed-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 24px;
    margin-bottom: 64px;
    border-bottom: 1px solid var(--border-dark);
}

.gl3-ed-head .gl3-caption { margin-bottom: 0; }

.gl3-ed-head-label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--light);
}

.gl3-ed-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    position: relative;
    z-index: 1;
    align-items: start;
}

.gl3-ed-left .gl3-section-title { font-size: clamp(2rem, 3.6vw, 3.4rem); }

.gl3-ed-left, .gl3-ed-right { display: flex; flex-direction: column; justify-content: flex-start; }

/* ==========================================================================
   SEZIONI GENERICHE
   ========================================================================== */
.gl3-section { padding: 100px 0; }
.gl3-section-white { background: var(--white); }
.gl3-section-warm  { background: var(--warm); }

.gl3-section-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
}

.gl3-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
.gl3-caption {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: 12px;
}

.gl3-section-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--black);
    letter-spacing: -0.01em;
}

.gl3-body-lead {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.8;
}

.gl3-body-text {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.75;
}

/* ==========================================================================
   PULSANTI E LINK
   ========================================================================== */
.gl3-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--white);
    background: var(--black);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--t);
}

.gl3-btn:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }

.gl3-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--black);
    background: transparent;
    border: 1px solid var(--black);
    text-decoration: none;
    transition: var(--t);
}

.gl3-btn-outline:hover { background: var(--black); color: var(--white); }

.gl3-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--sand);
    padding-bottom: 3px;
    transition: all 0.3s;
}

.gl3-link:hover { color: var(--sand-dark); border-color: var(--sand-dark); }
.gl3-link i { font-size: 0.7rem; transition: transform 0.3s; }
.gl3-link:hover i { transform: translateX(4px); }

/* ==========================================================================
   PRODOTTI
   ========================================================================== */
.gl3-products {
    background: var(--warm);
    padding: 100px 0;
    overflow: hidden;
}

.gl3-products-header {
    max-width: 1320px;
    margin: 0 auto 48px;
    padding: 0 32px;
    position: relative;
}


.gl3-product-grid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 2px;
}

/* Ogni card occupa due righe della griglia (foto, testo) e le eredita con subgrid:
   così la riga sopra il testo cade alla stessa altezza in tutte le card affiancate,
   anche se nomi e descrizioni hanno lunghezze diverse. */
.gl3-pcard {
    background: var(--white);
    text-decoration: none; color: inherit;   /* la card è un link alla scheda */
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    overflow: hidden;
    transition: var(--t);
}

.gl3-pcard:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.06); }
.gl3-pcard:hover .gl3-pcard-visual img { transform: scale(1.05); }

/* con 3 prodotti la card grande copre le 4 righe delle due piccole: la sua foto
   le prime tre, il testo l'ultima, allineato a quello della seconda card piccola */
.gl3-pcard-lg { grid-row: 1 / span 4; }
.gl3-pcard-lg .gl3-pcard-visual { grid-row: 1 / span 3; }

.gl3-pcard-visual {
    background: var(--white);   /* niente beige dietro le foto (richiesta cliente) */
    overflow: hidden;
    min-height: 200px;
    position: relative;
}

.gl3-pcard-lg .gl3-pcard-visual { min-height: 360px; }
/* con 2 o 1 prodotto (es. uno dei tre non pubblicato) le card si affiancano alla pari */
.gl3-product-grid-2 { grid-template-columns: 1fr 1fr; }
.gl3-product-grid-1 { grid-template-columns: 1fr; }
.gl3-product-grid-2 .gl3-pcard-lg, .gl3-product-grid-1 .gl3-pcard-lg { grid-row: span 2; }
.gl3-product-grid-2 .gl3-pcard-lg .gl3-pcard-visual,
.gl3-product-grid-1 .gl3-pcard-lg .gl3-pcard-visual { grid-row: auto; }
.gl3-product-grid-2 .gl3-pcard-visual { min-height: 360px; }

.gl3-pcard-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;   /* prodotto sempre intero */
    padding: 20px;
    transition: transform 0.7s var(--ease);
}

.gl3-pcard-info {
    padding: 24px 28px;
    border-top: 1px solid var(--border);
}

.gl3-pcard-cat {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand-dark);
}

.gl3-pcard-name {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--black);
    margin: 8px 0 6px;
}

.gl3-pcard-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   CTA BAND (Home — sezione cataloghi)
   ========================================================================== */
/* La foto (MOSAIKO 48097-62) è quadrata: la colonna destra è un quadrato e
   l'altezza della fascia la decide lei, così la foto non viene tagliata. Se il
   testo è più alto del quadrato (schermi stretti) la foto resta centrata sul nero. */
.gl3-cta-band {
    background: var(--black);
    display: grid;
    grid-template-columns: 1fr clamp(320px, 40vw, 560px);
    overflow: hidden;
}

.gl3-cta-left {
    background: var(--black);
    padding: 80px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.gl3-cta-left .gl3-caption { color: var(--accent); }
.gl3-cta-left .gl3-section-title { color: var(--white); }
.gl3-cta-left .gl3-body-text { color: rgba(255,255,255,0.6); margin: 20px 0 32px; max-width: 460px; }

/* Bottone chiaro su campo nero */
.gl3-cta-left .gl3-btn-outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}
.gl3-cta-left .gl3-btn-outline:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.gl3-cta-right {
    background: var(--warm);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    align-self: center;
}

.gl3-cta-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   ANNUNCIO E-COMMERCE (Home, fascia nera sotto l'hero)
   ========================================================================== */
.gl3-annuncio { background: var(--black); padding: 72px 0; }
/* subito sotto il menu fisso (69px): gli lascia spazio, e l'hero che segue
   non ha più bisogno del suo margine alto per il menu */
.gl3-nav + .gl3-annuncio { margin-top: 69px; }
.gl3-annuncio + .gl3-hero { padding-top: 80px; }

.gl3-annuncio-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 64px;
    align-items: center;
}

.gl3-annuncio .gl3-caption { color: var(--accent); }
.gl3-annuncio .gl3-section-title { color: var(--white); font-size: clamp(1.6rem, 2.6vw, 2.4rem); max-width: 820px; }
.gl3-annuncio .gl3-body-text { color: rgba(255,255,255,0.6); margin: 16px 0 0; max-width: 760px; }

/* pulsante chiaro su campo nero */
.gl3-annuncio .gl3-btn { background: var(--white); color: var(--black); }
.gl3-annuncio .gl3-btn:hover { background: var(--warm); color: var(--black); }
.gl3-annuncio-text { animation: wordUp 0.9s var(--ease) 0.1s both; }
.gl3-annuncio-cta  { animation: wordUp 0.9s var(--ease) 0.22s both; }

/* ==========================================================================
   NEWSLETTER (Home)
   ========================================================================== */
.gl3-newsletter { background: var(--white); padding: 88px 0; }

.gl3-newsletter-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gl3-newsletter-text .gl3-body-text { margin: 16px 0 0; max-width: 460px; }

.gl3-newsletter-row { display: flex; gap: 16px; align-items: flex-end; }
.gl3-newsletter-row .gl3-field { flex: 1; min-width: 0; }
.gl3-newsletter-row .gl3-btn { flex-shrink: 0; }

/* campo trappola per i bot */
.gl3-newsletter-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.gl3-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.6;
    color: var(--mid);
    cursor: pointer;
}
.gl3-check input { margin-top: 3px; accent-color: var(--black); flex-shrink: 0; }
.gl3-check a { color: var(--black); }

/* ==========================================================================
   PAGE HERO (pagine interne)
   ========================================================================== */
.gl3-page-hero {
    padding: 150px 32px 0;
    position: relative;
    background: var(--black);
}

.gl3-page-hero-light { background: var(--black); }

.gl3-ph-inner {
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: end;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.gl3-page-hero .gl3-caption { color: var(--accent); }

.gl3-ph-meta {
    padding-bottom: 10px;
}

.gl3-ph-meta p {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    margin: 0;
    max-width: 320px;
    margin-left: auto;
    text-align: right;
}

.gl3-ph-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   AZIENDA — Quote
   ========================================================================== */
.gl3-quote {
    border-left: 3px solid var(--sand);
    padding: 32px 40px;
    background: var(--warm);
    margin: 0;
}

.gl3-quote p {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    color: var(--dark);
    line-height: 1.6;
    margin: 0 0 16px;
}

.gl3-quote p em { font-style: normal; font-weight: 500; color: var(--black); }

.gl3-quote cite {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand-dark);
    font-style: normal;
}

/* Pillar */
.gl3-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 48px;
}

.gl3-pillar {
    background: var(--white);
    padding: 40px 36px;
    border-top: 2px solid var(--black);
    transition: var(--t);
}

.gl3-pillar:hover { background: var(--warm2); }

.gl3-pillar-mark {
    width: 28px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 24px;
}

.gl3-pillar-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 12px;
}

.gl3-pillar-text {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.7;
    margin: 0;
}

/* Timeline */
.gl3-timeline {
    margin-top: 48px;
    border-top: 1px solid var(--border);
}

.gl3-tl-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 48px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.gl3-tl-year {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
}

.gl3-tl-body h5 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
}

.gl3-tl-body p {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--mid);
    margin: 0;
    line-height: 1.7;
}

/* ==========================================================================
   CATALOGHI
   ========================================================================== */
.gl3-cat-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.gl3-filter {
    padding: 10px 24px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--mid);
    cursor: pointer;
    transition: var(--t);
}

.gl3-filter:hover, .gl3-filter.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.gl3-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.gl3-cat-item {
    background: var(--white);
    overflow: hidden;
    transition: var(--t);
}

.gl3-cat-item:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.06); }

.gl3-cat-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gl3-cat-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.gl3-cat-item:hover .gl3-cat-cover img { transform: scale(1.04); }

.gl3-cat-hover {
    position: absolute;
    inset: 0;
    background: rgba(26,26,26,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s;
}

.gl3-cat-item:hover .gl3-cat-hover { opacity: 1; }

.gl3-btn-dl {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    transition: background 0.3s;
}

.gl3-btn-dl:hover { background: var(--warm); color: var(--black); }

.gl3-cat-meta {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}

.gl3-cat-tag {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sand-dark);
    font-weight: 400;
}

.gl3-cat-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--black);
    margin: 8px 0 4px;
}

.gl3-cat-desc {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--mid);
    margin: 0;
}

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.gl3-contact-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
    padding-top: 48px;
}

.gl3-contact-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 16px;
}

.gl3-contact-list { margin-top: 36px; }

.gl3-contact-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.gl3-contact-row:first-child { border-top: 1px solid var(--border); }

.gl3-contact-label {
    font-weight: 500;
    color: var(--black);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gl3-contact-row a { color: var(--mid); text-decoration: none; transition: color 0.3s; }
.gl3-contact-row a:hover { color: var(--sand-dark); }

.gl3-form-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--black);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

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

.gl3-form-group { margin-bottom: 24px; }

.gl3-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 8px;
}

.gl3-field {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-dark);
    padding: 10px 2px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--black);
    transition: border-color 0.3s;
    outline: none;
}

.gl3-field:focus { border-bottom-color: var(--sand-dark); }
.gl3-field::placeholder { color: var(--light); }
.gl3-textarea { resize: vertical; min-height: 120px; }

.gl3-form-msg {
    margin-top: 16px;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-left: 3px solid;
}

.gl3-form-msg.success { background: #f4faf4; color: #2d6a2d; border-color: #4caf50; }
.gl3-form-msg.error   { background: #fdf4f4; color: #8b2020; border-color: #e53935; }

.gl3-map-container { width: 100%; height: 440px; filter: grayscale(0.4); background: var(--warm); }
.gl3-map-container iframe { display: block; width: 100%; height: 100%; border: 0; }
.gl3-map-consenso {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 18px; padding: 32px 16px; text-align: center;
}
.gl3-map-consenso p { margin: 0; font-weight: 500; color: var(--black); }
.gl3-map-consenso small { max-width: 420px; color: var(--mid); font-size: 0.8rem; line-height: 1.5; }
.gl3-map-consenso a { color: var(--black); text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.gl3-footer {
    background: var(--black);
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.gl3-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.gl3-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding: 64px 0 48px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.gl3-footer .gl3-brand-text { color: rgba(255,255,255,0.85); }
.gl3-footer .gl3-brand-sub  { color: rgba(255,255,255,0.35); }
.gl3-footer .gl3-brand-mark { border-color: rgba(212,184,150,0.3); color: var(--sand); }

.gl3-footer-tagline {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
    margin: 20px 0 24px;
}

.gl3-footer-col h6 {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 20px;
}

.gl3-footer-col ul { list-style: none; }
.gl3-footer-col li { margin-bottom: 10px; }

.gl3-footer-col a {
    font-size: 0.88rem;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.3s;
}

.gl3-footer-col a:hover { color: var(--accent); }

.gl3-footer-contact p {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    margin-bottom: 6px;
}

.gl3-footer-contact a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.3s; }
.gl3-footer-contact a:hover { color: var(--accent); }

.gl3-footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.gl3-footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.2); margin: 0; }

.gl3-footer-bottom div { display: flex; gap: 20px; }
.gl3-footer-bottom a { font-size: 0.78rem; color: rgba(255,255,255,0.2); text-decoration: none; transition: color 0.3s; }
.gl3-footer-bottom a:hover { color: var(--accent); }
.gl3-cookie-apri {
    font: inherit; font-size: 0.78rem; color: rgba(255,255,255,0.2);
    background: none; border: 0; padding: 0; cursor: pointer; transition: color 0.3s;
}
.gl3-cookie-apri:hover { color: var(--accent); }

/* ==========================================================================
   BANNER COOKIE — in basso a sinistra, non blocca la pagina
   ========================================================================== */
.gl3-cookie {
    position: fixed; left: 24px; bottom: 24px; z-index: 1100;
    width: min(520px, calc(100vw - 32px));
    padding: 28px 28px 24px;
    background: var(--black); color: var(--white);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.gl3-cookie[hidden] { display: none; }
.gl3-cookie-titolo { margin: 0 0 8px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.75rem; color: var(--accent); }
.gl3-cookie-testo { margin: 0; font-size: 0.85rem; font-weight: 300; line-height: 1.6; color: rgba(255,255,255,0.75); }
.gl3-cookie-testo a { color: var(--white); text-decoration: underline; }
.gl3-cookie-azioni { display: flex; gap: 12px; margin-top: 20px; }
/* Accetta e Rifiuta con lo stesso peso visivo, come chiede il Garante */
.gl3-cookie-btn {
    flex: 1; padding: 12px 20px;
    font-family: 'Ubuntu', sans-serif; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em;
    color: var(--white); background: transparent; border: 1px solid rgba(255,255,255,0.5);
    cursor: pointer; transition: var(--t);
}
.gl3-cookie-btn:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.gl3-cookie-chiudi {
    position: absolute; top: 10px; right: 12px;
    font-size: 1.4rem; line-height: 1; color: rgba(255,255,255,0.6);
    background: none; border: 0; padding: 4px; cursor: pointer;
}
.gl3-cookie-chiudi:hover { color: var(--white); }
@media (max-width: 680px) {
    .gl3-cookie { left: 16px; bottom: 16px; padding: 24px 20px 20px; }
}

/* ==========================================================================
   PAGINE LEGALI (privacy.php, cookie.php)
   ========================================================================== */
.gl3-legal { max-width: 820px; }
.gl3-legal p, .gl3-legal li { font-size: 0.95rem; font-weight: 300; line-height: 1.75; color: var(--dark); }
.gl3-legal p { margin: 0 0 16px; }
.gl3-legal h2 {
    margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--border);
    font-size: 1.35rem; font-weight: 500; color: var(--black);
}
.gl3-legal h3 { margin: 32px 0 12px; font-size: 1.05rem; font-weight: 500; color: var(--black); }
.gl3-legal ul { margin: 0 0 16px; padding-left: 20px; }
.gl3-legal li { margin-bottom: 6px; }
.gl3-legal strong { font-weight: 500; }
.gl3-legal a:not(.gl3-btn) { color: var(--black); text-decoration: underline; }
.gl3-legal code { font-size: 0.85rem; color: var(--black); background: var(--warm); padding: 2px 6px; }
.gl3-legal-tabella { overflow-x: auto; margin: 0 0 20px; }
.gl3-legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.88rem; }
.gl3-legal th, .gl3-legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.gl3-legal th { font-weight: 500; color: var(--black); background: var(--warm); }
.gl3-legal td { font-weight: 300; }
/* su mobile ogni riga diventa una scheda con le etichette delle colonne */
@media (max-width: 680px) {
    .gl3-legal table { min-width: 0; }
    .gl3-legal thead { display: none; }
    .gl3-legal tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .gl3-legal td { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 4px 0; border: 0; }
    .gl3-legal td::before { content: attr(data-label); font-weight: 500; color: var(--black); }
    .gl3-legal td > code { justify-self: start; }
}
.gl3-legal-data { margin-top: 48px !important; font-size: 0.82rem !important; color: var(--mid) !important; }
[id] { scroll-margin-top: 90px; }   /* ancore (#newsletter, #contatti) non coperte dal menu fisso */

/* Testo informativo sotto il form contatti */
.gl3-form-privacy { margin: 14px 0 0; font-size: 0.78rem; font-weight: 300; color: var(--mid); line-height: 1.5; }
.gl3-form-privacy a { color: var(--black); }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .gl3-cta-left { padding: 56px 32px; max-width: 100%; }
    .gl3-newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
    .gl3-annuncio-inner { grid-template-columns: 1fr; gap: 32px; }

    .gl3-product-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gl3-pcard-lg { grid-row: span 2; }
    .gl3-pcard-lg .gl3-pcard-visual { grid-row: auto; }
}

@media (max-width: 680px) {
    .gl3-product-grid { grid-template-columns: 1fr; }
    /* fascia cataloghi: foto quadrata sopra, testo sotto */
    .gl3-cta-band { grid-template-columns: 1fr; }
    .gl3-cta-right { order: -1; }
    .gl3-newsletter { padding: 64px 0; }
    .gl3-newsletter-row { flex-direction: column; align-items: stretch; }
    .gl3-newsletter-row .gl3-btn { justify-content: center; }
}

@media (max-width: 900px) {
    .gl3-numbers-inner { grid-template-columns: repeat(2, 1fr); }
    .gl3-number-item:nth-child(2) { border-right: none; }
    .gl3-number-item:nth-child(3) { border-right: 1px solid var(--border); }
    .gl3-number-item:nth-child(1),
    .gl3-number-item:nth-child(2) { border-bottom: 1px solid var(--border); }

    .gl3-ed-content { grid-template-columns: 1fr; gap: 40px; }
    .gl3-two-col { grid-template-columns: 1fr; gap: 40px; }
    .gl3-pillars { grid-template-columns: 1fr; }
    .gl3-cat-grid { grid-template-columns: 1fr 1fr; }
    .gl3-contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .gl3-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .gl3-hero-headline { font-size: clamp(2rem, 7vw, 3.4rem); }
}

@media (max-width: 768px) {
    .gl3-nav-links {
        position: fixed;
        top: 68px; left: 0; right: 0;
        background: var(--white);
        border-top: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 16px 0;
        transform: translateY(-110%);
        transition: transform 0.4s var(--ease);
        z-index: 999;
    }

    .gl3-nav-links.is-open { transform: translateY(0); }

    .gl3-nl, .gl3-nl-cta {
        display: block;
        padding: 14px 32px;
        margin: 0;
        font-size: 1rem;
    }

    .gl3-nl::after { display: none; }

    .gl3-hamburger { display: flex; }

    .gl3-hero { padding: 100px 24px 60px; }
    .gl3-hero-sub { flex-direction: column; align-items: flex-start; gap: 24px; }

    .gl3-tl-item { grid-template-columns: 80px 1fr; gap: 24px; }
    .gl3-form-row { grid-template-columns: 1fr; }
    .gl3-footer-grid { grid-template-columns: 1fr; }
    .gl3-footer-bottom { flex-direction: column; text-align: center; }
    .gl3-cat-grid { grid-template-columns: 1fr; }
    .gl3-ph-inner { grid-template-columns: 1fr; gap: 20px; }
    .gl3-ph-meta p { text-align: left; margin-left: 0; }
}

@media (max-width: 480px) {
    .gl3-section { padding: 64px 0; }
    .gl3-editorial { padding: 64px 0; }
    .gl3-products { padding: 64px 0; }
    .gl3-numbers-inner { grid-template-columns: 1fr 1fr; }
    .gl3-number-item { padding: 32px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .gl3-hw-1, .gl3-hw-2, .gl3-hw-3, .gl3-hw-4, .gl3-hero-sub,
    .gl3-annuncio-text, .gl3-annuncio-cta { animation: none; opacity: 1; }
    .gl3-hero-ticker span { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   CATALOGO PRODOTTI — mega-menu, griglia, scheda
   ========================================================================== */

/* --- Mega-menu --- */
.gl3-has-mega { position: static; }
.gl3-mega {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all 0.25s var(--ease);
    z-index: 200;
}
.gl3-has-mega:hover .gl3-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.gl3-mega-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 44px 32px;
    display: grid;
    grid-template-columns: 1.3fr 1.1fr 1fr 0.8fr;
    gap: 40px;
}
.gl3-mega-h {
    display: block;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--black);
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-dark);
}
.gl3-mega-col ul { list-style: none; margin: 0; padding: 0; }
.gl3-mega-col li { margin-bottom: 11px; }
.gl3-mega-col a {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.gl3-mega-col a:hover { color: var(--black); }
.gl3-mega-strong a {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--black);
}
.gl3-mega-strong a:hover { color: var(--sand-dark); }

/* --- Griglia prodotti --- */
.gl3-pc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* righe tra le card fatte coi bordi delle card stesse: le celle vuote in fondo
       (es. collezione con 2 prodotti) restano bianche invece che grigie */
    gap: 0;
}
.gl3-pc-card {
    background: var(--white);
    border: 1px solid var(--border);
    margin: 0 -1px -1px 0;   /* bordi adiacenti sovrapposti: linea singola */
    display: flex;
    flex-direction: column;
    transition: var(--t);
}
/* tutta la card porta alla scheda; il link alla collezione sta sotto, a parte */
.gl3-pc-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.gl3-pc-card:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.08); position: relative; z-index: 2; }
.gl3-pc-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--white);   /* niente beige dietro le foto (richiesta cliente) */
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.gl3-pc-thumb img {
    /* foto sempre intera (richiesta del cliente): meglio spazio vuoto che un taglio */
    width: 100%; height: 100%; object-fit: contain; padding: 14px;
    transition: transform 0.6s var(--ease);
}
.gl3-pc-card:hover .gl3-pc-thumb img { transform: scale(1.05); }
.gl3-pc-noimg {
    font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--light);
}
.gl3-pc-badges {
    position: absolute; top: 10px; left: 10px;
    display: flex; gap: 6px; z-index: 2;
}
.gl3-pc-badge {
    background: var(--accent); color: var(--black);
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 4px 9px;
}
.gl3-pc-badge-novita { background: var(--black); color: var(--white); }
.gl3-pc-meta { padding: 18px 20px 22px; }
.gl3-pc-cat {
    font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand-dark);
}
.gl3-pc-name {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.02rem; font-weight: 500; color: var(--black);
    margin: 7px 0 6px;
}
.gl3-pc-code { font-size: 0.86rem; font-weight: 700; color: var(--black); }   /* codice in grassetto (richiesta cliente) */

/* --- Paginazione --- */
.gl3-pager {
    display: flex; align-items: center; justify-content: center; gap: 28px;
    margin-top: 48px;
}
.gl3-pager-btn {
    font-family: 'Ubuntu', sans-serif; font-size: 0.85rem; font-weight: 500;
    color: var(--black); text-decoration: none;
    padding: 12px 24px; border: 1px solid var(--black);
    transition: var(--t);
}
.gl3-pager-btn:hover { background: var(--black); color: var(--white); }
.gl3-pager-info { font-size: 0.85rem; color: var(--mid); }

/* --- Scheda prodotto --- */
.gl3-prod-back {
    display: inline-block; margin-bottom: 28px;
    font-size: 0.85rem; font-weight: 500; color: var(--mid); text-decoration: none;
}
.gl3-prod-back:hover { color: var(--black); }
.gl3-prod-layout {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start;
}
/* le colonne di una griglia non scendono sotto la larghezza del contenuto: senza
   min-width:0 la riga delle miniature (che non va a capo) allarga la galleria e
   schiaccia la colonna destra. Così invece le miniature scorrono nella loro riga. */
.gl3-prod-gallery, .gl3-prod-info { min-width: 0; }
.gl3-prod-main {
    position: relative;   /* ancoraggio per il label "Novità" e per l'icona zoom */
    aspect-ratio: 1 / 1; background: var(--white); border: 1px solid var(--border); overflow: hidden;   /* niente beige (richiesta cliente) */
    display: flex; align-items: center; justify-content: center;
    padding: 28px;
}
.gl3-prod-main img { width: 100%; height: 100%; object-fit: contain; }
.gl3-prod-thumbs {
    display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.gl3-prod-thumb {
    width: 76px; height: 76px; padding: 0; border: 1px solid var(--border);
    background: var(--white); cursor: pointer; overflow: hidden;
    transition: border-color 0.2s var(--ease);
}
.gl3-prod-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gl3-prod-thumb.is-active { border-color: var(--black); }

.gl3-prod-title {
    font-family: 'Ubuntu', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--black);
    letter-spacing: -0.02em; line-height: 1.05; margin: 10px 0 8px;
}
.gl3-prod-code { font-size: 1.05rem; font-weight: 700; color: var(--black); }   /* codice in grassetto (richiesta cliente) */
.gl3-prod-descr {
    font-size: 1rem; font-weight: 300; color: var(--mid); line-height: 1.8;
    margin: 24px 0;
}
.gl3-prod-rooms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.gl3-chip {
    font-size: 0.78rem; color: var(--dark); text-decoration: none;
    padding: 6px 14px; border: 1px solid var(--warm2); border-radius: 100px;
    background: var(--warm);   /* pulsanti delle camere su fondo beige (richiesta cliente) */
    transition: var(--t);
}
.gl3-chip:hover { background: var(--warm2); border-color: var(--black); color: var(--black); }

.gl3-prod-cta {
    background: var(--black); padding: 28px 32px; margin: 8px 0 32px;
}
.gl3-prod-cta-text {
    color: rgba(255,255,255,0.7); font-weight: 300; font-size: 0.92rem;
    line-height: 1.7; margin: 0 0 20px;
}
.gl3-prod-cta .gl3-btn { margin-right: 12px; background: var(--white); color: var(--black); }
.gl3-prod-cta .gl3-btn:hover { background: var(--accent); color: var(--black); }
.gl3-prod-cta .gl3-btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.gl3-prod-cta .gl3-btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.gl3-prod-specs { width: 100%; border-collapse: collapse; }
.gl3-prod-specs th, .gl3-prod-specs td {
    text-align: left; padding: 13px 0; border-bottom: 1px solid var(--border);
    font-size: 0.9rem; vertical-align: top;
}
.gl3-prod-specs th { font-weight: 500; color: var(--black); width: 38%; }
.gl3-prod-specs td { font-weight: 300; color: var(--mid); }
/* titolo di gruppo (Luce, Materiali e colori, ...) */
.gl3-prod-specs .gl3-prod-specs-h th {
    width: auto; padding: 28px 0 10px; border-bottom: 1px solid var(--black);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.gl3-prod-specs tr:first-child.gl3-prod-specs-h th { padding-top: 0; }

/* --- Classe energetica: freccia + link EPREL, sotto il prezzo --- */
.gl3-prod-energia {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
    margin: 18px 0 4px;
}
.gl3-prod-energia-freccia { display: inline-flex; line-height: 0; }
.gl3-freccia { height: 44px; width: auto; }
.gl3-prod-energia-link {
    font-size: 0.8rem; font-weight: 400; color: var(--mid);
    text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.gl3-prod-energia-link:hover { color: var(--black); text-decoration-color: var(--accent); }
.gl3-prod-energia-freccia:focus-visible,
.gl3-prod-energia-link:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* --- Pittogrammi (funzioni del prodotto) --- */
.gl3-prod-icone {
    list-style: none; padding: 0; margin: 0 0 24px;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.gl3-prod-icone img { height: 52px; width: auto; display: block; }

/* --- Responsive catalogo --- */
@media (max-width: 1100px) {
    .gl3-pc-grid { grid-template-columns: repeat(3, 1fr); }
    .gl3-mega-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .gl3-prod-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 700px) {
    .gl3-pc-grid { grid-template-columns: repeat(2, 1fr); }
    /* Mega-menu su mobile: diventa elenco statico dentro al menu aperto */
    .gl3-mega {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border-top: none; display: none;
    }
    .gl3-nav-links.is-open .gl3-has-mega .gl3-mega { display: block; }
    .gl3-mega-inner { grid-template-columns: 1fr; padding: 8px 0 8px 16px; gap: 18px; }
}
@media (max-width: 420px) {
    .gl3-pc-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   LIGHTBOX scheda prodotto
   ========================================================================== */
.gl3-prod-main.is-zoomable { cursor: zoom-in; }
.gl3-prod-zoom {
    position: absolute; bottom: 14px; right: 14px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(26,26,26,0.7); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; opacity: 0; transition: opacity 0.25s var(--ease);
    pointer-events: none;
}
.gl3-prod-main.is-zoomable:hover .gl3-prod-zoom { opacity: 1; }

.gl3-lb {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(20,20,20,0.94);
    display: none; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s var(--ease);
}
.gl3-lb.is-open { display: flex; opacity: 1; }
.gl3-lb-stage {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    padding: 64px 80px;
}
.gl3-lb-stage img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    background: #fff;
}
.gl3-lb-close, .gl3-lb-nav {
    position: absolute; z-index: 2;
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.1rem;
    transition: all 0.2s var(--ease);
}
.gl3-lb-close:hover, .gl3-lb-nav:hover { background: var(--accent); color: var(--black); border-color: var(--accent); }
.gl3-lb-close { top: 24px; right: 24px; }
.gl3-lb-nav { top: 50%; transform: translateY(-50%); }
.gl3-lb-prev { left: 24px; }
.gl3-lb-next { right: 24px; }
.gl3-lb-count {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.7); font-size: 0.85rem; letter-spacing: 0.05em;
}

@media (max-width: 700px) {
    .gl3-lb-stage { padding: 56px 16px; }
    .gl3-lb-nav { width: 42px; height: 42px; }
    .gl3-lb-prev { left: 10px; } .gl3-lb-next { right: 10px; }
    .gl3-lb-close { top: 14px; right: 14px; }
}

/* Link inline nel testo */
.gl3-link-inline {
    color: var(--black);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color 0.2s var(--ease);
}
.gl3-link-inline:hover { color: var(--sand-dark); text-decoration-color: var(--accent); }

/* --- Manuali d'istruzione (scheda prodotto) --- */
/* Box documentazione sotto la foto: lo stacco di fondo è ciò che dà
   visibilità al pulsante, senza doverlo colorare più della CTA. */
.gl3-prod-doc {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    padding: 18px;
    background: var(--warm2);
    border: 1px solid var(--border-dark);
}

/* nel box il pulsante occupa tutta la larghezza disponibile */
.gl3-prod-doc .gl3-btn-manuale {
    flex: 1 1 240px;
    justify-content: center;
}

.gl3-btn-manuale {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    /* bordo nero: quello chiaro (--border) su fondo bianco dava 1.35:1, invisibile */
    border: 1px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.gl3-btn-manuale i { font-size: 1rem; color: var(--black); transition: color 0.3s var(--ease); }
/* al passaggio si riempie di nero: resta secondario rispetto alla CTA, ma reagisce */
.gl3-btn-manuale:hover { background: var(--black); color: var(--white); }
.gl3-btn-manuale:hover i { color: var(--accent); }   /* giallo brand: micro-accento */
.gl3-btn-manuale:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* --- Label "Novità" sull'immagine della scheda prodotto --- */
.gl3-prod-novita {
    position: absolute; top: 16px; left: 16px; z-index: 3;
    background: var(--black); color: var(--white);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 6px 12px;
}

/* --- Avviso AI Act (scheda prodotto): informazione di servizio, volutamente defilata --- */
.gl3-prod-ai-note {
    margin-top: 16px;
    font-size: 0.68rem;
    line-height: 1.5;
    color: var(--light);
    max-width: 62ch;
}

.gl3-prod-ai-note a {
    color: var(--mid);
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.gl3-prod-ai-note a:hover { color: var(--black); }

/* --- Prezzi --- */
/* Scheda prodotto: il prezzo è informazione primaria, subito sotto il codice. */
.gl3-prod-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 18px 0 6px;
}
.gl3-prod-price-val {
    font-family: 'Ubuntu', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--black);
    line-height: 1;
}
.gl3-prod-price-vat {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
}
.gl3-prod-price-req {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--mid);
}

/* Griglia: sotto il codice, leggibile ma senza gridare. */
.gl3-pc-price {
    display: block;
    margin-top: 10px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
}
.gl3-pc-price-req {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mid);
}

/* --- "Scopri la collezione" sotto la card della griglia --- */
.gl3-pc-coll {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px; border-top: 1px solid var(--border);
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--black); text-decoration: none;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.gl3-pc-coll::before {   /* giallo brand: micro-accento */
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.gl3-pc-coll span { font-weight: 300; color: var(--mid); }
.gl3-pc-coll:hover { background: var(--black); color: var(--white); }
.gl3-pc-coll:hover span { color: rgba(255,255,255,0.6); }

/* --- Ricerca nell'header --- */
.gl3-nav-search { margin-left: 8px; }
.gl3-nav-search form {
    display: flex; align-items: center;
    border: 1px solid var(--border-dark); background: var(--white);
    transition: border-color 0.25s var(--ease);
}
.gl3-nav-search form:focus-within { border-color: var(--black); }
.gl3-nav-search input {
    border: 0; outline: 0; background: transparent;
    width: 150px; padding: 7px 10px;
    font-family: inherit; font-size: 0.8rem; color: var(--black);
}
.gl3-nav-search input::placeholder { color: var(--light); }
.gl3-nav-search button {
    border: 0; background: transparent; padding: 7px 10px; cursor: pointer;
    color: var(--black); font-size: 0.8rem;
}
.gl3-nav-search button:hover { color: var(--sand-dark); }
@media (max-width: 1100px) { .gl3-nav-search input { width: 110px; } }
@media (max-width: 768px) {
    .gl3-nav-search { margin: 8px 32px; }
    .gl3-nav-search input { flex: 1; width: auto; font-size: 1rem; padding: 10px 12px; }
}

/* --- Scheda: riga in alto (torna alla categoria / stampa) --- */
.gl3-prod-top {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 28px;
}
.gl3-prod-top .gl3-prod-back { margin-bottom: 0; }
.gl3-prod-print {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border-dark); background: var(--white);
    padding: 8px 14px; font-family: inherit; font-size: 0.8rem; font-weight: 500; color: var(--mid);
    cursor: pointer; transition: var(--t);
}
.gl3-prod-print:hover { border-color: var(--black); color: var(--black); }

/* --- Scheda: bollino "Scopri la collezione" sotto il codice --- */
.gl3-prod-coll {
    display: flex; align-items: center; gap: 10px; width: fit-content;
    margin-top: 16px; padding: 10px 16px;
    border: 1px solid var(--black);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--black); text-decoration: none;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.gl3-prod-coll::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0;
}
.gl3-prod-coll span { font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--mid); }
.gl3-prod-coll:hover { background: var(--black); color: var(--white); }
.gl3-prod-coll:hover span { color: rgba(255,255,255,0.6); }

/* --- Scheda: altri prodotti della collezione --- */
.gl3-prod-correlati { padding-top: 0; }
.gl3-correlati-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    border-top: 1px solid var(--border); padding-top: 56px; margin-bottom: 28px;
}
.gl3-correlati-head .gl3-section-title { margin: 0; }

/* ==========================================================================
   STAMPA scheda prodotto (pulsante "Stampa scheda" o Ctrl/Cmd+P)
   ========================================================================== */
.gl3-print-only { display: none; }

@media print {
    @page { size: A4; margin: 14mm 12mm; }
    html, body { background: #fff; font-size: 10.5pt; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    /* fuori dalla carta: navigazione, footer, pulsanti, galleria interattiva, correlati */
    .gl3-nav, .gl3-footer, .gl3-prod-top, .gl3-prod-thumbs-wrap, .gl3-prod-thumbs, .gl3-prod-zoom,
    .gl3-prod-cta, .gl3-prod-rooms, .gl3-prod-doc, .gl3-prod-coll,
    .gl3-prod-energia-link, .gl3-lb, .gl3-prod-correlati { display: none !important; }

    .gl3-print-only { display: block; }
    .gl3-print-head {
        display: flex; align-items: center; justify-content: space-between; gap: 16px;
        border-bottom: 1.5pt solid #1A1A1A; padding-bottom: 8pt; margin-bottom: 14pt;
    }
    .gl3-print-head img { height: 38pt; width: auto; }
    .gl3-print-head p { margin: 0; text-align: right; font-size: 8pt; line-height: 1.5; color: #444; }
    .gl3-print-foot {
        margin-top: 14pt; padding-top: 6pt; border-top: 0.5pt solid #999;
        font-size: 7.5pt; color: #666; word-break: break-all;
    }

    .gl3-section, .gl3-prod { padding: 0 !important; }
    .gl3-section-inner { max-width: none; padding: 0; }
    .gl3-prod-layout { display: grid; grid-template-columns: 38% 1fr; gap: 18pt; }
    .gl3-prod-main { padding: 0; background: #fff; border: 0.5pt solid #ddd; }
    .gl3-prod-novita { background: #1A1A1A !important; color: #fff !important; }
    .gl3-prod-ai-note { font-size: 6.5pt; color: #777; }
    .gl3-prod-ai-note a { display: none; }

    .gl3-prod-title { font-size: 20pt; margin: 4pt 0; }
    .gl3-prod-descr { font-size: 9pt; line-height: 1.5; margin: 10pt 0; color: #333; }
    .gl3-prod-energia { margin: 8pt 0; }
    .gl3-freccia { height: 30pt; }
    .gl3-prod-icone { margin-bottom: 10pt; gap: 5pt; }
    .gl3-prod-icone img { height: 30pt; }

    .gl3-prod-specs th, .gl3-prod-specs td { padding: 3pt 0; font-size: 8.5pt; color: #222; }
    .gl3-prod-specs .gl3-prod-specs-h th { padding: 9pt 0 3pt; font-size: 7pt; }
    .gl3-prod-specs tr { break-inside: avoid; }
    a { color: inherit; text-decoration: none; }
}

/* --- Scheda: galleria ferma (sticky) su desktop ---
   La colonna destra è lunga: foto e miniature restano visibili mentre scorre e
   si fermano dove finisce la scheda (prima dei correlati). Tutto il blocco deve
   stare in uno schermo, quindi la foto grande è limitata in altezza e le
   miniature stanno su una riga sola (scorrono se sono tante). */
@media (min-width: 1101px) {
    .gl3-prod-gallery { position: sticky; top: 92px; }   /* 68px header + respiro */
    .gl3-prod-main { max-height: calc(100vh - 92px - 24px - 76px - 12px); }
    .gl3-prod-thumbs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .gl3-prod-thumbs::-webkit-scrollbar { display: none; }   /* si scorre con le frecce */
    .gl3-prod-thumb { flex: 0 0 76px; }
}

/* riga miniature con frecce ai lati (le frecce compaiono solo se la riga scorre) */
.gl3-prod-thumbs-wrap { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.gl3-prod-thumbs-wrap .gl3-prod-thumbs { margin-top: 0; flex: 1; min-width: 0; position: relative; }
.gl3-prod-thumbs-nav {
    flex: 0 0 30px; height: 76px; padding: 0;
    border: 1px solid var(--border-dark); background: var(--white); color: var(--black);
    font-size: 0.8rem; cursor: pointer; transition: border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.gl3-prod-thumbs-nav:hover:not(:disabled) { border-color: var(--black); }
.gl3-prod-thumbs-nav:disabled { opacity: 0.3; cursor: default; }
.gl3-prod-thumbs-nav[hidden] { display: none; }
.gl3-prod-thumbs-nav:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }

/* --- Scheda: blocchi della colonna destra --- */
.gl3-prod-coll { margin-top: 22px; }
.gl3-prod-blocco { margin-top: 36px; }
.gl3-prod-blocco > .gl3-caption { margin-bottom: 14px; }
.gl3-prod-blocco .gl3-prod-rooms { margin-bottom: 0; }
.gl3-prod-blocco-camere { margin-top: 24px; }   /* sotto il prezzo: più vicino */
.gl3-prod-blocco-camere > .gl3-caption { margin-bottom: 10px; }
.gl3-prod-blocco .gl3-prod-descr { margin: 0; }
.gl3-prod-info > .gl3-prod-cta { margin: 36px 0 0; }
.gl3-prod-docs td a {
    color: var(--black); font-weight: 500; text-decoration: underline;
    text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.gl3-prod-docs td a i { margin-right: 6px; }
.gl3-prod-docs td a:hover { text-decoration-color: var(--accent); }
.gl3-prod-info > .gl3-prod-ai-note { margin-top: 36px; }

@media print {
    .gl3-prod-gallery { position: static; }
    .gl3-prod-main { max-height: none; }
    .gl3-prod-blocco-doc { display: none; }   /* in stampa i link non servono */
    .gl3-prod-blocco { margin-top: 12pt; }
    .gl3-prod-blocco > .gl3-caption { margin-bottom: 4pt; font-size: 7pt; }
}

/* --- Contenitore di stampa della scheda (table con thead ripetuta) --- */
.gl3-print-wrap, .gl3-print-wrap > thead, .gl3-print-wrap > tbody,
.gl3-print-wrap > * > tr, .gl3-print-wrap > * > tr > td { display: block; width: 100%; padding: 0; border: 0; }
.gl3-print-wrap { border-collapse: collapse; }

@media print {
    .gl3-print-wrap { display: table; width: 100%; }
    .gl3-print-wrap > thead { display: table-header-group; }   /* ripetuta su ogni pagina */
    .gl3-print-wrap > tbody { display: table-row-group; }
    .gl3-print-wrap > * > tr { display: table-row; }
    .gl3-print-wrap > * > tr > td { display: table-cell; }
    .gl3-print-head { margin-bottom: 12pt; }

    /* dalla seconda pagina il testo usa tutta la larghezza: foto flottante a sinistra */
    .gl3-prod-layout { display: block !important; }
    .gl3-prod-gallery { float: left; width: 38%; margin: 0 18pt 12pt 0; position: static; }
    .gl3-prod-info { display: block; }
    .gl3-prod-specs { clear: both; }
    .gl3-print-foot { clear: both; }

    /* scheda tecnica senza prezzo (utilizzabile anche dai rivenditori) */
    .gl3-prod-price { display: none !important; }
}
