/* gr-base.css — Buttons, header, footer, page layout, vehicle cards, badges, breadcrumb, forms, search overlay, 404, search results */
/*
 * Componenti condivisi caricati su TUTTE le pagine:
 * bottoni, header (topbar, navbar, mobile menu, search overlay),
 * footer, layout pagina generica, badge, breadcrumb,
 * form group, contact layout, servizi, 404, risultati ricerca,
 * honeypot, form feedback, CTA section, WhatsApp button,
 * vehicle cards (.gr-card-vehicle — usati sia in archive che in homepage).
 *
 * Richiede: gr-tokens.css
 *
 * @package GR_AYM
 */


/* ==========================================================================
   BOTTONI
   ========================================================================== */

.gr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--gr-space-2);
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: var(--gr-radius-sm);
    font-family: var(--gr-font-body);
    font-weight: 600;
    font-size: var(--gr-text-base);
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
    transition: background-color var(--gr-transition),
                color var(--gr-transition),
                border-color var(--gr-transition),
                box-shadow var(--gr-transition);
}

.gr-btn--navy {
    background-color: var(--gr-navy);
    border-color: var(--gr-navy);
    color: var(--gr-white);
}

.gr-btn--navy:hover {
    background-color: var(--gr-navy-dark);
    border-color: var(--gr-navy-dark);
    color: var(--gr-white);
}

.gr-btn--gold {
    background-color: var(--gr-gold);
    border-color: var(--gr-gold);
    color: var(--gr-navy);
}

.gr-btn--gold:hover {
    background-color: var(--gr-gold-dark);
    border-color: var(--gr-gold-dark);
    color: var(--gr-navy);
}

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

.gr-btn--outline:hover {
    background-color: var(--gr-white);
    color: var(--gr-navy);
}

.gr-btn--outline-navy {
    background-color: transparent;
    border-color: var(--gr-navy);
    color: var(--gr-navy);
}

.gr-btn--outline-navy:hover {
    background-color: var(--gr-navy);
    color: var(--gr-white);
}

.gr-btn--sm {
    padding: 8px 16px;
    font-size: var(--gr-text-sm);
    min-height: 44px;
}

@media (min-width: 1024px) {
    .gr-btn--sm {
        min-height: 36px;
    }
}

.gr-btn--icon {
    padding: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
}

/* --- Button outline-white & outline-navy --------------------------------- */

.gr-btn--outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--gr-radius-sm);
    font-weight: 600;
    font-size: var(--gr-text-base);
    cursor: pointer;
    min-height: 44px;
    border: 2px solid var(--gr-white);
    background: transparent;
    color: var(--gr-white);
    text-decoration: none;
    transition: background var(--gr-transition), color var(--gr-transition);
}
.gr-btn--outline-white:hover {
    background: var(--gr-white);
    color: var(--gr-navy);
}

/* --- Outline Gold -------------------------------------------------------- */

.gr-btn--outline-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: 2px solid var(--gr-gold);
    border-radius: var(--gr-radius-sm);
    background: transparent;
    color: var(--gr-gold);
    font-weight: 600;
    font-size: var(--gr-text-base);
    text-decoration: none;
    transition: background var(--gr-transition), color var(--gr-transition);
    min-height: 44px;
}

.gr-btn--outline-gold:hover,
.gr-btn--outline-gold:focus {
    background: var(--gr-gold);
    color: var(--gr-white);
}

.gr-btn--outline-gold:focus-visible {
    outline: 3px solid var(--gr-navy);
    outline-offset: 2px;
}

/* Variante per sfondo chiaro (contrasto AA) */
.gr-yacht-section--has-bg .gr-btn--outline-gold {
    border-color: var(--gr-gold-text);
    color: var(--gr-gold-text);
}

.gr-yacht-section--has-bg .gr-btn--outline-gold:hover,
.gr-yacht-section--has-bg .gr-btn--outline-gold:focus {
    background: var(--gr-gold-text);
    color: var(--gr-white);
}

/* --- Bottone WhatsApp (verde ufficiale #25D366) -------------------------- */

.gr-btn--whatsapp {
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--gr-radius-sm);
    font-weight: 600;
    font-size: var(--gr-text-base);
    cursor: pointer;
    min-height: 44px;
    border: none;
    background: #25D366;
    color: var(--gr-white);
    text-decoration: none;
    transition: background var(--gr-transition);
}
.gr-btn--whatsapp:hover {
    background: #1EBE5A;
    color: var(--gr-white);
}
.gr-btn--whatsapp:focus-visible {
    outline-color: var(--gr-navy);
}
.gr-btn--whatsapp svg {
    flex-shrink: 0;
}


/* ==========================================================================
   CARD VEICOLO (.gr-card-vehicle)
   Componente condiviso: usato in archive, homepage e ricerca.
   ========================================================================== */

.gr-card-vehicle {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--gr-radius);
    box-shadow: var(--gr-shadow);
    overflow: hidden;
    background-color: var(--gr-white);
    transition: transform var(--gr-transition),
                box-shadow var(--gr-transition);
}

.gr-card-vehicle:hover {
    transform: translateY(-2px);
    box-shadow: var(--gr-shadow-md);
}

.gr-card-vehicle a {
    color: inherit;
    text-decoration: none;
}

/* Immagine */
.gr-card-vehicle__image {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

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

.gr-card-vehicle:hover .gr-card-vehicle__image img {
    transform: scale(1.03);
}

/* Corpo card */
.gr-card-vehicle__body {
    padding: var(--gr-space-4);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gr-card-vehicle__title {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-lg);
    font-weight: 700;
    color: var(--gr-navy);
    margin-bottom: var(--gr-space-2);
    line-height: 1.3;
    text-align: center;
    /* Fisso 2 righe per allineamento uniforme tra card */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 1.3em);
}

/* Specs distribuite su tutta la riga, icona sopra testo sotto */
.gr-card-vehicle__specs {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    font-size: var(--gr-text-xs);
    color: var(--gr-gray);
    padding: var(--gr-space-3) 0;
    margin: 0;
    border-top: 1px solid var(--gr-border);
}

.gr-card-vehicle__spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-card-vehicle__spec-icon {
    flex-shrink: 0;
    color: var(--gr-navy);
    opacity: 0.5;
}

/* Yacht: descrizione breve al posto delle specifiche */
.gr-card-vehicle__excerpt {
    font-size: var(--gr-text-sm);
    color: var(--gr-gray);
    padding: var(--gr-space-3) 0;
    margin: 0;
    border-top: 1px solid var(--gr-border);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: prezzo a sinistra + CTA a destra */
.gr-card-vehicle__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--gr-space-3);
}

.gr-card-vehicle__price {
    font-size: var(--gr-text-xl);
    font-weight: 700;
    color: var(--gr-green);
}

.gr-card-vehicle__cta {
    font-size: var(--gr-text-sm);
    font-weight: 600;
    color: var(--gr-gold);
    transition: color var(--gr-transition);
}
.gr-card-vehicle:hover .gr-card-vehicle__cta {
    color: var(--gr-navy);
}

/* Badge */
.gr-card-vehicle__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: var(--gr-text-xs);
    font-weight: 600;
    z-index: 1;
    line-height: 1.4;
}

.gr-card-vehicle__badge--featured {
    background-color: var(--gr-gold);
    color: var(--gr-navy);
}

.gr-card-vehicle__badge--epoch {
    background-color: var(--gr-navy);
    color: var(--gr-white);
}

.gr-card-vehicle__badge--delivery {
    background-color: var(--gr-green);
    color: var(--gr-white);
}

/* Stato venduto: overlay con testo */
.gr-card-vehicle--sold .gr-card-vehicle__image::after {
    content: "VENDUTO";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gr-red-overlay);
    color: var(--gr-white);
    font-size: var(--gr-text-2xl);
    font-weight: 700;
    font-family: var(--gr-font-heading);
    letter-spacing: 0.1em;
    z-index: 2;
}

/* Variante lista orizzontale */
.gr-card-vehicle--list {
    flex-direction: row;
}

.gr-card-vehicle--list .gr-card-vehicle__image {
    width: 280px;
    min-width: 280px;
    aspect-ratio: auto;
}

