/**
 * Home page styles — implementa mockup V7
 * v0.3.0: ombre molto rinforzate, badge servizi, pattern, header logo grande
 */

/* ==========================================================================
   SCROLL SNAP (opzionale, attivabile da customizer + solo desktop)
   ========================================================================== */
@media (min-width: 1025px) {
    .rei-home.has-scroll-snap {
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
    }
    .rei-home.has-scroll-snap .rei-hero,
    .rei-home.has-scroll-snap .rei-section {
        min-height: 100vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        align-items: center;
    }
    .rei-home.has-scroll-snap .rei-section > .rei-container {
        width: 100%;
    }
    .rei-home.has-scroll-snap #site-footer {
        scroll-snap-align: none;
    }
}

/* ==========================================================================
   OMBRE RINFORZATE FORTE — v0.3.0
   Ombre molto più visibili rispetto alla v0.2.0
   ========================================================================== */

/* Card servizi: ombra POTENTE */
.rei-service-card {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}
.rei-service-card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40), 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}

/* Card magazine */
.rei-magazine-card {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.10) !important;
}
.rei-magazine-card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35) !important;
}

/* Box prezzo (legacy + nuovo duo) */
.rei-price-box,
.rei-price-card {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22) !important;
}

/* Photo placeholders */
.rei-photo-placeholder {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32) !important;
}

/* Foto reali (rei-photo dall'helper) */
.rei-photo, .rei-hero__photo {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32) !important;
    border-radius: var(--rei-radius-2xl);
}

/* Pill evidenziatore */
.rei-pill {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* Bottoni */
.rei-btn {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.rei-btn:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}
.rei-btn--outline {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Badge circolari (bollini) */
.rei-badge-circle,
.rei-hero__badge-attiva,
.rei-offer__badge {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38) !important;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.rei-hero {
    background: var(--rei-cream);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.rei-hero__inner {
    display: grid;
    grid-template-columns: 1fr 540px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.rei-hero__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.rei-hero__deco-circle {
    position: absolute;
    top: 30px;
    right: 100px;
    width: 320px;
    height: 320px;
    background: var(--rei-yellow-light);
    border-radius: 50%;
    z-index: -1;
}
.rei-hero__decor .rei-star:nth-of-type(1) { top: 100px; left: 20px; }
.rei-hero__decor .rei-star:nth-of-type(2) { bottom: 100px; left: 60px; }

.rei-hero__content > * { margin-bottom: 20px; }
.rei-hero__title {
    font-size: var(--rei-h1);
    line-height: 1.05;
    margin: 0 0 24px;
}
.rei-hero__sub { font-size: 1.5rem; line-height: 1.5; color: var(--rei-gray); }
.rei-hero__cta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.rei-hero__trust {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--rei-green-deep);
    font-weight: 700;
    font-size: 14px;
    margin: 0;
}

.rei-hero__media {
    position: relative;
    aspect-ratio: 1;
}
.rei-hero__photo {
    width: 100%;
    height: 100%;
    border-radius: var(--rei-radius-2xl);
    box-shadow: var(--rei-shadow-xl);
    object-fit: cover;
}

.rei-hero__badge-attiva {
    position: absolute;
    top: 115px;
    left: -40px;
    z-index: 2;
}

/* ==========================================================================
   2. SERVICES — v0.3.0 RICCHE
   ========================================================================== */
.rei-services__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}
.rei-services__header h2 {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 800;
    margin: 16px 0 20px;
    position: relative;
    z-index: 1;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.rei-services__header .rei-eyebrow {
    font-size: 1rem;
    letter-spacing: 0.08em;
}
.rei-services__sub {
    font-size: 1.625rem;
    color: var(--rei-gray);
    margin: 0;
    line-height: 1.4;
}

/* Decorazioni sezione servizi (deco) */
.rei-services {
    position: relative;
    /* overflow:hidden e glow circles sono in style.css v0.8.0 */
}

.rei-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.rei-service-card {
    position: relative;
    border-radius: var(--rei-radius-2xl);
    padding: 24px 18px 20px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* v1.86.0: contenuto centrato nel quadrato */
    aspect-ratio: 1 / 1;       /* v1.86.0: card quadrate (prima min-height: 380px) */
    overflow: hidden;
    isolation: isolate;
}
.rei-service-card:hover {
    transform: translateY(-8px);
}

/* Varianti colore con gradient sottile */
.rei-service-card--green  {
    background: linear-gradient(160deg, var(--rei-green) 0%, var(--rei-green-dark) 100%);
    color: var(--rei-white);
}
.rei-service-card--red {
    background: linear-gradient(160deg, var(--rei-red) 0%, var(--rei-red-dark) 100%);
    color: var(--rei-white);
}
.rei-service-card--yellow {
    background: linear-gradient(160deg, var(--rei-yellow) 0%, var(--rei-yellow-dark) 100%);
    color: var(--rei-ink);
}
.rei-service-card--ink {
    background: linear-gradient(160deg, var(--rei-ink) 0%, #3a3a3a 100%);
    color: var(--rei-white);
}

/* Bordo interno luminoso (effetto vetro) */
.rei-service-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--rei-radius-2xl) - 1px);
    border: 2px solid rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: 2;
}
.rei-service-card--yellow::before {
    border-color: rgba(0, 0, 0, 0.12);
}

/* PATTERN decorativi di sfondo */
.rei-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
    background-repeat: repeat;   /* v1.86.0: filigrana ripetuta su tutto il quadrato */
    background-position: 0 0;
}

