/* com_noleggi site styles */

/* ==========================================
   Category Cards
   ========================================== */

/* Reveal animation — pure CSS, nessuna dipendenza JS */
@keyframes noleggiCatReveal {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.noleggi-cat-item {
    animation: noleggiCatReveal 0.55s ease both;
    animation-delay: var(--delay, 0ms);
}

/* Card base */
.noleggi-cat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.28s cubic-bezier(.22,1,.36,1),
                box-shadow 0.28s ease;
    outline: none;
}

.noleggi-cat-card:hover,
.noleggi-cat-card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

/* Icon area */
.noleggi-cat-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 148px;
    background-color: var(--cat-color, #1a1a2e);
    overflow: hidden;
}

.noleggi-cat-icon,
span.noleggi-cat-icon {
    font-size: 5rem;
    line-height: 1;
    position: relative;
    z-index: 1;
    color: #ffffff;
    transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

span.noleggi-cat-icon svg {
    width: 1em;
    height: 1em;
    display: block;
}

.noleggi-cat-card:hover .noleggi-cat-icon {
    transform: scale(1.18) rotate(-5deg) translateY(-4px);
}

/* Shine overlay */
.noleggi-cat-shine {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,255,255,.28) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 100% 100%, rgba(0,0,0,.18) 0%, transparent 60%);
    pointer-events: none;
}

/* Body */
.noleggi-cat-body {
    flex: 1;
    padding: 1.35rem 1.5rem 0.9rem;
}

.noleggi-cat-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ilking-primary, #1a1a2e);
    margin: 0 0 0.55rem;
    line-height: 1.25;
}

.noleggi-cat-desc {
    font-size: 0.865rem;
    color: #6c757d;
    line-height: 1.65;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.noleggi-cat-arrow {
    color: var(--ilking-accent, #e63946);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.85rem;
    margin-top: 0.05em;
    transition: transform 0.2s ease;
    display: inline-block;
}

.noleggi-cat-card:hover .noleggi-cat-arrow {
    transform: translateX(5px);
}

/* Footer CTA */
.noleggi-cat-footer {
    padding: 0.8rem 1.5rem 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.noleggi-cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ilking-accent, #e63946);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: gap 0.22s ease;
}

.noleggi-cat-card:hover .noleggi-cat-cta {
    gap: 0.7rem;
}

/* ── Dark section overrides (homepage) ── */
.ilking-section-dark .noleggi-cat-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.ilking-section-dark .noleggi-cat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.ilking-section-dark .noleggi-cat-name {
    color: #ffffff;
}

.ilking-section-dark .noleggi-cat-desc {
    color: rgba(255, 255, 255, 0.62);
}

.ilking-section-dark .noleggi-cat-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.ilking-section-dark .noleggi-cat-cta {
    color: var(--ilking-gold, #ffd60a);
}

/* Breadcrumb nel contesto scuro (usato da cat-hero) */
.cat-page-breadcrumb .breadcrumb-item a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
}
.cat-page-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.cat-page-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.35); }
.cat-page-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.25); }