.gr-card-vehicle--list .gr-card-vehicle__body {
    padding: var(--gr-space-4) var(--gr-space-6);
}

@media (max-width: 639px) {
    /* Card compatte per griglia 2 colonne su mobile */
    .gr-card-vehicle__body {
        padding: 0.5rem;
        overflow: hidden;
    }
    .gr-card-vehicle__title {
        font-size: var(--gr-text-sm);
        margin-bottom: 0.25rem;
    }
    .gr-card-vehicle__specs {
        gap: 0.15rem 0.35rem;
        flex-wrap: wrap;
        overflow: hidden;
    }
    .gr-card-vehicle__spec {
        font-size: 0.6rem; /* 9.6px — compatto per griglia 2 colonne mobile */
    }
    .gr-card-vehicle__spec--km {
        display: none; /* Km nascosti su mobile — visibili nella scheda */
    }
    .gr-card-vehicle__spec-icon {
        width: 11px;
        height: 11px;
    }
    .gr-card-vehicle__price {
        font-size: var(--gr-text-sm);
    }
    .gr-card-vehicle__cta {
        font-size: var(--gr-text-xs);
    }
    .gr-card-vehicle__footer {
        padding-top: 0.35rem;
    }
    .gr-card-vehicle__badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }

    /* Lista: stack verticale su mobile */
    .gr-card-vehicle--list {
        flex-direction: column;
    }
    .gr-card-vehicle--list .gr-card-vehicle__image {
        width: 100%;
        min-width: auto;
        aspect-ratio: 3 / 2;
    }
}

/* --- Card Vehicle extras ------------------------------------------------- */

.gr-card-vehicle__link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.gr-card-vehicle__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gr-light);
    color: var(--gr-gray);
    aspect-ratio: 3/2;
}

.gr-card-vehicle__sold-overlay {
    position: absolute;
    inset: 0;
    background: var(--gr-red-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.gr-card-vehicle__sold-overlay span {
    background: var(--gr-white);
    color: var(--gr-red);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: var(--gr-radius-sm);
    font-size: var(--gr-text-lg);
    letter-spacing: 0.05em;
}

.gr-card-vehicle__badge--epoca {
    background: var(--gr-navy);
    color: var(--gr-white);
}


/* ==========================================================================
   HEADER & TOPBAR
   ========================================================================== */

.gr-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--gr-white);
    box-shadow: var(--gr-shadow);
}

.gr-topbar {
    background: var(--gr-navy);
    color: var(--gr-white);
    font-size: var(--gr-text-xs);
    padding: 0.2rem 0;
    line-height: 1.3;
}
@media (max-width: 767px) {
    .gr-topbar { display: none; }
}

.gr-topbar a {
    color: var(--gr-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.gr-topbar a:hover { color: var(--gr-gold-accessible); }

.gr-topbar__contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.gr-topbar__social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.gr-topbar__social a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 1024px) {
    .gr-topbar__social a {
        min-width: 32px;
        min-height: 32px;
    }
}

/* --- Topbar aggiornata (v2) ---------------------------------------------- */

.gr-topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gr-topbar__address {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.85);
}
.gr-topbar__address svg {
    flex-shrink: 0;
}

.gr-topbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gr-topbar__lang {
    position: relative;
}
.gr-topbar__lang-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--gr-white);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--gr-text-xs);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 30px;
    transition: all 0.2s ease;
    letter-spacing: 0.03em;
}
.gr-topbar__lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gr-gold);
    color: var(--gr-gold);
}
.gr-topbar__lang-toggle:focus-visible {
    outline: 2px solid var(--gr-gold);
    outline-offset: 2px;
}
.gr-topbar__lang-list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--gr-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    min-width: 120px;
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    z-index: 110;
}
.gr-topbar__lang-list li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    color: var(--gr-dark);
    text-decoration: none;
    font-size: var(--gr-text-sm);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}
.gr-topbar__lang-list li a:hover,
.gr-topbar__lang-list li a:focus-visible {
    background: var(--gr-light);
    color: var(--gr-navy);
}
.gr-topbar__lang-list li a:focus-visible {
    outline: 2px solid var(--gr-gold);
    outline-offset: -2px;
}
.gr-topbar__lang-list li.current-lang a {
    color: var(--gr-navy);
    font-weight: 700;
    background: var(--gr-light);
}
/* Bandierine lingua — topbar toggle */
.gr-topbar__lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.15);
}
/* Bandierine lingua — dropdown lista */
.gr-topbar__lang-list a img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    vertical-align: middle;
}

.gr-topbar__cta {
    white-space: nowrap;
}


/* ==========================================================================
   NAVBAR
   ========================================================================== */

.gr-navbar {
    padding: 0.75rem 0;
}

.gr-navbar__logo a,
.gr-navbar__site-name {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-xl);
    font-weight: 700;
    color: var(--gr-navy);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.gr-navbar__logo img,
.gr-navbar__logo-img {
    height: 40px;
    width: auto;
    max-width: 220px;
}
@media (min-width: 640px) {
    .gr-navbar__logo img,
    .gr-navbar__logo-img {
        height: 46px;
        max-width: 280px;
    }
}

.gr-navbar__nav {
    display: none;
}
@media (min-width: 1024px) {
    .gr-navbar__nav { display: block; }
}

.gr-navbar__menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gr-navbar__menu li a {
    color: var(--gr-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--gr-text-base);
    padding: 0.5rem 0;
    transition: color var(--gr-transition);
}
.gr-navbar__menu li a:hover,
.gr-navbar__menu li.current-menu-item > a {
    color: var(--gr-navy);
}

.gr-navbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gr-navbar__search-btn,
.gr-navbar__lang-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--gr-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}
.gr-navbar__search-btn:hover,
.gr-navbar__lang-toggle:hover {
    color: var(--gr-navy);
}

.gr-navbar__lang {
    position: relative;
}

.gr-navbar__lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--gr-white);
    box-shadow: var(--gr-shadow-md);
    border-radius: var(--gr-radius-sm);
    min-width: 120px;
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0.5rem 0;
    z-index: 110;
}
.gr-navbar__lang-list li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gr-dark);
    text-decoration: none;
}
.gr-navbar__lang-list li a:hover {
    background: var(--gr-light);
}

.gr-navbar__hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
@media (min-width: 1024px) {
    .gr-navbar__hamburger { display: none; }
}

.gr-navbar__hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gr-dark);
    transition: var(--gr-transition);
}

/* --- Navbar aggiornata (v2) ---------------------------------------------- */

.gr-navbar__phone-btn {
    color: var(--gr-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    transition: color var(--gr-transition);
}
.gr-navbar__phone-btn:hover {
    color: var(--gr-navy);
}

/* CTA nell'header — visibile solo su desktop */
.gr-navbar__actions .gr-navbar__cta {
    display: none;
}
@media (min-width: 1024px) {
    .gr-navbar__actions .gr-navbar__cta { display: inline-flex; }
}


/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.gr-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--gr-white);
    overflow-y: auto;
}

.gr-mobile-menu__inner {
    padding: 1.5rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.gr-mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gr-mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gr-dark);
}

.gr-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gr-mobile-menu__list li {
    border-bottom: 1px solid var(--gr-border);
}
.gr-mobile-menu__list li a {
    display: block;
    padding: 1rem 0;
    color: var(--gr-dark);
    text-decoration: none;
    font-size: var(--gr-text-lg);
    font-weight: 500;
}

.gr-mobile-menu__lang {
    margin-top: 1.5rem;
}
.gr-mobile-menu__lang ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.gr-mobile-menu__lang a {
    color: var(--gr-dark);
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1.5px solid var(--gr-border);
    transition: all 0.2s ease;
    background: var(--gr-white);
}
/* Bandierine Polylang — mobile */
.gr-mobile-menu__lang a img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}
.gr-mobile-menu__lang a:hover,
.gr-mobile-menu__lang a:focus-visible {
    background: var(--gr-light);
    color: var(--gr-navy);
    border-color: var(--gr-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.gr-mobile-menu__lang a:focus-visible {
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}
.gr-mobile-menu__lang .current-lang a {
    background: var(--gr-navy);
    color: var(--gr-white);
    font-weight: 700;
    border-color: var(--gr-navy);
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.25);
}

/* Due bottoni CTA nel menu mobile — Chiama + WhatsApp */
.gr-mobile-menu__contact {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.gr-mobile-menu__contact .gr-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */

.gr-search-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(26, 58, 92, 0.97) 0%,
        rgba(15, 30, 50, 0.98) 100%
    );
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10vh 1rem 2rem;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    overflow-y: auto;
}

