/* ═══════════════════════════════════════════════════════════════════════
   Contenuti importati da Joomla (dalla 1.2.466, ImportJoomlaContenuto)
   Caricato dalla pagina dell'articolo (views/blog/show.twig).

   - .cta-noleggia: i pulsanti "Noleggia subito" centrati;
   - .lt: il riquadro del noleggio a lungo termine (stesso aspetto del sito
     Joomla di Revirent, icone piatte al posto degli svg);
   - .modulo-richiesta, section.gallery, .faq-domanda;
   - .card-deck: le schede affiancate di Bootstrap del template Joomla
     (dalla 1.2.548; senza Bootstrap venivano una sotto l'altra, enormi).

   Rosso e verde dai colori del noleggio (--noleggio-marchio, --noleggio-azione,
   pannello → Noleggio → Configurazione → Colori del sito), con ripiego.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Pulsante "Noleggia subito" ─── */
.cta-noleggia {
    margin: 28px 0;
    text-align: center;
}
.cta-noleggia a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    padding: 14px 28px;
    border-radius: 12px;
    background: var(--noleggio-marchio, #cf1e26);
    color: #fff;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 24px -12px var(--noleggio-marchio, #cf1e26);
    transition: transform .15s ease, filter .15s ease;
}
.cta-noleggia a:hover,
.cta-noleggia a:focus-visible {
    color: #fff;
    filter: brightness(.92);
    transform: translateY(-2px);
}
/* Quello che porta al modulo di ricerca in cima: la freccia in su */
.cta-noleggia a.cta-noleggia-su::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z'/></svg>") center / contain no-repeat;
}

/* ─── Riquadro del form di richiesta (al posto di RSForm) ─── */
.modulo-richiesta {
    margin: 40px 0 16px;
    scroll-margin-top: 90px;
}
.modulo-richiesta > p {
    margin: 0;
}