/* v1.86.0 — Filigrana geometrica UNIFORME a piena copertura, una diversa per variante
   (niente icone tematiche). Ogni tile è un piccolo SVG che si ripete su tutto il quadrato. */

/* Verde → rete a rombi (richiama "Rete" Energia) */
.rei-service-card--green::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2730%27%20height%3D%2730%27%20viewBox%3D%270%200%2030%2030%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.3%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M0%2030L30%200M0%200L30%2030%27%2F%3E%3C%2Fsvg%3E");
    background-size: 30px 30px;
    opacity: 0.15;
}

/* Rosso → linee diagonali */
.rei-service-card--red::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2718%27%20height%3D%2718%27%20viewBox%3D%270%200%2018%2018%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M0%2018L18%200%27%2F%3E%3C%2Fsvg%3E");
    background-size: 18px 18px;
    opacity: 0.16;
}

/* Giallo → griglia (tratto navy: card chiara, niente invert) */
.rei-service-card--yellow::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2726%27%20height%3D%2726%27%20viewBox%3D%270%200%2026%2026%27%20fill%3D%27none%27%20stroke%3D%27%230D1B3D%27%20stroke-width%3D%271.2%27%20stroke-linecap%3D%27round%27%3E%3Cpath%20d%3D%27M0%200H26M0%200V26%27%2F%3E%3C%2Fsvg%3E");
    background-size: 26px 26px;
    opacity: 0.14;
    filter: none;
}

/* Scuro → trama a puntini */
.rei-service-card--ink::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2720%27%20height%3D%2720%27%20viewBox%3D%270%200%2020%2020%27%20fill%3D%27%23ffffff%27%20stroke%3D%27none%27%3E%3Ccircle%20cx%3D%2710%27%20cy%3D%2710%27%20r%3D%271.5%27%2F%3E%3C%2Fsvg%3E");
    background-size: 20px 20px;
    opacity: 0.20;
}

/* Badge in alto a destra */
.rei-service-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--rei-yellow);
    color: var(--rei-ink);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.rei-service-card--yellow .rei-service-card__badge {
    background: var(--rei-ink);
    color: var(--rei-yellow);
}

/* Wrapper icona (cerchio semi-trasparente) */
.rei-service-card__icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.rei-service-card--yellow .rei-service-card__icon-wrap {
    background: rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.rei-service-card:hover .rei-service-card__icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}
.rei-service-card__icon { color: currentColor; }
.rei-service-card__icon svg { width: 32px; height: 32px; }   /* v1.86.0: icona ridotta per il cerchio da 60px */

.rei-service-card__title {
    font-size: 1.15rem;
    margin: 0 0 5px;
    color: currentColor;
    font-weight: 800;
    position: relative;
    z-index: 2;
}
.rei-service-card__desc {
    margin: 0 0 12px;
    opacity: 0.92;
    font-size: 13.5px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

/* Separatore interno */
.rei-service-card__sep {
    width: 56%;
    height: 1px;
    background: currentColor;
    opacity: 0.25;
    margin: 0 auto 12px;
    position: relative;
    z-index: 2;
}

/* CTA pill — v0.6.0: colorato in base alla card (no più nero) */
.rei-service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.01em;
}

/* Card verde (Entrare nell'app) → CTA giallo */
.rei-service-card--green .rei-service-card__cta {
    background: var(--rei-yellow);
    color: var(--rei-ink);
}
.rei-service-card--green .rei-service-card__cta:hover {
    background: var(--rei-white);
    color: var(--rei-green-deep);
    transform: scale(1.07);
}

/* Card rossa (Pagare al volo) → CTA gialla */
.rei-service-card--red .rei-service-card__cta {
    background: var(--rei-yellow);
    color: var(--rei-ink);
}
.rei-service-card--red .rei-service-card__cta:hover {
    background: var(--rei-white);
    color: var(--rei-red-dark);
    transform: scale(1.07);
}

/* Card gialla (Parlare con noi) → CTA rossa */
.rei-service-card--yellow .rei-service-card__cta {
    background: var(--rei-red);
    color: var(--rei-white);
}
.rei-service-card--yellow .rei-service-card__cta:hover {
    background: var(--rei-red-dark);
    color: var(--rei-white);
    transform: scale(1.07);
}

/* Card nera (Trovare moduli) → CTA gialla */
.rei-service-card--ink .rei-service-card__cta {
    background: var(--rei-yellow);
    color: var(--rei-ink);
}
.rei-service-card--ink .rei-service-card__cta:hover {
    background: var(--rei-white);
    color: var(--rei-ink);
    transform: scale(1.07);
}

.rei-service-card__cta svg {
    transition: transform 0.2s ease;
}
.rei-service-card__cta:hover svg {
    transform: translateX(3px);
}


/* ==========================================================================
   3. & 4. OFFERTE (luce/gas)
   v0.4.0: NUOVO box prezzo doppio + tooltip + particles animati
   ========================================================================== */
.rei-offer {
    position: relative;
    overflow: hidden;
}
.rei-offer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.rei-offer--mirror .rei-offer__inner { direction: rtl; }
.rei-offer--mirror .rei-offer__inner > * { direction: ltr; }