.gr-search-overlay[aria-hidden="false"],
.gr-search-overlay.is-active {
    opacity: 1;
    transform: translateY(0);
}

.gr-search-overlay[hidden] {
    display: none;
}

.gr-search-overlay__inner {
    width: 100%;
    max-width: 960px;
    padding: 0;
}

/* Titolo overlay ricerca */
.gr-search-overlay__inner::before {
    content: 'Cerca nel catalogo';
    display: block;
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-2xl);
    font-weight: 700;
    color: var(--gr-white);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.gr-search-overlay__input {
    width: 100%;
    padding: 18px 24px;
    font-size: var(--gr-text-xl);
    border: 2px solid transparent;
    border-radius: var(--gr-radius);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--gr-dark);
    min-height: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gr-search-overlay__input:focus {
    border-color: var(--gr-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(200, 168, 110, 0.3);
}
.gr-search-overlay__input:focus-visible {
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}

.gr-search-overlay__input::placeholder {
    color: var(--gr-gray);
}

.gr-search-overlay__results {
    margin-top: 1.5rem;
    background-color: var(--gr-white);
    border-radius: var(--gr-radius);
    max-height: 55vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.gr-search-overlay__results:empty {
    display: none;
}

.gr-search-overlay__item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--gr-border);
    transition: background-color 0.15s;
    color: var(--gr-dark);
    text-decoration: none;
}

.gr-search-overlay__item:last-child {
    border-bottom: none;
}

.gr-search-overlay__item:hover,
.gr-search-overlay__item--active {
    background-color: var(--gr-light);
}

.gr-search-overlay__close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--gr-white);
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s, transform 0.2s;
    z-index: 1;
}
.gr-search-overlay__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Shortcut hint sotto la barra ricerca */
.gr-search-overlay__hint {
    display: block;
    text-align: center;
    font-size: var(--gr-text-xs);
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .gr-search-overlay { padding-top: 12vh; }
    .gr-search-overlay__inner::before {
        font-size: var(--gr-text-3xl);
        margin-bottom: 2rem;
    }
}

/* --- Search overlay extra stili risultati -------------------------------- */

.gr-search-overlay__loading {
    padding: 1.5rem;
    text-align: center;
    color: var(--gr-gray);
    font-size: var(--gr-text-sm);
}

.gr-search-overlay__thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--gr-radius-sm);
    flex-shrink: 0;
    background: var(--gr-light);
}

.gr-search-overlay__thumb-placeholder {
    width: 64px;
    height: 48px;
    background: var(--gr-light);
    border-radius: var(--gr-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gr-gray);
}

.gr-search-overlay__item-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.gr-search-overlay__item-title {
    font-weight: 600;
    font-size: var(--gr-text-base);
    color: var(--gr-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-search-overlay__item-meta {
    font-size: var(--gr-text-sm);
    color: var(--gr-gray);
}

.gr-search-overlay__item--active,
.gr-search-overlay__item:focus {
    background: var(--gr-light);
    outline: 3px solid var(--gr-gold);
    outline-offset: -3px;
}

.gr-search-overlay__view-all {
    display: block;
    padding: 1rem 1.25rem;
    text-align: center;
    color: var(--gr-navy);
    font-weight: 600;
    font-size: var(--gr-text-base);
    text-decoration: none;
    border-top: 2px solid var(--gr-border);
    transition: background-color var(--gr-transition), color var(--gr-transition);
}
.gr-search-overlay__view-all:hover {
    background: var(--gr-navy);
    color: var(--gr-white);
}

.gr-search-overlay__empty {
    padding: 2rem;
    text-align: center;
    color: var(--gr-gray);
    font-size: var(--gr-text-base);
}
.gr-search-overlay__empty a {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--gr-navy);
    font-weight: 600;
    text-decoration: underline;
}

/* --- Search overlay form layout ------------------------------------------ */

.gr-search-overlay__form {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
}
.gr-search-overlay__input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--gr-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gr-search-overlay__input-wrap:focus-within {
    border-color: var(--gr-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(200, 168, 110, 0.3);
}
/* Rimuoviamo bordo e ombra dall'input singolo, ora è nel wrapper */
.gr-search-overlay__input-wrap .gr-search-overlay__input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    flex: 1;
    min-width: 0;
}
.gr-search-overlay__input-wrap .gr-search-overlay__input:focus {
    border: none;
    box-shadow: none;
}
.gr-search-overlay__input-wrap .gr-search-overlay__input:focus-visible {
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}
/* Separatore verticale */
.gr-search-overlay__scope-divider {
    width: 1px;
    height: 32px;
    background: var(--gr-border);
    flex-shrink: 0;
}
/* Select ambito ricerca — integrato nel campo */
.gr-search-overlay__scope {
    padding: 0 16px;
    border: none;
    background: transparent;
    color: var(--gr-navy);
    font-size: var(--gr-text-sm);
    font-weight: 500;
    font-family: var(--gr-font-body);
    cursor: pointer;
    min-height: 60px;
    appearance: auto;
    white-space: nowrap;
    flex-shrink: 0;
}
.gr-search-overlay__scope:focus-visible {
    outline: 3px solid var(--gr-gold);
    outline-offset: -3px;
    border-radius: var(--gr-radius-sm);
}
.gr-search-overlay__scope option {
    background: var(--gr-white);
    color: var(--gr-dark);
}
/* Bottone cerca — invertito su sfondo scuro: bianco con icona navy */
.gr-search-overlay__form .gr-btn {
    flex-shrink: 0;
    min-width: 60px;
    min-height: 60px;
    padding: 0 1.25rem;
    border-radius: var(--gr-radius);
    background-color: var(--gr-white);
    color: var(--gr-navy);
    border: 2px solid var(--gr-white);
    transition: background-color var(--gr-transition),
                color var(--gr-transition),
                border-color var(--gr-transition),
                box-shadow var(--gr-transition);
}
.gr-search-overlay__form .gr-btn:hover {
    background-color: var(--gr-gold);
    color: var(--gr-white);
    border-color: var(--gr-gold);
    box-shadow: 0 4px 16px rgba(200, 168, 110, 0.4);
}
.gr-search-overlay__form .gr-btn:focus-visible {
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}
.gr-search-overlay__form .gr-btn:active {
    transform: scale(0.96);
}
.gr-search-overlay__form .gr-btn svg {
    stroke: currentColor;
}
/* Mobile: layout verticale per l'overlay ricerca */
@media (max-width: 639px) {
    .gr-search-overlay__form {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .gr-search-overlay__input-wrap {
        flex: 1 1 100%;
        flex-wrap: wrap;
        order: 1;
    }
    .gr-search-overlay__input-wrap .gr-search-overlay__input {
        min-height: 52px;
        font-size: var(--gr-text-base);
        width: 100%;
    }
    .gr-search-overlay__scope-divider {
        width: 100%;
        height: 1px;
    }
    .gr-search-overlay__scope {
        width: 100%;
        min-height: 44px;
        padding: 8px 16px;
    }
    /* Bottoni vocale e cerca in riga sotto il campo */
    .gr-voice-search-btn {
        order: 2;
        width: 48px;
        height: 48px;
    }
    .gr-search-overlay__form .gr-btn {
        order: 3;
        flex: 1;
        min-height: 48px;
    }
}

/* --- Bottone ricerca vocale ---------------------------------------------- */

.gr-voice-search-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--gr-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--gr-white);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    position: relative;
}
.gr-voice-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}
.gr-voice-search-btn:focus-visible {
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}