/* ─── Domande delle FAQ (erano a fisarmonica) ─── */
.faq-domanda {
    margin: 28px 0 8px;
    padding: 0 0 8px;
    border-bottom: 2px solid var(--noleggio-marchio, #cf1e26);
    color: var(--noleggio-marchio, #cf1e26);
    font-size: 1.15rem;
}

/* ─── Galleria di foto ─── */
section.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 20px 0;
}
section.gallery img {
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 8px;
}

/* ═══ Noleggio a lungo termine ═══ */
.lt {
    --lt-rosso: var(--noleggio-marchio, #dc143c);
    --lt-verde: var(--noleggio-azione, #00a651);
    --lt-chiaro: #f8f8f8;
    --lt-bordo: #ececec;
    --lt-testo: #333;
    --lt-tenue: #666;
    margin: 32px 0;
    color: var(--lt-testo);
    line-height: 1.6;
}
.lt p { margin: 0; }

.lt .lt-testa {
    margin-bottom: 32px;
    padding: 30px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lt-rosso) 0%, color-mix(in srgb, var(--lt-rosso) 72%, #000) 100%);
    color: #fff;
    text-align: center;
}
.lt .lt-titolo {
    margin: 0 0 8px;
    padding: 0;
    color: #fff;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.lt .lt-sottotitolo {
    font-size: clamp(.95rem, 1.6vw, 1.15rem);
    font-weight: 300;
    opacity: .95;
}

.lt .lt-colonne {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
@media (max-width: 860px) {
    .lt .lt-colonne { grid-template-columns: minmax(0, 1fr); }
}
.lt .lt-info,
.lt .lt-offerte {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.lt .lt-info {
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.lt .lt-sezione {
    position: relative;
    margin: 0;
    padding: 0 0 10px;
    color: var(--lt-testo);
    font-size: 1.3rem;
    font-weight: 600;
}
.lt .lt-sezione::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    border-radius: 2px;
    background: var(--lt-rosso);
}
.lt .lt-vantaggi + .lt-sezione,
.lt .lt-servizi + .lt-sezione { margin-top: 12px; }

/* Icone piatte: quadratino colorato col disegno bianco */
.lt [class*="lt-ico-"]::before {
    content: "";
    grid-row: span 2;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--lt-ico-colore, var(--lt-verde)) var(--lt-ico) center / 22px no-repeat;
}
.lt .lt-ico-manutenzione { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/></svg>"); }
.lt .lt-ico-rca { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4z'/></svg>"); }
.lt .lt-ico-furto { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/></svg>"); }
.lt .lt-ico-assistenza { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>"); }
.lt .lt-ico-bollo { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z'/></svg>"); }
.lt .lt-ico-spunta { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>"); }
.lt .lt-ico-durata { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/></svg>"); }
.lt .lt-ico-km { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M20.38 8.57l-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z'/></svg>"); }
.lt .lt-ico-anticipo { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15l1-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15l1-2H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 0-7.24 2.51-8.48 6H3l-1 2h4.06c-.04.33-.06.66-.06 1s.02.67.06 1H3l-1 2h4.52c1.24 3.49 4.56 6 8.48 6 2.31 0 4.41-.87 6-2.3l-1.78-1.77c-1.13.98-2.6 1.57-4.22 1.57z'/></svg>"); }
.lt .lt-ico-punto { --lt-ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle fill='white' cx='12' cy='12' r='5'/></svg>"); }

/* Servizi inclusi */
.lt .lt-servizi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}
.lt .lt-servizio {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 10px;
    background: var(--lt-chiaro);
    color: var(--lt-tenue);
    font-size: .85rem;
    line-height: 1.4;
    transition: background-color .2s ease, transform .2s ease;
}
.lt .lt-servizio:hover {
    background: color-mix(in srgb, var(--lt-verde) 10%, #fff);
    transform: translateX(3px);
}
.lt .lt-servizio strong {
    display: block;
    margin: 2px 0;
    color: var(--lt-testo);
    font-size: .95rem;
    font-weight: 600;
}

/* Vantaggi */
.lt .lt-vantaggi { display: flex; flex-direction: column; }
.lt .lt-spunta {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lt-bordo);
    font-size: .95rem;
}
.lt .lt-spunta:last-child { border-bottom: 0; }
.lt .lt-spunta::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--lt-verde) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>") center / 15px no-repeat;
}

/* Offerte */
.lt .lt-offerta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.lt .lt-offerta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.lt .lt-dato {
    --lt-ico-colore: var(--lt-rosso);
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--lt-chiaro);
    color: var(--lt-tenue);
    font-size: .75rem;
    letter-spacing: .04em;
    line-height: 1.3;
    text-transform: uppercase;
}
.lt .lt-dato::before {
    width: 36px;
    height: 36px;
    background-size: 20px;
}
.lt .lt-dato strong {
    color: var(--lt-testo);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.lt .lt-prezzo {
    margin-top: 6px;
    padding: 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    color: var(--lt-tenue);
    font-weight: 500;
    text-align: center;
}
.lt .lt-prezzo strong {
    display: block;
    color: var(--lt-rosso);
    font-size: clamp(2.3rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.05;
}
.lt .lt-include {
    padding: 12px;
    border-radius: 8px;
    background: var(--lt-chiaro);
    color: var(--lt-tenue);
    font-size: .85rem;
    text-align: center;
}
.lt .lt-richiedi a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 10px;
    background: var(--lt-rosso);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: filter .15s ease, transform .15s ease;
}
.lt .lt-richiedi a::after {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/></svg>") center / contain no-repeat;
    transition: transform .15s ease;
}
.lt .lt-richiedi a:hover,
.lt .lt-richiedi a:focus-visible {
    color: #fff;
    filter: brightness(.92);
    transform: translateY(-2px);
}
.lt .lt-richiedi a:hover::after { transform: translateX(4px); }

@media (max-width: 640px) {
    .lt .lt-testa { padding: 22px 16px; margin-bottom: 24px; }
    .lt .lt-info, .lt .lt-offerta { padding: 18px; }
    .lt .lt-servizi { grid-template-columns: minmax(0, 1fr); }
}
/* ─── Schede affiancate (card-deck di Bootstrap, 1.2.548) ─── */
.card-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
    margin: 1.4em 0;
}
.card-deck > .card {
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}
.card-deck > .card .card-img-top {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
}
.card-deck > .card .card-body {
    flex: 1;
    padding: 14px 18px 18px;
}
.card-deck .card-title {
    display: block;
    line-height: 1.3;
    font-weight: 700;
}
.card-deck .card-title a {
    color: var(--noleggio-marchio, #cf1e26);
    text-decoration: none;
}
.card-deck .card-title a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .lt .lt-servizio, .lt .lt-offerta, .lt .lt-richiedi a, .cta-noleggia a { transition: none; }
    .lt .lt-servizio:hover, .lt .lt-offerta:hover, .lt .lt-richiedi a:hover, .cta-noleggia a:hover { transform: none; }
}