.rei-offer__title {
    font-size: var(--rei-h2);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.rei-offer__sub {
    font-size: 1.375rem;
    color: var(--rei-gray-text);
    margin-bottom: 24px;
    line-height: 1.5;
}
.rei-offer__sub strong { color: var(--rei-ink-soft); font-weight: 700; }
.rei-offer__sub-soft { color: var(--rei-gray); }

/* ==========================================================================
   PRICE DUO — NUOVO BOX PREZZO DOPPIO (v0.4.0, stile Lene)
   ========================================================================== */
.rei-price-duo {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-bottom: 26px;
    max-width: 540px;
}

.rei-price-card {
    border-radius: 18px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rei-price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

/* Box principale (prezzo grande) */
.rei-price-card--main {
    color: var(--rei-white);
}
.rei-price-duo--green .rei-price-card--main {
    background: linear-gradient(150deg, var(--rei-green) 0%, var(--rei-green-dark) 100%);
}
.rei-price-duo--red .rei-price-card--main {
    background: linear-gradient(150deg, var(--rei-red) 0%, var(--rei-red-dark) 100%);
}

/* Box secondario (spese commerciali, sfondo chiaro) */
.rei-price-card--secondary {
    background: var(--rei-white);
    color: var(--rei-ink);
}

.rei-price-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.rei-price-card__label {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.95;
    letter-spacing: 0.01em;
}
.rei-price-card--secondary .rei-price-card__label {
    color: var(--rei-gray);
}

/* Bottoncino info "ⓘ" */
.rei-price-card__info {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: currentColor;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 0;
}
.rei-price-card__info:hover,
.rei-price-card__info:focus-visible {
    opacity: 1;
    transform: scale(1.15);
    outline: none;
}

.rei-price-card__value {
    line-height: 1;
    margin: 6px 0;
}
.rei-price-card__value strong {
    font-size: 3.25rem;
    font-weight: 800;
    color: inherit;
    letter-spacing: -0.02em;
}
.rei-price-card--secondary .rei-price-card__value strong {
    font-size: 2.75rem;
    color: var(--rei-green-deep);
}
.rei-price-duo--red .rei-price-card--secondary .rei-price-card__value strong {
    color: var(--rei-red-dark);
}

.rei-price-card__unit {
    display: block;
    font-size: 14px;
    font-weight: 700;
    opacity: 0.85;
    margin-top: 4px;
}
.rei-price-card--secondary .rei-price-card__unit { color: var(--rei-gray); }

/* ==========================================================================
   TOOLTIP MODAL — popup "i" Informazioni (v0.4.0)
   ========================================================================== */
.rei-tooltip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: rei-tooltip-fade-in 0.2s ease-out;
}
.rei-tooltip-overlay.is-open {
    display: flex;
}
.rei-tooltip-modal {
    background: var(--rei-white);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    padding: 40px 36px 36px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.40);
    animation: rei-tooltip-scale-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rei-tooltip-modal[hidden] { display: none; }
.rei-tooltip-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--rei-green-deep);
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.rei-tooltip-modal__close:hover {
    background: var(--rei-gray-vlight);
}
.rei-tooltip-modal__title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--rei-ink);
    margin: 0 0 20px;
}
.rei-tooltip-modal__body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rei-tooltip-modal__body li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 14px;
    color: var(--rei-ink-soft);
    line-height: 1.55;
    font-size: 1rem;
}
.rei-tooltip-modal__body li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--rei-green);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.5;
}
.rei-tooltip-modal__body li:last-child { margin-bottom: 0; }

@keyframes rei-tooltip-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes rei-tooltip-scale-in {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ==========================================================================
   PARTICLES — Lampadine / Fiamme animate su hover (v0.4.0)
   ========================================================================== */
.rei-offer__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.rei-particle {
    position: absolute;
    width: 32px;
    height: 32px;
    opacity: 0;
    transform: translateY(20px) scale(0.6);
    transition: none;
}

/* Lampadina SVG inline tramite mask */
.rei-particle--bulb {
    background-color: var(--rei-yellow);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9 21h6v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M9 21h6v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z'/></svg>") center/contain no-repeat;
}

/* Fiamma SVG inline tramite mask */
.rei-particle--flame {
    background: linear-gradient(180deg, var(--rei-yellow) 0%, var(--rei-red) 60%, var(--rei-red-dark) 100%);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z'/></svg>") center/contain no-repeat;
}

/* Posizioni e dimensioni delle 7 particles (v0.7.0: GIGANTI 120-200px) */
.rei-particle:nth-child(1) { top: 4%;  left: 3%;  width: 200px; height: 200px; }
.rei-particle:nth-child(2) { top: 18%; left: 84%; width: 170px; height: 170px; }
.rei-particle:nth-child(3) { top: 44%; left: 0%;  width: 140px; height: 140px; }
.rei-particle:nth-child(4) { top: 62%; left: 86%; width: 180px; height: 180px; }
.rei-particle:nth-child(5) { top: 8%;  left: 40%; width: 130px; height: 130px; }
.rei-particle:nth-child(6) { top: 76%; left: 24%; width: 175px; height: 175px; }
.rei-particle:nth-child(7) { top: 52%; left: 58%; width: 145px; height: 145px; }

/* Particles base con glow ENORME */
.rei-particle {
    filter: drop-shadow(0 0 36px rgba(255, 184, 0, 0.95));
}
.rei-particle--flame {
    filter: drop-shadow(0 0 32px rgba(242, 11, 0, 0.95));
}

/* Animazione attivata in hover sull'intera sezione */
.rei-offer:hover .rei-particle {
    animation: rei-particle-float 3.5s ease-out infinite;
}
.rei-offer:hover .rei-particle:nth-child(1) { animation-delay: 0s; }
.rei-offer:hover .rei-particle:nth-child(2) { animation-delay: 0.3s; }
.rei-offer:hover .rei-particle:nth-child(3) { animation-delay: 0.6s; }
.rei-offer:hover .rei-particle:nth-child(4) { animation-delay: 0.9s; }
.rei-offer:hover .rei-particle:nth-child(5) { animation-delay: 1.2s; }
.rei-offer:hover .rei-particle:nth-child(6) { animation-delay: 1.5s; }
.rei-offer:hover .rei-particle:nth-child(7) { animation-delay: 1.8s; }

@keyframes rei-particle-float {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.5) rotate(-15deg);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    80% {
        opacity: 1;
        transform: translateY(-20px) scale(1.05) rotate(8deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.7) rotate(15deg);
    }
}