/* Icona stop nascosta di default, visibile quando attivo */
.gr-voice-search-btn__stop {
    display: none;
}
.gr-voice-search-btn--active .gr-voice-search-btn__mic {
    display: none;
}
.gr-voice-search-btn--active .gr-voice-search-btn__stop {
    display: block;
}

/* Stato attivo: sfondo rosso con animazione pulsante */
.gr-voice-search-btn--active {
    background: var(--gr-red);
    border-color: var(--gr-red);
    color: var(--gr-white);
    animation: gr-voice-pulse 1.5s ease-in-out infinite;
}

@keyframes gr-voice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* Nascosto quando browser non supporta (hidden attr) */
.gr-voice-search-btn[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .gr-voice-search-btn--active {
        animation: none;
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
    }
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.gr-footer {
    background: var(--gr-navy);
    color: var(--gr-white);
    padding-top: var(--gr-space-12);
}

.gr-footer a {
    color: var(--gr-white);
    text-decoration: none;
    transition: color var(--gr-transition);
}
.gr-footer a:hover {
    color: var(--gr-gold-accessible);
}

.gr-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gr-space-8);
    padding-bottom: var(--gr-space-8);
}
@media (min-width: 640px) {
    .gr-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .gr-footer__grid { grid-template-columns: repeat(4, 1fr); }
}

.gr-footer__col {}

.gr-footer__logo {
    margin-bottom: 1rem;
}
.gr-footer__logo img,
.gr-footer__logo-img {
    max-height: 70px;
    width: auto;
}

.gr-footer__site-name {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-xl);
    font-weight: 700;
}

.gr-footer__desc {
    font-size: var(--gr-text-sm);
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.gr-footer__vat {
    font-size: var(--gr-text-xs);
    color: rgba(255,255,255,0.5);
}

.gr-footer__heading {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-lg);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gr-gold-accessible);
}

.gr-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gr-footer__links li { margin-bottom: 0.5rem; }
.gr-footer__links a { font-size: var(--gr-text-sm); }

.gr-footer__address {
    font-style: normal;
    font-size: var(--gr-text-sm);
    line-height: 1.7;
}
.gr-footer__address p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.gr-footer__address svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
    stroke: var(--gr-gold);
}

.gr-footer__social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.gr-footer__social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--gr-text-sm);
    padding: 0.4rem;
    min-width: 44px;
    min-height: 44px;
}
.gr-footer__social svg {
    flex-shrink: 0;
}

.gr-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 1.5rem 0;
}

.gr-footer__copyright {
    font-size: var(--gr-text-sm);
    color: rgba(255,255,255,0.85);
    margin: 0;
}

.gr-footer__legal {
    display: flex;
    gap: 1.5rem;
}
.gr-footer__legal a {
    font-size: var(--gr-text-sm);
    color: rgba(255,255,255,0.85);
}
.gr-footer__legal a:hover {
    color: var(--gr-gold-accessible);
}

/* --- Footer v2 (hours, zones) -------------------------------------------- */

.gr-footer__col--brand {
    grid-column: 1 / -1;
}
@media (min-width: 1024px) {
    .gr-footer__col--brand { grid-column: auto; }
}

.gr-footer__hours {
    font-size: var(--gr-text-sm);
}
.gr-footer__hours-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.gr-footer__hours-row:last-child {
    border-bottom: none;
}
.gr-footer__hours-row span {
    color: rgba(255,255,255,0.6);
    font-size: var(--gr-text-xs);
    margin-bottom: 0.15rem;
}
.gr-footer__hours-row strong {
    color: var(--gr-white);
    font-weight: 500;
}
.gr-footer__hours-row--closed strong {
    color: var(--gr-red);
}

.gr-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.gr-footer__bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.gr-footer__bottom .gr-footer__social {
    display: flex;
    gap: 0.75rem;
}
.gr-footer__bottom .gr-footer__social a {
    color: rgba(255,255,255,0.75);
    transition: color var(--gr-transition);
}
.gr-footer__bottom .gr-footer__social a:hover {
    color: var(--gr-gold-accessible);
}

.gr-footer__credit {
    text-align: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.gr-footer__credit p {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.gr-footer__credit a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--gr-transition);
}

.gr-footer__credit a:hover {
    color: var(--gr-gold-accessible);
}

.gr-footer__credit-logo {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: auto;
    opacity: 0.7;
    transition: opacity var(--gr-transition);
    margin-left: 0.25rem;
}

.gr-footer__credit a:hover .gr-footer__credit-logo {
    opacity: 1;
}


/* ==========================================================================
   PAGE LAYOUT (pagine generiche)
   ========================================================================== */

.gr-page-featured {
    margin: 0 0 var(--gr-space-8);
}

.gr-page-featured img {
    width: 100%;
    height: auto;
    border-radius: var(--gr-radius);
}

.gr-page-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.gr-page-content p {
    margin-bottom: 1em;
}

.gr-page-content h2,
.gr-page-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: var(--gr-navy);
}

.gr-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--gr-radius);
}

.gr-page-content ul,
.gr-page-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.gr-page-content blockquote {
    border-left: 4px solid var(--gr-gold);
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: var(--gr-light);
    border-radius: 0 var(--gr-radius) var(--gr-radius) 0;
    font-style: italic;
    color: var(--gr-gray);
}

/* ==========================================================================
   SINGLE POST (blog articoli)
   ========================================================================== */

/* Categorie nell'hero */
.gr-single-post__cats--hero {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.gr-single-post__cat--hero {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: var(--gr-text-sm);
    font-weight: 600;
    border-radius: var(--gr-radius-sm, 6px);
    text-decoration: none;
    transition: background 0.2s;
}

.gr-single-post__cat--hero:hover,
.gr-single-post__cat--hero:focus {
    background: var(--gr-gold);
    color: #fff;
}

/* Meta nell'hero */
.gr-single-post__meta--hero {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--gr-text-sm);
    align-items: center;
    margin-top: 1rem;
}

.gr-single-post__date,
.gr-single-post__author {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gr-single-post__featured {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.gr-single-post__featured img {
    width: 100%;
    height: auto;
    border-radius: var(--gr-radius);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Placeholder quando manca l'immagine in evidenza */
.gr-single-post__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--gr-navy) 0%, #2a4f7a 100%);
    border-radius: var(--gr-radius);
    color: rgba(255, 255, 255, 0.3);
}

.gr-single-post__placeholder span {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-lg, 1.125rem);
    letter-spacing: 0.05em;
}

/* Tag */
.gr-single-post__tags {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gr-border);
}

.gr-single-post__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gr-light);
    color: var(--gr-gray);
    font-size: var(--gr-text-sm);
    border-radius: var(--gr-radius-sm, 6px);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.gr-single-post__tag:hover,
.gr-single-post__tag:focus {
    background: var(--gr-gold);
    color: #fff;
}

/* Navigazione prev/next */
.gr-post-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gr-border);
}

@media (min-width: 640px) {
    .gr-post-nav {
        flex-direction: row;
        justify-content: space-between;
    }
}

.gr-post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    background: var(--gr-light);
    border-radius: var(--gr-radius);
    text-decoration: none;
    transition: background 0.2s;
    max-width: 50%;
}

.gr-post-nav__link:hover,
.gr-post-nav__link:focus {
    background: var(--gr-navy);
}

.gr-post-nav__link:hover .gr-post-nav__label,
.gr-post-nav__link:hover .gr-post-nav__title,
.gr-post-nav__link:focus .gr-post-nav__label,
.gr-post-nav__link:focus .gr-post-nav__title {
    color: #fff;
}

.gr-post-nav__link--next {
    text-align: right;
    margin-left: auto;
}

.gr-post-nav__label {
    font-size: var(--gr-text-sm);
    color: var(--gr-gray);
    transition: color 0.2s;
}

.gr-post-nav__title {
    font-weight: 600;
    color: var(--gr-dark);
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   BADGES (frontend)
   ========================================================================== */

.gr-badge-available,
.gr-badge-sold,
.gr-badge-featured {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--gr-radius-sm);
    font-size: var(--gr-text-sm);
    font-weight: 600;
    line-height: 1.4;
}
.gr-badge-available {
    background: #D1FAE5;
    color: var(--gr-green);
}
.gr-badge-sold {
    background: #FEE2E2;
    color: var(--gr-red);
}
.gr-badge-featured {
    background: #FEF3C7;
    color: #D97706;
}