/* Sezione cards */
.cat-page-items {
    background: #ffffff;
    padding: 4rem 0 6rem;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* Item page: più compatta in alto perché il hero finisce con padding */
.com-noleggi-item .cat-page-items {
    padding-top: 3rem;
}

/* Banda form prenotazione: full-width, sfondo chiaro */
.noleggi-form-band {
    width: 100%;
    background: #f4f6f9;
    padding: 4rem 0;
}

/* Form card su sfondo banda */
.noleggi-form-band .ilking-contact-form {
    background: #ffffff;
    box-shadow: 0 2px 24px rgba(0,0,0,.08);
    border: 1px solid #dde2ea;

}
.noleggi-form-band .ilking-cf-title { color: #1a1a2e; font-size: 1.4rem; }
.noleggi-form-band .ilking-cf-subtitle { color: #666; }
.noleggi-form-band .ilking-cf-header { border-bottom-color: #e8edf3; }
.noleggi-form-band .ilking-cf-context-banner { background: #f4f6f9; border-bottom-color: #e8edf3; }
.noleggi-form-band .ilking-cf-item-badge { background: rgba(0,0,0,.07); color: #222; }
.noleggi-form-band .ilking-cf-label { color: #444; font-size: .75rem; }
.noleggi-form-band .ilking-cf-input {
    background: #f7f9fc;
    border-color: #c8d0db;
    color: #111;
    color-scheme: light;
    font-size: .95rem;
}
.noleggi-form-band .ilking-cf-input::placeholder { color: #aaa; }
.noleggi-form-band .ilking-cf-input:focus {
    border-color: var(--ilking-accent, #e63946);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(230,57,70,.1);
}
.noleggi-form-band .ilking-cf-dates { background: #f4f6f9; border-color: #c8d0db; }
.noleggi-form-band .ilking-cf-privacy { color: #555; }
.noleggi-form-band .ilking-cf-privacy a { color: #333; }
.noleggi-form-band .ilking-cf-privacy a:hover { color: #111; }
.noleggi-form-band .ilking-cf-trust { border-top-color: #e8edf3; }
.noleggi-form-band .ilking-cf-trust-item { color: #888; }
.noleggi-form-band .ilking-cf-trust-item .bi { color: #999; }


/* ==========================================
   Item (veicolo) Cards
   ========================================== */
.noleggi-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.noleggi-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
    transform: translateY(-4px);
}

.noleggi-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ==========================================
   Price
   ========================================== */
.noleggi-price {
    font-size: 0.9rem;
    color: #555;
}

.noleggi-price strong {
    font-size: 1.1rem;
    color: var(--ilking-accent, #e63946);
}

.noleggi-price-box .display-5 {
    color: var(--ilking-accent, #e63946);
}

/* ==========================================
   Detail card / Gallery
   ========================================== */
.noleggi-details-card {
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.noleggi-thumb {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    height: 90px;
    object-fit: cover;
    width: 100%;
}

.noleggi-thumb:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* ==========================================
   Item page
   ========================================== */

.item-page-header { padding-bottom: 4rem; }

.item-page-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0 0 1rem;
}

.item-page-intro {
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.item-page-price-hero {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    font-size: .9rem;
    color: rgba(255,255,255,.6);
}

.item-page-price-hero strong {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

/* Immagine copertina header */
.item-page-cover-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.item-page-cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.item-page-cover-accent {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
}

/* ═══════════════════════════════════════════
   GALLERIA NLG
═══════════════════════════════════════════ */
.nlg-gallery {
    margin-bottom: 2rem;
}

/* Immagine principale */
.nlg-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #111;
}

.nlg-main-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    position: relative;
}

.nlg-main-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, opacity .3s;
}

.nlg-main-btn:hover .nlg-main-img {
    transform: scale(1.03);
    opacity: .92;
}

.nlg-main-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.0);
    color: #fff;
    opacity: 0;
    transition: opacity .25s, background .25s;
}

.nlg-main-btn:hover .nlg-main-overlay {
    opacity: 1;
    background: rgba(0,0,0,.28);
}

.nlg-main-overlay svg {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
}

/* Strip thumbnails */
.nlg-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 transparent;
    padding-bottom: 4px;
}

.nlg-thumb-btn {
    flex: 0 0 90px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #111;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}

.nlg-thumb-btn img {
    width: 90px;
    height: 64px;
    object-fit: cover;
    display: block;
    opacity: .65;
    transition: opacity .2s;
}

.nlg-thumb-btn:hover img,
.nlg-thumb-btn.is-active img {
    opacity: 1;
}

.nlg-thumb-btn.is-active {
    border-color: #e63946;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   LIGHTBOX NLG
═══════════════════════════════════════════ */
.nlg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s, visibility .3s;
}

.nlg-lightbox.is-open {
    visibility: visible;
    opacity: 1;
}

.nlg-lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.92);
    cursor: zoom-out;
}

.nlg-lb-stage {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.nlg-lb-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: opacity .15s ease;
    box-shadow: 0 8px 48px rgba(0,0,0,.7);
}

.nlg-lb-caption {
    color: rgba(255,255,255,.75);
    font-size: .85rem;
    text-align: center;
    margin: 0;
}

.nlg-lb-counter {
    color: rgba(255,255,255,.4);
    font-size: .75rem;
    letter-spacing: .08em;
}

.nlg-lb-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 10;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.nlg-lb-close:hover { background: rgba(255,255,255,.25); }

.nlg-lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
}

.nlg-lb-arrow:hover { background: rgba(255,255,255,.25); }
.nlg-lb-prev { left: 1.25rem; }
.nlg-lb-next { right: 1.25rem; }

body.nlg-lb-open { overflow: hidden; }

/* Descrizione */
.item-description,
.item-description-short {
    font-size: .97rem;
    line-height: 1.9;
    color: #3a3a3a;
}

.item-description { margin-bottom: 2rem; }
.item-description-short { margin-top: 1.5rem; }

.item-description p,
.item-description-short p {
    margin-bottom: 1rem;
}
.item-description p:last-child,
.item-description-short p:last-child {
    margin-bottom: 0;
}
.item-description strong,
.item-description-short strong { color: #111; font-weight: 700; }

.item-description h2,
.item-description h3,
.item-description h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
    margin: 1.5rem 0 .6rem;
    letter-spacing: -.01em;
}
.item-description h2:first-child,
.item-description h3:first-child,
.item-description h4:first-child {
    margin-top: 0;
}
.item-description ul,
.item-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
.item-description li {
    margin-bottom: .35rem;
}
.item-description img {
    max-width: 100%;
    border-radius: .5rem;
    margin: 1rem 0;
}

/* Scheda tecnica */
.item-specs-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

/* Modulo contatti dopo la specs card */
.com-noleggi-item .col-lg-5 .ilking-contact-form {
    margin-top: 1.75rem;
}

.item-specs-price {
    padding: 1.5rem 1.5rem 1.2rem;
    background: #0d0d0d;
}

.item-specs-price-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: .25rem;
}

.item-specs-price-value {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: .3rem;
}

.item-specs-price-value span {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255,255,255,.45);
}

.item-specs-price-sub {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}

.item-specs-accent-bar {
    height: 4px;
}

.item-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.item-specs-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.item-specs-table tr:last-child { border-bottom: none; }

.item-specs-table th {
    padding: .65rem 1.25rem;
    font-weight: 600;
    color: #888;
    width: 45%;
    white-space: nowrap;
}

.item-specs-table td {
    padding: .65rem 1.25rem .65rem 0;
    color: #111;
    font-weight: 500;
}

.item-specs-cta {
    display: block;
    margin: 1rem 1.25rem .6rem;
    padding: .8rem 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
}

.item-specs-cta:hover {
    opacity: .88;
    transform: translateY(-2px);
}

.item-specs-back {
    display: block;
    text-align: center;
    padding: .5rem 1.25rem 1.2rem;
    font-size: .78rem;
    color: #999;
    text-decoration: none;
    transition: color .2s;
}

.item-specs-back:hover { color: #333; }

/* ==========================================
   Item page — responsive
   ========================================== */

/* Su desktop la colonna destra non deve andare oltre il viewport */
@media (min-width: 992px) {
    .com-noleggi-item .col-lg-5 {
        max-width: 420px;
    }
    .com-noleggi-item .col-lg-7 {
        flex: 1;
        min-width: 0;
    }
}

/* Su mobile le due colonne si impilano:
   prima descrizione, poi specs card */
@media (max-width: 991.98px) {
    .com-noleggi-item .cat-page-items {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .item-specs-card {
        position: static !important;
        margin-top: 0;
    }

    .item-gallery .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .item-gallery .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