/* Riduce animazione su prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .rei-offer:hover .rei-particle {
        animation: none;
        opacity: 0;
    }
}

/* ==========================================================================
   AZIONI offerta
   ========================================================================== */
.rei-offer__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.rei-offer__download {
    color: var(--rei-green-deep);
    font-weight: 700;
    font-size: 16px;
}
.rei-offer--gas .rei-offer__download { color: var(--rei-red-dark); }
.rei-offer__codice {
    display: block;
    color: var(--rei-gray-light);
    font-size: 13px;
    font-family: var(--rei-font-mono);
}

.rei-offer__media {
    position: relative;
    aspect-ratio: 1;
}
.rei-offer__media .rei-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: var(--rei-radius-2xl);
    box-shadow: var(--rei-shadow-xl);
}
.rei-offer__badge {
    position: absolute;
    bottom: -20px;
    left: -30px;
    z-index: 2;
}
.rei-offer--mirror .rei-offer__badge {
    left: auto;
    right: -30px;
    top: -30px;
    bottom: auto;
}

/* ==========================================================================
   5. CHIAMATE INDESIDERATE
   ========================================================================== */
.rei-chiamate__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.rei-chiamate__title {
    font-size: var(--rei-h2);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.rei-chiamate__sub {
    font-size: 1.5rem;
    color: var(--rei-ink-soft);
    margin-bottom: 16px;
}
.rei-chiamate__detail {
    color: var(--rei-gray);
    margin-bottom: 24px;
    font-size: 1.125rem;
    line-height: 1.5;
}
.rei-chiamate__media .rei-photo-placeholder {
    aspect-ratio: 5/4;
    border-radius: var(--rei-radius-2xl);
    box-shadow: var(--rei-shadow-xl);
}

/* ==========================================================================
   6. APP
   ========================================================================== */
.rei-app-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.rei-app-section__title {
    font-size: var(--rei-h2);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.rei-app-section__sub {
    font-size: 1.375rem;
    color: var(--rei-ink-soft);
    margin-bottom: 24px;
}
.rei-app-section__features {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}
.rei-app-section__features li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--rei-ink-soft);
}
.rei-app-section__stores {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
/* CTA Scarica l'app + QR */
.rei-app-section__cta {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}
.rei-app-section__download {
    font-size: 16px;
}
.rei-app-section__qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.rei-app-qr {
    width: 132px;
    height: 132px;
    background: #fff;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(11, 23, 51, .14);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rei-app-qr canvas,
.rei-app-qr img {
    display: block;
    width: 112px !important;
    height: 112px !important;
}
.rei-app-qr__cap {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rei-ink, #0B1733);
    opacity: .75;
    max-width: 150px;
    text-align: center;
    line-height: 1.35;
}
.rei-app-section__media {
    text-align: center;
}
.rei-app-section__media .rei-photo-placeholder {
    aspect-ratio: 5/6;
    border-radius: var(--rei-radius-2xl);
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================================================
   7. MAGAZINE
   ========================================================================== */
.rei-magazine-section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 36px;
}
.rei-magazine-section__header h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 12px 0 0;
}

.rei-magazine-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.rei-magazine-card {
    background: white;
    border-radius: var(--rei-radius-xl);
    overflow: hidden;
    box-shadow: var(--rei-shadow-md);
    transition: var(--rei-transition);
}
.rei-magazine-card:hover { transform: translateY(-6px); box-shadow: var(--rei-shadow-lg); }
.rei-magazine-card__link { display: block; color: inherit; text-decoration: none; }

.rei-magazine-card__image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.rei-magazine-card__image img,
.rei-magazine-card__image .rei-photo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* v1.32.1: placeholder SVG inline ha sfondo gradient soft, non oggetto opaco */
.rei-magazine-card__img--placeholder {
    object-fit: contain !important;
    background: linear-gradient(135deg, #eafbe7 0%, #fff4d4 100%);
}
.rei-magazine-card__cat {
    position: absolute;
    top: 16px;
    left: 16px;
    background: white;
    padding: 6px 14px;
    border-radius: var(--rei-radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--rei-green-deep);
    letter-spacing: 0.05em;
}

.rei-magazine-card__body { padding: 24px; }
.rei-magazine-card__title {
    font-size: 1.125rem;
    margin: 0 0 16px;
    color: var(--rei-ink);
}
.rei-magazine-card__meta {
    display: flex;
    gap: 8px;
    color: var(--rei-gray);
    font-size: 13px;
    margin-bottom: 12px;
}
.rei-magazine-card__read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rei-green-deep);
    font-weight: 700;
    font-size: 14px;
}