/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.gr-breadcrumb {
    margin-bottom: var(--gr-space-6);
    font-size: var(--gr-text-sm);
}
.gr-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}
.gr-breadcrumb li::after {
    content: '\203A';
    margin-left: 0.5rem;
    color: var(--gr-gray);
}
.gr-breadcrumb li:last-child::after {
    display: none;
}
.gr-breadcrumb a {
    color: var(--gr-navy);
    text-decoration: none;
}
.gr-breadcrumb a:hover {
    text-decoration: underline;
}
.gr-breadcrumb [aria-current="page"] {
    color: var(--gr-gray);
}


/* ==========================================================================
   FORM GROUP
   ========================================================================== */

.gr-form-group {
    margin-bottom: 1rem;
}
.gr-form-group label {
    display: block;
    font-weight: 600;
    font-size: var(--gr-text-sm);
    margin-bottom: 0.375rem;
    color: var(--gr-dark);
}
.gr-form-group input,
.gr-form-group textarea,
.gr-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    font-size: var(--gr-text-base);
    font-family: var(--gr-font-body);
    min-height: 44px;
    transition: border-color var(--gr-transition);
}
.gr-form-group input:focus,
.gr-form-group textarea:focus,
.gr-form-group select:focus {
    border-color: var(--gr-navy);
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}
.gr-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.gr-form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.gr-form-group--checkbox input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    min-height: 20px;
    margin-top: 0.15rem;
}
.gr-form-group--checkbox label {
    font-weight: 400;
    margin-bottom: 0;
}

.gr-form-error {
    color: var(--gr-red);
    font-size: var(--gr-text-sm);
    margin-top: 0.25rem;
}

/* Mostra solo quando il JS rimuove hidden */
.gr-form-error:not([hidden]) {
    display: block;
}

/* --- Form Group stato errore --------------------------------------------- */

.gr-form-group--error input,
.gr-form-group--error textarea,
.gr-form-group--error select {
    border-color: var(--gr-red);
}

.gr-form-group--error input:focus,
.gr-form-group--error textarea:focus,
.gr-form-group--error select:focus {
    outline-color: var(--gr-red);
}

/* Campo opzionale */
.gr-form-optional {
    font-size: var(--gr-text-xs);
    color: var(--gr-gray);
    font-weight: 400;
    margin-left: 0.25rem;
}

/* --- Form Row (2 colonne) ------------------------------------------------ */

.gr-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gr-space-4);
}
@media (min-width: 480px) {
    .gr-form-row {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================================
   CONTACT LAYOUT
   ========================================================================== */

.gr-contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gr-space-12);
}
@media (min-width: 1024px) {
    .gr-contact-layout { grid-template-columns: 1fr 1fr; }
}

.gr-contact-layout__form h2 {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-2xl);
    color: var(--gr-navy);
    margin-bottom: var(--gr-space-6);
}

.gr-contact-form {}

.gr-contact-info {
    margin-bottom: var(--gr-space-6);
}
.gr-contact-info h2,
.gr-contact-info h3 {
    font-family: var(--gr-font-heading);
    color: var(--gr-navy);
    margin-bottom: 0.75rem;
}
.gr-contact-info h2 { font-size: var(--gr-text-2xl); }
.gr-contact-info h3 { font-size: var(--gr-text-lg); }

.gr-contact-info address {
    font-style: normal;
    line-height: 1.7;
}

.gr-contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gr-contact-info__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.gr-contact-info__list svg {
    flex-shrink: 0;
    color: var(--gr-navy);
}
.gr-contact-info__list a {
    color: var(--gr-navy);
    text-decoration: none;
}
.gr-contact-info__list a:hover {
    color: var(--gr-gold);
}

.gr-contact-info__hours {
    width: 100%;
    border-collapse: collapse;
}
.gr-contact-info__hours th,
.gr-contact-info__hours td {
    padding: 0.5rem 0;
    text-align: left;
    border-bottom: 1px solid var(--gr-border);
}
.gr-contact-info__hours th {
    font-weight: 600;
}

.gr-contact-map {
    margin-top: var(--gr-space-6);
}
.gr-contact-map h3 {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-lg);
    color: var(--gr-navy);
    margin-bottom: 0.75rem;
}
.gr-contact-map__embed {
    border-radius: var(--gr-radius-sm);
    overflow: hidden;
}
.gr-contact-map__embed--full {
    border-radius: var(--gr-radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.gr-contact-map__embed--full iframe { display: block; }

.gr-contact-layout__info {}


/* ==========================================================================
   TEAM GRID
   ========================================================================== */

.gr-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gr-space-6);
}
@media (min-width: 640px) { .gr-team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gr-team-grid { grid-template-columns: repeat(4, 1fr); } }

.gr-team-card {
    background: var(--gr-white);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius);
    padding: var(--gr-space-5);
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.gr-team-card:hover {
    border-color: var(--gr-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) { .gr-team-card:hover { transform: none; } }

.gr-team-card__photo-wrap {
    width: 120px; height: 120px;
    margin: 0 auto var(--gr-space-4);
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--gr-border);
    transition: border-color 0.2s ease;
}
.gr-team-card:hover .gr-team-card__photo-wrap { border-color: var(--gr-gold); }

.gr-team-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.gr-team-card__initial {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    background: var(--gr-navy); color: var(--gr-white);
    font-family: var(--gr-font-heading); font-size: 2.5rem; font-weight: 700;
}

.gr-team-card__name {
    font-family: var(--gr-font-heading); font-size: var(--gr-text-base);
    font-weight: 700; color: var(--gr-navy);
    margin: 0 0 0.25rem; text-transform: uppercase; letter-spacing: 0.02em;
}

.gr-team-card__role {
    font-size: var(--gr-text-sm); color: var(--gr-gray);
    margin: 0 0 var(--gr-space-3); line-height: 1.4;
}

.gr-team-card__phone {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: var(--gr-text-sm); color: var(--gr-navy);
    text-decoration: none; font-weight: 500; transition: color 0.2s ease;
}
.gr-team-card__phone:hover { color: var(--gr-gold); }
.gr-team-card__phone svg { flex-shrink: 0; }


/* ==========================================================================
   CONTACT INFO CARDS
   ========================================================================== */

.gr-contact-info-card {
    display: flex; gap: var(--gr-space-4);
    padding: var(--gr-space-5);
    background: var(--gr-white); border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius); margin-bottom: var(--gr-space-4);
    transition: border-color 0.2s ease;
}
.gr-contact-info-card:hover { border-color: var(--gr-gold); }
.gr-contact-info-card:last-child { margin-bottom: 0; }

.gr-contact-info-card__icon {
    flex-shrink: 0; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gr-light); border-radius: var(--gr-radius-sm);
    color: var(--gr-navy);
}
.gr-contact-info-card__icon--whatsapp { background: #dcf8c6; color: #25d366; }

.gr-contact-info-card h3 {
    font-family: var(--gr-font-heading); font-size: var(--gr-text-base);
    font-weight: 700; color: var(--gr-navy); margin: 0 0 0.25rem;
}

.gr-contact-info-card address { font-style: normal; line-height: 1.7; font-size: var(--gr-text-sm); color: var(--gr-dark); }
.gr-contact-info-card address small { color: var(--gr-gray); }

.gr-contact-info-card a { color: var(--gr-navy); text-decoration: none; font-size: var(--gr-text-sm); transition: color 0.2s ease; }
.gr-contact-info-card a:hover { color: var(--gr-gold); }

.gr-contact-info-card--hours .gr-contact-info__hours { width: 100%; border-collapse: collapse; font-size: var(--gr-text-sm); }
.gr-contact-info-card--hours .gr-contact-info__hours th,
.gr-contact-info-card--hours .gr-contact-info__hours td { padding: 0.35rem 0; text-align: left; border-bottom: 1px solid var(--gr-border); font-size: var(--gr-text-sm); }
.gr-contact-info-card--hours .gr-contact-info__hours th { font-weight: 600; color: var(--gr-dark); white-space: nowrap; padding-right: var(--gr-space-3); }
.gr-contact-info-card--hours .gr-contact-info__hours--closed td { color: var(--gr-red); font-weight: 600; }

.gr-contact-social { display: flex; flex-wrap: wrap; gap: var(--gr-space-3); }
.gr-contact-social__link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 0.75rem; background: var(--gr-light);
    border-radius: 999px; font-size: var(--gr-text-sm);
    color: var(--gr-dark); text-decoration: none; font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}
.gr-contact-social__link:hover { background: var(--gr-navy); color: var(--gr-white); }
.gr-contact-social__link svg { flex-shrink: 0; }

.gr-form-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) { .gr-form-row { grid-template-columns: 1fr 1fr; gap: var(--gr-space-4); } }

.gr-input--readonly { background: var(--gr-light); cursor: not-allowed; opacity: 0.8; }


/* ==========================================================================
   SERVICE DETAIL
   ========================================================================== */

.gr-service-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--gr-space-6);
    padding: var(--gr-space-8) 0;
    border-bottom: 1px solid var(--gr-border);
    align-items: start;
}
@media (max-width: 767px) {
    .gr-service-detail { grid-template-columns: 1fr; text-align: center; }
}

.gr-service-detail--alt { background: transparent; }

.gr-service-detail__icon {
    padding-top: 0.25rem;
}
@media (max-width: 767px) {
    .gr-service-detail__icon { display: flex; justify-content: center; }
}

.gr-service-detail__content h2 {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-2xl);
    color: var(--gr-navy);
    margin-bottom: 1rem;
}
.gr-service-detail__content p {
    color: var(--gr-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.gr-service-detail__content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}
.gr-service-detail__content li {
    margin-bottom: 0.5rem;
    color: var(--gr-dark);
}


/* ==========================================================================
   404 PAGE
   ========================================================================== */

.gr-404 {
    min-height: 50vh;
    display: flex;
    align-items: center;
}
.gr-404__content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.gr-404__icon {
    margin-bottom: var(--gr-space-4);
}
.gr-404__content h1 {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-3xl);
    color: var(--gr-navy);
    margin-bottom: 0.75rem;
}
.gr-404__content > p {
    color: var(--gr-gray);
    margin-bottom: var(--gr-space-8);
}

.gr-404__search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--gr-space-8);
}
.gr-404__search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    font-size: var(--gr-text-base);
    min-height: 44px;
}
.gr-404__search input:focus {
    border-color: var(--gr-navy);
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}

.gr-404__links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}


/* ==========================================================================
   SEARCH RESULTS
   ========================================================================== */

/* --- Search inline form (pagina risultati) ------------------------------- */

.gr-search-inline {
    display: flex;
    gap: 0.5rem;
    margin-bottom: var(--gr-space-8);
    max-width: 700px;
    align-items: stretch;
}
.gr-search-inline__fields {
    flex: 1;
    display: flex;
    gap: 0.5rem;
}
.gr-search-inline__fields input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    font-size: var(--gr-text-base);
    min-height: 44px;
}
.gr-search-inline__fields input[type="search"]:focus {
    border-color: var(--gr-navy);
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}
.gr-search-inline__scope {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--gr-border);
    border-radius: var(--gr-radius-sm);
    background: var(--gr-white);
    color: var(--gr-dark);
    font-size: var(--gr-text-sm);
    font-family: var(--gr-font-body);
    min-height: 44px;
    cursor: pointer;
    white-space: nowrap;
}
.gr-search-inline__scope:focus {
    border-color: var(--gr-navy);
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}
@media (max-width: 639px) {
    .gr-search-inline {
        flex-wrap: wrap;
    }
    .gr-search-inline__fields {
        width: 100%;
    }
    .gr-search-inline__fields input[type="search"] {
        min-width: 0;
    }
}

/* --- Titolo sezione risultati -------------------------------------------- */

.gr-search-section__title {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-xl);
    color: var(--gr-navy);
    margin: var(--gr-space-8) 0 var(--gr-space-4);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gr-gold);
}
.gr-search-section__title:first-of-type {
    margin-top: 0;
}

/* --- Griglia risultati --------------------------------------------------- */

.gr-search-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gr-gap);
    margin-bottom: var(--gr-space-6);
}
@media (min-width: 640px) {
    .gr-search-results {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .gr-search-results--vehicles {
        grid-template-columns: repeat(3, 1fr);
    }
    .gr-search-results--content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Card risultato generico (articoli/pagine) --------------------------- */

.gr-search-result {
    background: var(--gr-white);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius);
    overflow: hidden;
    transition: box-shadow var(--gr-transition), transform var(--gr-transition);
}
.gr-search-result:hover {
    box-shadow: var(--gr-shadow-md);
    transform: translateY(-2px);
}
.gr-search-result__link {
    display: flex;
    color: inherit;
    text-decoration: none;
    height: 100%;
}
.gr-search-result__image {
    width: 140px;
    min-height: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--gr-light);
}
.gr-search-result__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gr-search-result__body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.gr-search-result__type {
    font-size: var(--gr-text-xs);
    color: var(--gr-gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.gr-search-result__title {
    font-size: var(--gr-text-lg);
    font-weight: 600;
    color: var(--gr-navy);
    margin: 0;
    line-height: 1.3;
}
.gr-search-result__excerpt {
    font-size: var(--gr-text-sm);
    color: var(--gr-gray);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gr-search-result__date {
    font-size: var(--gr-text-xs);
    color: var(--gr-gray);
    margin-top: auto;
}
@media (max-width: 639px) {
    .gr-search-result__link {
        flex-direction: column;
    }
    .gr-search-result__image {
        width: 100%;
        min-height: auto;
        aspect-ratio: 16 / 10;
    }
}


/* ==========================================================================
   HONEYPOT ANTI-SPAM (nascosto)
   ========================================================================== */

.gr-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}


/* ==========================================================================
   FORM FEEDBACK AJAX
   ========================================================================== */

.gr-form-feedback {
    margin-top: var(--gr-space-4);
    padding: 0;
    font-size: var(--gr-text-sm);
    border-radius: var(--gr-radius-sm);
    transition: all var(--gr-transition);
}

.gr-form-feedback:not(:empty) {
    padding: var(--gr-space-3) var(--gr-space-4);
}

.gr-form-feedback--success {
    background-color: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.gr-form-feedback--error {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}


/* ==========================================================================
   CTA SECTION (riutilizzabile navy/gold)
   ========================================================================== */

.gr-cta-section {
    padding: var(--gr-space-12) var(--gr-space-8);
    text-align: center;
    border-radius: var(--gr-radius);
}

.gr-cta-section h2 {
    font-family: var(--gr-font-heading);
    font-style: italic;
    margin-bottom: var(--gr-space-4);
}

.gr-cta-section p {
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--gr-space-6);
    line-height: 1.6;
}

.gr-cta-section--navy {
    background-color: var(--gr-navy);
    color: var(--gr-white);
}

.gr-cta-section--navy h2 {
    color: var(--gr-white);
}

.gr-cta-section--navy p {
    color: rgba(255, 255, 255, 0.85);
}

.gr-cta-section--gold {
    background-color: var(--gr-gold);
    color: var(--gr-navy);
}

.gr-cta-section--gold h2 {
    color: var(--gr-navy);
}

.gr-cta-section--gold p {
    color: var(--gr-dark);
}

/* --- CTA Section v2 (inner layout con due bottoni) ----------------------- */

.gr-cta-section__inner {
    display: flex;
    flex-direction: column;
    gap: var(--gr-space-6);
    align-items: center;
    text-align: center;
}
@media (min-width: 768px) {
    .gr-cta-section__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}
.gr-cta-section__text {
    flex: 1;
}
.gr-cta-section__text h2 {
    margin-bottom: var(--gr-space-2);
}
.gr-cta-section__text p {
    margin: 0;
}
.gr-cta-section__actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}


/* ==========================================================================
   MOBILE RESPONSIVE FIXES (shared components)
   ========================================================================== */

/* Griglia: 2 colonne su mobile, con min-width: 0 per prevenire overflow */
@media (max-width: 639px) {
    .gr-grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .gr-grid-3 > * {
        min-width: 0;
    }
}

/* Tablet: griglia 2 colonne */
@media (min-width: 640px) and (max-width: 1023px) {
    .gr-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}


/* ==========================================================================
   ARCHIVE HERO (.gr-archive-hero) — sfondo navy con breadcrumb + titolo
   Usato in: archivi veicoli, servizi, blog, singolo articolo
   ========================================================================== */

/* ── Base: sfondo navy, testo centrato, hero compatto ── */
.gr-archive-hero {
    position: relative;
    background: var(--gr-navy);
    padding: var(--gr-space-4) 0 var(--gr-space-6);
    margin-bottom: 0;
    text-align: center;
}

.gr-archive-hero .gr-container {
    position: relative;
    z-index: 2;
}

.gr-archive-hero h1 {
    font-family: var(--gr-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--gr-white);
    margin: 0 0 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gr-archive-hero__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--gr-text-sm);
    max-width: 860px;
    margin: 0 auto 0;
    line-height: 1.6;
}