/* ==========================================================================
   PHOTO PLACEHOLDERS — Sostituiranno foto stock vere in produzione
   ========================================================================== */
.rei-photo-placeholder {
    position: relative;
    background: linear-gradient(135deg, var(--rei-cream-dark), var(--rei-sand));
    border-radius: var(--rei-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rei-photo-placeholder__label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
}
.rei-photo-placeholder--lamp        { background: linear-gradient(135deg, #B47A4C, #F5D896); }
.rei-photo-placeholder--fire        { background: linear-gradient(180deg, #8C4E32, #4A2818); }
.rei-photo-placeholder--phone-silent { background: linear-gradient(180deg, #3A4665, #6B7A99); }
.rei-photo-placeholder--app-phone   { background: linear-gradient(135deg, var(--rei-cream), var(--rei-cream-dark)); }
.rei-photo-placeholder--article1    { background: linear-gradient(135deg, #A8E6A1, #2D7D2D); }
.rei-photo-placeholder--article2    { background: linear-gradient(135deg, #FFD580, #B87A2E); }
.rei-photo-placeholder--article3    { background: linear-gradient(135deg, #C8E0F0, #4A6F8E); }
.rei-photo-placeholder--article     { background: linear-gradient(135deg, #E8E5DF, #B5B5B5); }

/* ==========================================================================
   RESPONSIVE — Mobile
   ========================================================================== */
@media (max-width: 1024px) {
    .rei-services__grid { grid-template-columns: repeat(2, 1fr); }
    .rei-magazine-section__grid { grid-template-columns: repeat(2, 1fr); }
    /* v1.86.0: sotto i 1024px le card NON sono quadrate (a 2 colonne un quadrato
       sarebbe enorme) → altezza naturale e compatta. */
    .rei-service-card { aspect-ratio: auto; }
}

@media (max-width: 768px) {
    .rei-hero { padding: 56px 0; }
    .rei-hero__inner,
    .rei-offer__inner,
    .rei-chiamate__inner,
    .rei-app-section__inner {
        grid-template-columns: 1fr;
        gap: 24px; /* v0.15.2: era 40px → ridotto, foto più vicina al testo */
    }
    /* v0.15.1: Su mobile la sezione gas (mirror) ha il DOM invertito (media prima di content nell'HTML).
       Forzo order esplicito: content prima, foto dopo. */
    .rei-offer--mirror .rei-offer__inner { direction: ltr; }
    .rei-offer--mirror .rei-offer__content { order: 1; }
    .rei-offer--mirror .rei-offer__media { order: 2; }
    .rei-hero__media,
    .rei-offer__media { max-width: 400px; margin: 0 auto; }

    /* v0.15.2: Su mobile le foto delle offerte sono 4:3 invece di 1:1 (meno altezza,
       meno spazio vuoto tra fine foto e sezione successiva) */
    .rei-offer__media { aspect-ratio: 4/3; }

    /* v0.10.0: Card servizi MOLTO più piccole su mobile */
    .rei-services__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .rei-service-card {
        padding: 18px 12px 16px;
        min-height: 220px;
        border-radius: 18px;
    }
    .rei-service-card__icon-wrap {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    .rei-service-card__icon svg {
        width: 32px;
        height: 32px;
    }
    .rei-service-card__title {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    .rei-service-card__desc {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    .rei-service-card__sep {
        margin-bottom: 12px;
    }
    .rei-service-card__cta {
        padding: 7px 16px;
        font-size: 12px;
    }
    .rei-service-card__badge {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
        font-size: 9px;
    }

    .rei-magazine-section__grid { grid-template-columns: 1fr; }
    .rei-magazine-section__header { flex-direction: column; align-items: flex-start; }
    .rei-hero__cta { flex-direction: row; gap: 10px; }
    .rei-hero__cta .rei-btn { flex: 1; padding: 14px 12px; font-size: 0.875rem; }
    .rei-app-section__stores { flex-direction: column; }
    .rei-app-section__stores .rei-btn { width: 100%; }
    .rei-app-section__cta { flex-direction: column; align-items: center; gap: 18px; }
    .rei-app-section__download { width: 100%; text-align: center; }
    .rei-app-section__qr { align-items: center; }
    .rei-hero__badge-attiva {
        right: auto;
        left: 20px;
        top: -20px;
    }
}

@media (max-width: 480px) {
    /* v0.10.0: rimane 2 colonne (no più 1) per tenere card piccole */
    .rei-services__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .rei-service-card {
        padding: 14px 10px 14px;
        min-height: 190px;
        border-radius: 16px;
    }
    .rei-service-card__icon-wrap {
        width: 52px;
        height: 52px;
        margin-bottom: 10px;
    }
    .rei-service-card__icon svg {
        width: 28px;
        height: 28px;
    }
    .rei-service-card__title {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    .rei-service-card__desc {
        font-size: 11px;
        margin-bottom: 8px;
    }
    .rei-service-card__sep {
        margin-bottom: 8px;
    }
    .rei-service-card__cta {
        padding: 6px 12px;
        font-size: 11px;
    }
    .rei-service-card__badge {
        top: 8px;
        right: 8px;
        padding: 2px 6px;
        font-size: 8px;
    }

    .rei-price-box { padding: 24px; }
    .rei-price-box__value strong { font-size: 3rem; }
    /* v0.4.0: price duo su mobile diventa stacked */
    .rei-price-duo {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .rei-price-card__value strong { font-size: 2.5rem; }
    .rei-price-card--secondary .rei-price-card__value strong { font-size: 2.25rem; }
    .rei-tooltip-modal {
        padding: 32px 24px 24px;
    }
    .rei-tooltip-modal__title { font-size: 1.375rem; }
}

/* ==========================================================================
   v1.88.0 — Banner promo fluo (animato + pulsa) + sezioni eSIM/Community
   ========================================================================== */

/* --- Banner promo fluo sopra la foto hero --- */
.rei-hero__promo { margin: 0 auto 24px; max-width: 92%; animation: rei-promo-float 3.2s ease-in-out infinite; will-change: transform; }
.rei-hero__promo:hover { animation-play-state: paused; }
.rei-hero__promo-card {
    background: #39FF14; color: #06280D; font-weight: 800; font-size: 1.1rem; line-height: 1.35; text-align: center;
    padding: 18px 24px; border-radius: 16px; transform: rotate(3deg);
    transition: transform .4s cubic-bezier(.2,.7,.2,1); will-change: transform, box-shadow; letter-spacing: 0.01em;
    animation: rei-promo-pulse 1.6s ease-in-out infinite;
}
.rei-hero__promo-card:hover { transform: rotate(3deg) translateY(-6px) scale(1.06); }
@keyframes rei-promo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes rei-promo-pulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(0,0,0,.38), 0 0 0 0 rgba(57,255,20,.55); }
    50%      { box-shadow: 0 12px 32px rgba(0,0,0,.38), 0 0 0 16px rgba(57,255,20,0); }
}

/* --- Base comune sezioni eSIM/Community (banda colorata con glow) --- */
.rei-esim-section, .rei-community-section { position: relative; overflow: hidden; color: #ffffff; }
.rei-esim-section::before, .rei-esim-section::after,
.rei-community-section::before, .rei-community-section::after {
    content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; filter: blur(42px); pointer-events: none; z-index: 0;
}
.rei-esim-section__inner, .rei-community-section__inner {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px;
}
.rei-esim-section__content, .rei-community-section__content { max-width: 620px; }
.rei-esim-section__title, .rei-community-section__title {
    font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.06; margin: 10px 0 18px;
}
.rei-esim-section__lead, .rei-community-section__lead {
    font-size: 1.0625rem; line-height: 1.6; color: rgba(255,255,255,0.9); margin: 0 0 26px; max-width: 560px;
}
.rei-esim-section__visual, .rei-community-section__visual { position: relative; aspect-ratio: 4 / 3; }
.rei-esim-section__visual .rei-photo, .rei-esim-section__visual .rei-photo-placeholder,
.rei-community-section__visual .rei-photo, .rei-community-section__visual .rei-photo-placeholder {
    width: 100%; height: 100%; object-fit: cover; border-radius: var(--rei-radius-2xl, 24px);
}

/* --- eSIM: banda blu + globo --- */
.rei-esim-section { background: linear-gradient(150deg, #2E86D8 0%, #134B96 100%); }
.rei-esim-section::before { background: #5BE3E3; top: -180px; right: -120px; opacity: 0.20; }
.rei-esim-section::after  { background: #1F78C4; bottom: -180px; left: -120px; opacity: 0.30; }
.rei-esim-section .rei-eyebrow { color: #BFF5F5; }
.rei-esim-section__cta { background: #ffffff; color: #0A2A7A; }
.rei-esim-section__cta:hover { background: #EAF6FF; color: #0A2A7A; }
.rei-photo-placeholder--globe { background: linear-gradient(135deg, #1F78C4, #0A2A7A); }

/* --- Community: banda viola --- */
.rei-community-section { background: linear-gradient(150deg, #7C3AED 0%, #4C1D95 100%); }
.rei-community-section::before { background: #C4A6FF; top: -180px; right: -120px; opacity: 0.20; }
.rei-community-section::after  { background: #6D28D9; bottom: -180px; left: -120px; opacity: 0.30; }
.rei-community-section .rei-eyebrow { color: #E9D8FF; }
.rei-community-section__cta { background: #ffffff; color: #4C1D95; }
.rei-community-section__cta:hover { background: #F3ECFF; color: #4C1D95; }
.rei-photo-placeholder--community { background: linear-gradient(135deg, #7C3AED, #4C1D95); }

/* --- CTA "Scopri di più": usano il pulse globale .rei-btn con anello bianco --- */
.rei-esim-section__cta, .rei-community-section__cta { --btn-ring: rgba(255,255,255,.60); }
@keyframes rei-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
    50%      { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}

/* --- Responsive: impila su mobile --- */
@media (max-width: 860px) {
    .rei-esim-section__inner, .rei-community-section__inner { grid-template-columns: 1fr; gap: 26px; }
    .rei-esim-section__visual, .rei-community-section__visual { order: -1; max-width: 460px; width: 100%; margin: 0 auto; }
}

/* --- Rispetto "riduci animazioni" --- */
@media (prefers-reduced-motion: reduce) {
    .rei-hero__promo, .rei-hero__promo-card, .rei-esim-section__cta, .rei-community-section__cta { animation: none; }
}

/* ==========================================================================
   v1.91.0 — Fix prezzo PUN + secondo banner arancione (Community)
   ========================================================================== */

/* --- Fix: il valore del box prezzo principale (es. "PUN+0,008") non va tagliato --- */
.rei-price-card--main .rei-price-card__value strong { font-size: clamp(1.65rem, 4.4vw, 2.35rem); }
.rei-price-card__value { overflow-wrap: normal; }
.rei-price-card { min-width: 0; }

/* --- Anello del pulse dei banner promo via variabile (verde di default) --- */
.rei-hero__promo-card { --promo-ring: rgba(57, 255, 20, .55); }
@keyframes rei-promo-pulse {
    0%, 100% { box-shadow: 0 12px 32px rgba(0,0,0,.38), 0 0 0 0 var(--promo-ring); }
    50%      { box-shadow: 0 12px 32px rgba(0,0,0,.38), 0 0 0 16px rgba(0,0,0,0); }
}

/* --- Secondo banner: arancione fluo CHIARO, cliccabile -> pagina Community --- */
.rei-hero__promo--link { text-decoration: none; display: block; }
.rei-hero__promo-card--orange {
    background: #FFB54A;
    color: #3A1A00;
    --promo-ring: rgba(255, 181, 74, .72);
}
/* Banner Community a sinistra: alzato ancora, ruotato a -3° (come il verde ma opposto) */
.rei-hero__promo--left { margin: -44px 0 64px; max-width: 100%; }
.rei-hero__promo-card--big {
    display: block;            /* FIX: lo <span> inline non era ruotabile; ora si inclina */
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.25;
    padding: 38px 32px;
    transform: rotate(-3deg);
    letter-spacing: 0.01em;
    text-align: center;
}
.rei-hero__promo--link:hover .rei-hero__promo-card--big { transform: rotate(-3deg) translateY(-6px) scale(1.04); }

/* --- Riduci animazioni: ferma anche il banner arancione --- */
@media (prefers-reduced-motion: reduce) {
    .rei-hero__promo--orange, .rei-hero__promo-card--orange { animation: none; }
}

/* ==========================================================================
   v1.91.2 — Mobile: hero più ordinato (no sovrapposizioni)
   ========================================================================== */
@media (max-width: 768px) {
    /* Banner Community: piccolo, dritto, tutto leggibile */
    .rei-hero__promo--left { max-width: 100%; margin: -24px 0 14px; }
    .rei-hero__promo-card--big {
        font-size: clamp(0.95rem, 4vw, 1.15rem);
        line-height: 1.2;
        padding: 13px 16px;
        transform: rotate(0deg);
    }
    /* La foto definisce la propria altezza (quadrata): così il cerchio si aggancia
       davvero al bordo della foto e non galleggia a metà. */
    .rei-hero__media { aspect-ratio: auto; }
    .rei-hero__photo { aspect-ratio: 1 / 1; height: auto; }
    /* Cerchio verde "ATTIVA in 3 minuti": in BASSO a SINISTRA, nell'angolo della foto. */
    .rei-hero__badge-attiva { top: auto; bottom: 12px; left: 12px; right: auto; z-index: 3; }
    /* Cerchio decorativo giallo: nascosto su mobile (creava confusione dietro il banner). */
    .rei-hero__deco-circle { display: none !important; }
}

/* ==========================================================================
   v1.92.2 — Pulsanti CTA delle offerte (Voglio attivarla / TI CHIAMIAMO NOI)
   grandi e UGUALI (stessa larghezza).
   ========================================================================== */
.rei-offer__actions .rei-btn { min-width: 270px; }
@media (max-width: 768px) {
    .rei-offer__actions .rei-btn { min-width: 0; }
}

/* ==========================================================================
   v1.105.0 — Manina "cliccami" animata (indicatore visivo di clic)
   ========================================================================== */
.rei-clickhand-host { position: relative; overflow: visible !important; }
.rei-clickhand {
    position: absolute;
    right: -2px;
    bottom: -20px;
    width: 52px;
    height: 62px;
    pointer-events: none;
    z-index: 6;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.32));
    transform-origin: 50% 0;
    animation: rei-clickhand-tap 1.15s ease-in-out infinite;
    will-change: transform;
}
.rei-clickhand svg { display: block; width: 100%; height: 100%; }
@keyframes rei-clickhand-tap {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    40%      { transform: translateY(-11px) rotate(-7deg); }
    70%      { transform: translateY(-11px) rotate(-7deg); }
}
@media (prefers-reduced-motion: reduce) {
    .rei-clickhand { animation: none; }
}

/* ==========================================================================
   FOTOVOLTAICO — v1.8.0: sezione home dopo la Community (rimanda a /fotovoltaico/)
   Rettangolo con ombra, titolo auto-sottolineato, pulsante giallo che pulsa.
   Impianti powered by GIS.
   ========================================================================== */
.fe-fv { padding: 56px 0; background: linear-gradient(180deg, #ffffff, #f4f8f6); position: relative; overflow: hidden; }
.fe-fv__card {
    background: #ffffff; border: 1px solid #eef5f1; border-radius: 26px;
    /* v1.9.1: ombra più marcata */
    box-shadow: 0 18px 40px rgba(26, 158, 0, .22), 0 34px 80px rgba(26, 158, 0, .18);
    display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden;
}
.fe-fv__txt { padding: 46px 44px; }
.fe-fv__title {
    font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900;
    letter-spacing: -.02em; line-height: 1.12; margin: 12px 0 16px;
    color: var(--rei-green-dark, #1A9E00);
}
.fe-fv__lead { font-size: 1.08rem; line-height: 1.6; margin: 0 0 14px; }
.fe-fv__points { list-style: none; margin: 0 0 26px; padding: 0; }
.fe-fv__points li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; font-weight: 600; margin: 9px 0; }
.fe-fv__points li span { color: var(--rei-green, #22CA01); font-size: 1.05rem; line-height: 1.3; }
.fe-fv__btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--rei-yellow, #FFB800); color: #3a2a00 !important;
    font-weight: 900; font-size: 1.08rem; text-decoration: none;
    border-radius: 999px; padding: 17px 32px;
    box-shadow: 0 10px 26px rgba(255, 184, 0, .55);
    animation: feFvPulse 1.6s ease-in-out infinite;
    transition: filter .2s ease;
}
.fe-fv__btn:hover { filter: brightness(1.06); }
@keyframes feFvPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(255, 184, 0, .55); }
    50%      { transform: scale(1.045); box-shadow: 0 14px 34px rgba(255, 184, 0, .8); }
}
.fe-fv__free { display: block; margin-top: 12px; font-size: .85rem; font-weight: 700; color: #6b7f77; }
.fe-fv__gis {
    display: inline-flex; align-items: center; gap: 12px; margin-top: 16px;
    background: var(--rei-green-dark, #1A9E00); border-radius: 12px; padding: 8px 16px;
    box-shadow: 0 8px 20px rgba(26, 158, 0, .25);
}
.fe-fv__gis span { color: #D4F5C2; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fe-fv__gis img { height: 32px; width: auto; display: block; }
.fe-fv__vis {
    background: linear-gradient(160deg, #E8FAE0, #D4F5C2);
    display: flex; align-items: center; justify-content: center; padding: 30px;
}
.fe-fv__vis svg { width: 100%; max-width: 360px; filter: drop-shadow(0 18px 30px rgba(26, 158, 0, .2)); }

@media (max-width: 860px) {
    .fe-fv { padding: 40px 0; }
    .fe-fv__card { grid-template-columns: 1fr; }
    .fe-fv__txt { padding: 28px 20px; }
    .fe-fv__vis { order: -1; padding: 22px; }
    .fe-fv__btn { width: 100%; justify-content: center; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
    .fe-fv__btn { animation: none; }
}

/* v1.9.3 — fotografia come quella della Community: riquadro arrotondato
   con margine attorno, NON a tutto spazio (Customizer → Home · Fotovoltaico) */
.fe-fv__vis--photo { padding: 30px; }
.fe-fv__vis--photo .fe-fv__photo,
.fe-fv__vis--photo img {
    width: 100%; height: auto; max-height: 430px; object-fit: cover; display: block;
    border-radius: var(--rei-radius-2xl, 24px);
    box-shadow: 0 18px 44px rgba(26, 158, 0, .3);
}
@media (max-width: 860px) {
    .fe-fv__vis--photo { padding: 20px; }
    .fe-fv__vis--photo .fe-fv__photo,
    .fe-fv__vis--photo img { max-height: 280px; }
}

/* v1.14.0 — QR code in fondo alla card Fotovoltaico */
.fe-fv__qr { grid-column: 1 / -1; display: flex; align-items: center; gap: 26px; padding: 24px 44px 28px; border-top: 1px solid #E8FAE0; background: #f4faf2; }
.fe-fv__qr-code { flex: 0 0 auto; background: #fff; border: 2px solid #D4F5C2; border-radius: 14px; padding: 8px; line-height: 0; box-shadow: 0 10px 26px rgba(26, 158, 0, .14); }
.fe-fv__qr-code svg { display: block; }
.fe-fv__qr-txt { margin: 0; font-size: 1.18rem; line-height: 1.5; font-weight: 800; color: var(--rei-green-dark, #1A9E00); }
@media (max-width: 900px) {
    .fe-fv__qr { flex-direction: column; text-align: center; gap: 14px; padding: 20px 20px 24px; }
    .fe-fv__qr-txt { font-size: 1.05rem; }
}

/* v1.17.2 — pulsante home: se il testo va a capo riparte accanto al sole, non sotto */
.fe-fv__btn-ico { flex: 0 0 auto; line-height: 1; }
.fe-fv__btn-txt { flex: 1 1 auto; min-width: 0; text-align: left; line-height: 1.25; }
.fe-fv__gis { flex-wrap: nowrap; }
.fe-fv__gis span { white-space: nowrap; }
.fe-fv__gis img { flex: 0 0 auto; }

/* v1.17.3 — badge "Impianti powered by GIS": mai fuori dal riquadro (logo contenuto, su telefono a tutta larghezza e centrato) */
.fe-fv__gis { max-width: 100%; box-sizing: border-box; }
.fe-fv__gis img { max-width: 100%; object-fit: contain; }
@media (max-width: 640px) {
    .fe-fv__gis { display: flex; width: 100%; justify-content: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px 14px; text-align: center; }
    .fe-fv__gis span { white-space: nowrap; }
    .fe-fv__gis img { height: 30px; max-width: 46%; }
}