/* ── Variante con immagine di sfondo ── */
.gr-archive-hero--with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--gr-space-6) 0 var(--gr-space-8);
}

.gr-archive-hero--with-bg h1 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gr-archive-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.78), rgba(26, 58, 92, 0.55));
    z-index: 1;
}

/* Breadcrumb nel hero — allineato a sinistra, colori chiari */
.gr-archive-hero .gr-breadcrumb {
    margin-bottom: var(--gr-space-3);
    text-align: left;
}
.gr-archive-hero .gr-breadcrumb a,
.gr-archive-hero .gr-breadcrumb .rank-math-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.gr-archive-hero .gr-breadcrumb a:hover,
.gr-archive-hero .gr-breadcrumb .rank-math-breadcrumb a:hover {
    color: var(--gr-white);
    text-decoration: underline;
}
/* Separatori: <li>::after (standard) + Rank Math .separator */
.gr-archive-hero .gr-breadcrumb li::after,
.gr-archive-hero .gr-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.7);
}
/* Pagina corrente: Rank Math usa .last */
.gr-archive-hero .gr-breadcrumb [aria-current="page"],
.gr-archive-hero .gr-breadcrumb .last {
    color: rgba(255, 255, 255, 0.95);
}
/* Testo generico dentro Rank Math breadcrumb */
.gr-archive-hero .rank-math-breadcrumb,
.gr-archive-hero .rank-math-breadcrumb p {
    color: rgba(255, 255, 255, 0.9);
}

/* ── Variante marca: layout orizzontale con logo ── */
.gr-archive-hero--brand {
    text-align: left;
}

.gr-archive-hero__brand-row {
    display: flex;
    align-items: flex-start;
    gap: var(--gr-space-6);
}

.gr-archive-hero__brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--gr-white);
    border-radius: var(--gr-radius);
    padding: 0.5rem;
}

.gr-archive-hero__brand-info {
    flex: 1;
    min-width: 0;
}
.gr-archive-hero__brand-info .gr-archive-hero__subtitle {
    margin: 0 0 0;
}

/* Desktop: hero più spazioso */
@media (min-width: 1024px) {
    .gr-archive-hero {
        padding: var(--gr-space-6) 0 var(--gr-space-6);
    }
    .gr-archive-hero--with-bg {
        padding: var(--gr-space-6) 0 var(--gr-space-8);
    }
    .gr-archive-hero__subtitle {
        font-size: var(--gr-text-base);
    }
    .gr-archive-hero__brand-logo {
        width: 100px;
        height: 100px;
    }
}

/* Mobile: logo brand compatto */
@media (max-width: 479px) {
    .gr-archive-hero__brand-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .gr-archive-hero__brand-logo {
        width: 64px;
        height: 64px;
    }
    .gr-archive-hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── Stats e navigazione dentro hero (pagina marchi) ── */
.gr-archive-hero__stats {
    display: flex;
    gap: var(--gr-space-8);
    justify-content: center;
    margin-top: var(--gr-space-6);
    flex-wrap: wrap;
}

.gr-archive-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.gr-archive-hero__stat strong {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-2xl);
    color: var(--gr-white);
    line-height: 1;
}

.gr-archive-hero__stat span {
    font-size: var(--gr-text-sm);
    color: rgba(255, 255, 255, 0.75);
}

.gr-archive-hero__nav {
    display: flex;
    gap: var(--gr-space-3);
    justify-content: center;
    margin-top: var(--gr-space-6);
    flex-wrap: wrap;
}

/* Badge conteggio dentro bottoni nav hero */
.gr-archive-hero__nav .gr-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--gr-white);
    font-size: var(--gr-text-xs);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.375rem;
}


/* ==========================================================================
   PAGE HERO — Header pagine interne (legacy, mantenuto per compatibilità)
   ========================================================================== */

.gr-page-hero {
    background: var(--gr-light);
    padding: var(--gr-space-10) 0 var(--gr-space-8);
    border-bottom: 1px solid var(--gr-border);
}

.gr-page-hero h1 {
    font-family: var(--gr-font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--gr-navy);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.gr-page-hero__subtitle {
    color: var(--gr-gray);
    font-size: var(--gr-text-lg);
    max-width: 640px;
    margin: 0 0 var(--gr-space-6);
    line-height: 1.6;
}

/* Hero centrato con sfondo immagine (Contatti) */
.gr-page-hero--contatti { text-align: center; }
.gr-page-hero--contatti h1 { margin-left: auto; margin-right: auto; }
.gr-page-hero--contatti .gr-page-hero__subtitle { margin-left: auto; margin-right: auto; }

.gr-page-hero--with-bg {
    position: relative;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding: var(--gr-space-16) 0 var(--gr-space-12);
    border-bottom: none;
}
.gr-page-hero--with-bg .gr-container { position: relative; z-index: 2; }
.gr-page-hero--with-bg h1 { color: var(--gr-white); text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.gr-page-hero--with-bg .gr-page-hero__subtitle { color: rgba(255,255,255,0.9); }
.gr-page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,58,92,0.75), rgba(26,58,92,0.55)); z-index: 1; }

.gr-breadcrumb--light a { color: rgba(255,255,255,0.8); }
.gr-breadcrumb--light a:hover { color: var(--gr-white); }
.gr-breadcrumb--light li { color: rgba(255,255,255,0.9); }
.gr-breadcrumb--light li::before { color: rgba(255,255,255,0.7); }

.gr-page-hero__stats {
    display: flex;
    gap: var(--gr-space-8);
    margin-bottom: var(--gr-space-6);
    flex-wrap: wrap;
}

.gr-page-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.gr-page-hero__stat strong {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-2xl);
    color: var(--gr-navy);
    line-height: 1;
}

.gr-page-hero__stat span {
    font-size: var(--gr-text-sm);
    color: var(--gr-gray);
}

.gr-page-hero__nav {
    display: flex;
    gap: var(--gr-space-3);
    flex-wrap: wrap;
}

.gr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 0.375rem;
    border-radius: 999px;
    background: var(--gr-navy);
    color: var(--gr-white);
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.375rem;
}

@media (max-width: 639px) {
    .gr-page-hero {
        padding: var(--gr-space-6) 0;
    }
    .gr-page-hero__stats {
        gap: var(--gr-space-4);
    }
    .gr-page-hero__stat strong {
        font-size: var(--gr-text-xl);
    }
}


/* ==========================================================================
   BRAND TILE — Griglia loghi pagina marchi dedicata
   ========================================================================== */

/* Griglia marchi — mobile-first */
.gr-brand-grid--page {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gr-space-4);
}

@media (min-width: 480px) {
    .gr-brand-grid--page {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .gr-brand-grid--page {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--gr-space-6);
    }
}

@media (min-width: 1024px) {
    .gr-brand-grid--page {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Tile marchio — mobile-first */
.gr-brand-tile__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: var(--gr-space-4) var(--gr-space-3);
    background: var(--gr-white);
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-radius);
    transition: box-shadow var(--gr-transition), border-color var(--gr-transition), transform var(--gr-transition);
    color: var(--gr-dark);
    min-height: 130px;
    justify-content: center;
}

@media (min-width: 768px) {
    .gr-brand-tile__link {
        padding: var(--gr-space-5) var(--gr-space-4);
        min-height: 160px;
    }
}

.gr-brand-tile__link:hover,
.gr-brand-tile__link:focus-visible {
    border-color: var(--gr-gold);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.gr-brand-tile__link:focus-visible {
    outline: 3px solid var(--gr-gold);
    outline-offset: 2px;
}

/* Logo e iniziale marchio — mobile-first */
.gr-brand-tile__logo {
    display: block;
    max-width: 72px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: var(--gr-space-2);
}

@media (min-width: 768px) {
    .gr-brand-tile__logo {
        max-width: 120px;
        max-height: 96px;
        margin-bottom: var(--gr-space-3);
    }
}

.gr-brand-tile__initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--gr-space-2);
    background: var(--gr-navy);
    color: var(--gr-white);
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-xl);
    font-weight: 700;
    border-radius: var(--gr-radius);
}

@media (min-width: 768px) {
    .gr-brand-tile__initial {
        width: 80px;
        height: 80px;
        font-size: var(--gr-text-2xl);
        margin-bottom: var(--gr-space-3);
    }
}

.gr-brand-tile__name {
    display: block;
    font-weight: 600;
    font-size: var(--gr-text-sm);
    color: var(--gr-dark);
    margin-bottom: 0.125rem;
    line-height: 1.3;
}

.gr-brand-tile__count {
    display: block;
    font-size: var(--gr-text-xs);
    color: var(--gr-gray);
}


/* (Rimosso: stili mobile ora sono mobile-first nei blocchi sopra) */

@media (prefers-reduced-motion: reduce) {
    .gr-brand-tile__link {
        transition: none;
    }
    .gr-brand-tile__link:hover {
        transform: none;
    }
}


/* ==========================================================================
   SECTION TITLES — Titoli e sottotitoli sezioni (condivisi tra pagine)
   ========================================================================== */

.gr-section__title {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-3xl);
    color: var(--gr-navy);
    margin-bottom: var(--gr-space-8);
}

.gr-section__title--center {
    text-align: center;
}

.gr-section__subtitle {
    color: var(--gr-gray);
    max-width: 600px;
    margin: 0 auto var(--gr-space-8);
    line-height: 1.6;
    text-align: center;
}

.gr-section--light {
    background: var(--gr-light);
}


/* ==========================================================================
   BLOG CARD (.gr-blog-card) — Card articolo blog
   ========================================================================== */

.gr-blog-card {
    border-radius: var(--gr-radius);
    overflow: hidden;
    box-shadow: var(--gr-shadow);
    background-color: var(--gr-white);
    transition: box-shadow var(--gr-transition), transform var(--gr-transition);
    display: flex;
    flex-direction: column;
}

.gr-blog-card:hover {
    box-shadow: var(--gr-shadow-md);
    transform: translateY(-3px);
}

.gr-blog-card__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

/* Immagine */
.gr-blog-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.gr-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gr-blog-card:hover .gr-blog-card__image img {
    transform: scale(1.05);
}

/* Placeholder senza immagine */
.gr-blog-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gr-navy) 0%, #2a4f7a 100%);
    color: rgba(255, 255, 255, 0.25);
}

.gr-blog-card__placeholder span {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Body */
.gr-blog-card__body {
    padding: var(--gr-space-5) var(--gr-space-5) var(--gr-space-6);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Meta: categoria + data sulla stessa riga */
.gr-blog-card__meta {
    display: flex;
    align-items: center;
    gap: var(--gr-space-3);
    margin-bottom: var(--gr-space-2);
}

.gr-blog-card__category {
    font-size: var(--gr-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gr-gold);
    font-weight: 700;
    background: rgba(200, 168, 110, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}

.gr-blog-card__date {
    font-size: var(--gr-text-xs);
    color: var(--gr-gray);
}

/* Titolo */
.gr-blog-card__title {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-lg);
    margin: 0 0 var(--gr-space-2);
    color: var(--gr-navy);
    line-height: 1.3;
    transition: color var(--gr-transition);
}

.gr-blog-card:hover .gr-blog-card__title {
    color: var(--gr-gold);
}

/* Excerpt */
.gr-blog-card__excerpt {
    font-size: var(--gr-text-sm);
    color: var(--gr-gray);
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}

/* Read more */
.gr-blog-card__readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--gr-text-sm);
    font-weight: 600;
    color: var(--gr-navy);
    margin-top: var(--gr-space-4);
    transition: color var(--gr-transition), gap var(--gr-transition);
}

.gr-blog-card__readmore svg {
    transition: transform var(--gr-transition);
}

.gr-blog-card:hover .gr-blog-card__readmore {
    color: var(--gr-gold);
}

.gr-blog-card:hover .gr-blog-card__readmore svg {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .gr-blog-card,
    .gr-blog-card__image img,
    .gr-blog-card__title,
    .gr-blog-card__readmore,
    .gr-blog-card__readmore svg {
        transition: none;
    }
    .gr-blog-card:hover {
        transform: none;
    }
    .gr-blog-card:hover .gr-blog-card__image img {
        transform: none;
    }
    .gr-blog-card:hover .gr-blog-card__readmore svg {
        transform: none;
    }
}


/* ==========================================================================
   SERVICE BOX (.gr-service-box) — Card servizio riutilizzabile
   ========================================================================== */

.gr-service-box {
    background-color: var(--gr-white);
    border-radius: var(--gr-radius);
    padding: var(--gr-space-8);
    text-align: center;
    box-shadow: var(--gr-shadow);
    transition: box-shadow var(--gr-transition), transform var(--gr-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gr-service-box:hover {
    box-shadow: var(--gr-shadow-md);
    transform: translateY(-2px);
}

.gr-service-box__icon {
    font-size: 3rem;
    color: var(--gr-gold);
    margin-bottom: var(--gr-space-4);
    line-height: 1;
    display: flex;
    justify-content: center;
}

.gr-service-box__title {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-xl);
    margin-bottom: var(--gr-space-3);
    color: var(--gr-navy);
}

.gr-service-box__desc {
    color: var(--gr-gray);
    font-size: var(--gr-text-base);
    line-height: 1.6;
    margin-bottom: var(--gr-space-4);
    flex-grow: 1;
}

@media (prefers-reduced-motion: reduce) {
    .gr-service-box {
        transition: none;
    }
    .gr-service-box:hover {
        transform: none;
    }
}


/* ==========================================================================
   PAGINA SERVIZI — Sezioni specifiche
   ========================================================================== */

/* ── Intro con stats ── */
.gr-servizi-intro__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--gr-space-8);
}

.gr-servizi-intro__text {
    color: var(--gr-gray);
    font-size: var(--gr-text-lg);
    line-height: 1.7;
    margin-top: var(--gr-space-4);
}

.gr-servizi-intro__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gr-space-6);
    max-width: 700px;
    margin: 0 auto;
}

.gr-servizi-intro__stat {
    text-align: center;
    padding: var(--gr-space-4);
}

.gr-servizi-intro__stat strong {
    display: block;
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-3xl);
    color: var(--gr-navy);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.gr-servizi-intro__stat span {
    font-size: var(--gr-text-sm);
    color: var(--gr-gray);
}

@media (min-width: 640px) {
    .gr-servizi-intro__stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Perché sceglierci ── */
.gr-servizi-perche__grid {
    max-width: 900px;
    margin: 0 auto;
}

.gr-servizi-perche__item {
    display: flex;
    gap: var(--gr-space-4);
    align-items: flex-start;
    padding: var(--gr-space-4);
}

.gr-servizi-perche__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--gr-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gr-servizi-perche__title {
    font-family: var(--gr-font-heading);
    font-size: var(--gr-text-lg);
    color: var(--gr-navy);
    margin-bottom: 0.25rem;
}

.gr-servizi-perche__desc {
    color: var(--gr-gray);
    font-size: var(--gr-text-base);
    line-height: 1.6;
}
