/* ==========================================================================
   Page — Fotovoltaico (/fotovoltaico/)
   Analisi AI del tetto + stima + richiesta ricontatto. Powered by GIS.
   Stile sito: rettangoli con ombre, titoli auto-sottolineati (.rei-underline
   animata da main.js), pulsanti fluo che pulsano.
   ========================================================================== */

.fv-page { background: linear-gradient(180deg, #ffffff 0%, #f4faf2 30%, #E8FAE0 100%); }
.fv-page [hidden] { display: none !important; } /* v1.16.0: l'attributo hidden vince sempre sulle regole display */

/* ---------- HERO ---------- */
.fv-hero { padding: 56px 0 10px; }
.fv-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--rei-yellow, #FFB800); color: #3a2a00;
    font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
    padding: 7px 16px; border-radius: 999px; margin-bottom: 14px;
}
.fv-title {
    font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 900;
    letter-spacing: -.02em; line-height: 1.12; margin: 0 0 14px;
    color: var(--rei-green-dark, #1A9E00);
}
.fv-sub { font-size: 1.08rem; line-height: 1.58; max-width: 680px; margin: 0 0 18px; }

.fv-gis-badge {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--rei-green-dark, #1A9E00);
    border-radius: 14px; padding: 10px 18px; margin-bottom: 8px;
    box-shadow: 0 10px 26px rgba(26, 158, 0, .3);
}
.fv-gis-badge__lbl { color: #D4F5C2; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fv-gis-badge img { height: 40px; width: auto; display: block; }

/* ---------- SEZIONI / CARD ---------- */
.fv-section { padding: 30px 0; }
.fv-h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 900; color: var(--rei-green-dark, #1A9E00); margin: 0 0 22px; }
.fv-h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 900; color: var(--rei-green-dark, #1A9E00); margin: 0 0 14px; }
.fv-card {
    background: #ffffff; border: 1px solid #eef8ec; border-radius: 22px;
    box-shadow: 0 14px 34px rgba(26, 158, 0, .2), 0 28px 70px rgba(26, 158, 0, .14); /* v1.9.1: ombra più marcata */
    padding: 28px; margin-bottom: 22px;
}

/* ---------- VANTAGGI ---------- */
.fv-vantaggi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fv-vant { margin-bottom: 0; padding: 22px 20px; transition: transform .25s ease, box-shadow .25s ease; }
.fv-vant:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(26, 158, 0, .28); }
.fv-vant__ico {
    width: 52px; height: 52px; border-radius: 14px; background: #E8FAE0;
    display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 12px;
}
.fv-vant h3 { margin: 0 0 7px; font-size: 1.05rem; font-weight: 800; color: var(--rei-green-dark, #1A9E00); }
.fv-vant p { margin: 0; font-size: .9rem; line-height: 1.55; color: #39ab22; }

/* ---------- PULSANTI ---------- */
.fv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: inherit; font-weight: 900; font-size: 1.02rem;
    border: 0; border-radius: 999px; padding: 16px 30px; cursor: pointer;
    text-decoration: none; transition: filter .2s ease;
}
.fv-btn--green { background: var(--rei-green, #22CA01); color: #ffffff; box-shadow: 0 10px 26px rgba(34, 202, 1, .4); }
.fv-btn--yellow { background: var(--rei-yellow, #FFB800); color: #3a2a00; box-shadow: 0 10px 26px rgba(255, 184, 0, .55); }
.fv-btn:hover { filter: brightness(1.06); }
.fv-btn:disabled { opacity: .55; cursor: default; animation: none !important; }
.fv-btn--pulse { animation: fvBtnPulse 1.6s ease-in-out infinite; }
@keyframes fvBtnPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.045); }
}

/* ---------- STEP INDICATOR ---------- */
.fv-steps { display: flex; flex-wrap: wrap; margin: 0 0 22px; }
.fv-step {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 18px 9px 12px; background: #fff; border: 2px solid #D4F5C2;
    border-radius: 999px; margin: 0 10px 8px 0;
    font-weight: 700; font-size: .9rem; color: #5dba4b;
    box-shadow: 0 6px 16px rgba(26, 158, 0, .05); transition: all .3s ease;
}
.fv-step b {
    width: 26px; height: 26px; border-radius: 50%; background: #D4F5C2;
    color: var(--rei-green-dark, #1A9E00); display: grid; place-items: center; font-size: .85rem;
}
.fv-step.is-on { border-color: var(--rei-green, #22CA01); color: var(--rei-green-dark, #1A9E00); box-shadow: 0 6px 18px rgba(34, 202, 1, .2); }
.fv-step.is-on b { background: var(--rei-green, #22CA01); color: #fff; }
.fv-step.is-done { border-color: var(--rei-green, #22CA01); color: var(--rei-green, #22CA01); }
.fv-step.is-done b { background: var(--rei-yellow, #FFB800); color: #3a2a00; }

/* ---------- STEP 1: INDIRIZZO ---------- */
.fv-addr__row { display: flex; gap: 12px; flex-wrap: wrap; }
.fv-addr__field { flex: 1 1 340px; position: relative; }
.fv-addr__pin { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 1.15rem; }
.fv-addr__input {
    width: 100%; box-sizing: border-box;
    padding: 16px 16px 16px 46px; font-family: inherit; font-size: 1rem;
    border: 2px solid #D4F5C2; border-radius: 14px; outline: none; transition: border-color .2s ease;
}
.fv-addr__input:focus { border-color: var(--rei-green, #22CA01); }
.fv-hint { font-size: .83rem; color: #4db439; margin: 10px 2px 0; }
.fv-error { background: #fdeaea; border: 1px solid #f0b8b8; color: #8a2424; border-radius: 10px; padding: 10px 14px; font-size: .9rem; font-weight: 600; margin: 12px 0 0; }
.fv-addr__results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
    background: #fff; border: 1px solid #D4F5C2; border-radius: 14px;
    box-shadow: 0 16px 40px rgba(26, 158, 0, .15); overflow: hidden;
}
.fv-addr__results button {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: 13px 16px; font-family: inherit; font-size: .95rem; cursor: pointer; color: inherit;
}
.fv-addr__results button:hover { background: #f4faf2; }

/* ---------- STEP 2: SATELLITE ---------- */
.fv-ai-status { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--rei-green-dark, #1A9E00); margin: 0 0 14px; font-size: .98rem; }
.fv-ai-status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rei-yellow, #FFB800); animation: fvDot 1s infinite; flex: 0 0 auto; }
.fv-ai-status.is-done .fv-ai-status__dot { animation: none; background: var(--rei-green, #22CA01); }
@keyframes fvDot { 50% { transform: scale(1.6); opacity: .5; } }

.fv-sat__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; min-width: 0; }
.fv-sat { min-width: 0; overflow: hidden; }
.fv-sat__viewport {
    position: relative; border-radius: 18px; overflow: hidden;
    min-height: 300px; background: #39493a; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2);
    aspect-ratio: 640 / 448; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.fv-sat__viewport.is-panning { cursor: grabbing; }
/* v1.9.7 — stage trascinabile: canvas doppio rispetto alla finestra */
.fv-sat__stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; transform-origin: 0 0; }
/* v1.9.8 — controlli zoom (+ / −) in alto a destra della vista */
.fv-sat__zoom {
    position: absolute; top: 12px; right: 12px; z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: rgba(0,0,0,.6); border-radius: 12px; padding: 6px;
}
.fv-sat__zoom-btn {
    width: 36px; height: 36px; border: 0; border-radius: 9px; cursor: pointer;
    background: #fff; color: var(--rei-green-dark, #1A9E00);
    font: 900 22px/1 inherit; font-family: inherit; display: grid; place-items: center;
    touch-action: manipulation;
}
.fv-sat__zoom-btn:hover { background: var(--rei-yellow, #FFB800); color: #3a2a00; }
.fv-sat__zoom-lbl { color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.fv-sat__stage img { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; -webkit-user-drag: none; }
.fv-sat__pin {
    position: absolute; transform: translate(-50%, -100%); font-size: 30px; line-height: 1;
    pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); z-index: 3;
}
#fv-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.fv-poly {
    fill: rgba(255, 184, 0, .24); stroke: var(--rei-yellow, #FFB800); stroke-width: 3.5;
    stroke-dasharray: 8 7; animation: fvDash 1.2s linear infinite;
    pointer-events: auto; cursor: move; vector-effect: non-scaling-stroke;
}
@keyframes fvDash { to { stroke-dashoffset: -30; } }
/* v1.9.0 — maniglie per adattare l'area del tetto */
.fv-handle {
    fill: #ffffff; stroke: var(--rei-yellow, #FFB800); stroke-width: 4; vector-effect: non-scaling-stroke;
    pointer-events: auto; cursor: grab;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.fv-handle:active { cursor: grabbing; fill: var(--rei-yellow, #FFB800); }
.fv-edit-hint {
    background: #fffbe6; border: 1px solid #f0e6a8; border-radius: 12px;
    padding: 10px 14px; font-size: .85rem; line-height: 1.5; color: #6d5f10;
    margin: 12px 0 0;
}
.fv-sat__tag {
    position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.65); color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; padding: 5px 11px;
    border-radius: 8px; text-transform: uppercase;
}
.fv-sat__addr {
    position: absolute; bottom: 12px; left: 12px; right: 12px;
    background: rgba(255,255,255,.9); border-radius: 10px; padding: 8px 12px;
    font-size: .83rem; font-weight: 700; color: var(--rei-green-dark, #1A9E00);
    display: flex; gap: 8px; align-items: center;
}
.fv-sat__scan {
    position: absolute; left: 0; right: 0; top: 0; height: 64px; opacity: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 184, 0,0), rgba(255, 184, 0,.55) 55%, var(--rei-yellow, #FFB800));
}
.fv-sat.is-scanning .fv-sat__scan { opacity: 1; animation: fvScan 1.6s linear infinite; }
@keyframes fvScan { from { transform: translateY(-70px); } to { transform: translateY(420px); } }

/* ---------- RISULTATI ---------- */
.fv-res { display: grid; gap: 12px; }
.fv-res__card {
    background: #f4faf2; border: 2px solid #D4F5C2; border-radius: 16px;
    padding: 14px 16px; text-align: center; box-shadow: 0 10px 26px rgba(26, 158, 0, .14);
}
.fv-res__ico { font-size: 1.3rem; }
.fv-res__val { font-size: 1.5rem; font-weight: 900; color: var(--rei-green-dark, #1A9E00); margin: 4px 0 2px; }
.fv-res__val small { font-size: .85rem; font-weight: 800; color: var(--rei-green, #22CA01); }
.fv-res__lbl { font-size: .78rem; font-weight: 700; color: #4db439; text-transform: uppercase; letter-spacing: .04em; }
.fv-res__note {
    background: #fffbe6; border: 1px solid #f0e6a8; border-radius: 12px;
    padding: 12px 15px; font-size: .85rem; line-height: 1.5; color: #6d5f10; margin: 2px 0 0;
}

/* ---------- SIMULAZIONE RISPARMIO (v1.10.0): orizzontale a tutta larghezza ---------- */
.fv-save {
    background: var(--rei-green-dark, #1A9E00); color: #fff; border-radius: 18px;
    padding: 20px 22px 16px; margin-top: 22px; box-shadow: 0 14px 34px rgba(26, 158, 0, .3);
}
.fv-save__top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 10px; } /* v1.16.0: consumo sempre su una riga propria (niente su e giù al cambiare dei numeri) */
.fv-save__head { font-weight: 900; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fv-save__badge { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 3px 9px; }
.fv-save__input { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; font-weight: 700; }
.fv-save__input small { font-weight: 600; color: #D4F5C2; }
.fv-save__input input {
    width: 96px; padding: 9px 10px; font: inherit; font-weight: 900; font-size: 1.1rem; text-align: center;
    border: 2px solid var(--rei-yellow, #FFB800); border-radius: 10px; background: #fff; color: var(--rei-green-dark, #1A9E00); outline: none;
}
.fv-save__input input:focus { box-shadow: 0 0 0 3px rgba(255, 184, 0, .45); }
.fv-save__base { margin: 0 0 12px; font-size: .84rem; line-height: 1.5; color: #D4F5C2; }
.fv-save__base strong { color: #fff; }
.fv-save { max-width: 100%; min-width: 0; }
.fv-save__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.fv-save__tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: .98rem; min-width: 520px; }
.fv-save__tbl th, .fv-save__tbl td { padding: 11px 10px; text-align: center; vertical-align: middle; white-space: nowrap; }
.fv-save__tbl thead th { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #D4F5C2; padding-bottom: 2px; }
.fv-save__tbl tbody th { text-align: left; font-weight: 800; color: #fff; line-height: 1.2; }
.fv-save__tbl tbody th small { display: block; font-size: .68rem; font-weight: 700; color: #b7e1af; }
.fv-save__tbl tbody td { background: rgba(255,255,255,.1); font-weight: 700; }
.fv-save__tbl tbody td:first-of-type { border-radius: 10px 0 0 10px; }
.fv-save__tbl tbody td:last-of-type { border-radius: 0 10px 10px 0; }
.fv-save__row-oggi td { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.55); color: #D4F5C2; }
.fv-save__row-con td { color: #fff; font-size: 1.02rem; }
.fv-save__row-risp td { color: #ffe296; font-weight: 800; }
.fv-save__row-gse td { color: #ffe296; font-weight: 800; }
.fv-save__row-tot th { color: var(--rei-yellow, #FFB800); }
.fv-save__row-tot td { background: var(--rei-yellow, #FFB800); color: #3a2a00; font-weight: 900; font-size: 1.12rem; }
.fv-save__risp--big { font-size: 1.3rem !important; }
.fv-save__warn { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); border-radius: 10px; padding: 9px 12px; }
.fv-save__over { margin: 12px 0 0; font-size: .84rem; line-height: 1.45; color: #3a2a00; background: #ffe9a8; border-radius: 10px; padding: 9px 12px; font-weight: 600; }
.fv-save__extra { margin: 12px 0 0; font-size: .84rem; line-height: 1.45; color: #e9f6e7; background: rgba(255,255,255,.1); border-radius: 10px; padding: 9px 12px; }
.fv-save__cost { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.fv-save__cost.has-detr { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .fv-save__cost.has-detr { grid-template-columns: 1fr 1fr; } }
.fv-save__cost-cell { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 12px 12px 10px; text-align: center; }
.fv-save__cost-lbl { display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #D4F5C2; }
.fv-save__cost-val { display: block; font-size: 1.3rem; font-weight: 900; color: #fff; margin: 4px 0 2px; }
.fv-save__cost-val.is-neg { color: #ffb4b4; }
.fv-save__cost-sub { display: block; font-size: .7rem; line-height: 1.35; color: #b7e1af; }
.fv-save__prud { margin: 12px 0 0; font-size: .84rem; line-height: 1.45; color: #fff; background: rgba(0,0,0,.18); border-radius: 10px; padding: 9px 12px; }
.fv-save__how { margin: 12px 0 0; background: rgba(255,255,255,.08); border-radius: 10px; padding: 8px 12px; }
.fv-save__how summary { cursor: pointer; font-weight: 800; font-size: .86rem; color: #fff; }
.fv-save__how ul { margin: 8px 0 4px; padding-left: 18px; font-size: .8rem; line-height: 1.5; color: #e9f6e7; }
.fv-save__how li { margin: 4px 0; }
@media (max-width: 640px) { .fv-save__cost { grid-template-columns: 1fr; } }
/* ---------- AMBIENTE (v1.10.3) ---------- */
.fv-eco { margin: 16px 0 0; background: linear-gradient(135deg, #E8FAE0, #f4faf2); color: var(--rei-green-dark, #1A9E00); border-radius: 14px; padding: 16px 18px 12px; border: 1px solid #d4edcf; }
.fv-eco__head { font-weight: 900; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fv-eco__badge { font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #fff; border: 1px solid #bee3b7; border-radius: 999px; padding: 3px 9px; }
.fv-eco__lead { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: #039400; }
.fv-eco__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.fv-eco__tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: .96rem; min-width: 520px; }
.fv-eco__tbl th, .fv-eco__tbl td { padding: 10px 10px; text-align: center; vertical-align: middle; white-space: nowrap; }
.fv-eco__tbl thead th { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #53b640; padding-bottom: 2px; }
.fv-eco__tbl tbody th { text-align: left; font-weight: 800; color: var(--rei-green-dark, #1A9E00); line-height: 1.2; }
.fv-eco__tbl tbody th small { display: block; font-size: .68rem; font-weight: 700; color: #59b947; }
.fv-eco__tbl tbody td { background: #fff; font-weight: 800; color: var(--rei-green-dark, #1A9E00); }
.fv-eco__tbl tbody td:first-of-type { border-radius: 10px 0 0 10px; }
.fv-eco__tbl tbody td:last-of-type { border-radius: 0 10px 10px 0; }
.fv-eco__row-co2 td { background: var(--rei-green, #22CA01); color: #fff; font-size: 1.05rem; }
.fv-eco__profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.fv-eco__pill { background: #fff; border: 1px solid #d4edcf; border-radius: 12px; padding: 10px 12px; font-size: .84rem; line-height: 1.4; color: #039400; }
.fv-eco__pill strong { color: var(--rei-green-dark, #1A9E00); }
.fv-eco__src { margin: 10px 0 0; font-size: .72rem; line-height: 1.45; color: #53b640; }
@media (max-width: 640px) { .fv-eco__profile { grid-template-columns: 1fr; } .fv-eco__tbl { font-size: .84rem; min-width: 460px; } }
.fv-save__cover { margin: 10px 0 0; font-size: .84rem; line-height: 1.45; color: #ffe9a8; }
.fv-save__src { margin: 12px 0 0; font-size: .74rem; line-height: 1.45; color: #c8e8c2; }
@media (max-width: 640px) {
    .fv-save { padding: 16px 14px 12px; }
    .fv-save__tbl { font-size: .86rem; min-width: 460px; }
    .fv-save__tbl th, .fv-save__tbl td { padding: 9px 7px; }
}

/* ---------- TECNICO ---------- */
.fv-tech {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--rei-green-dark, #1A9E00); color: #fff; border-radius: 22px;
    padding: 24px 26px; margin-bottom: 22px; box-shadow: 0 14px 40px rgba(26, 158, 0, .3);
}
.fv-tech__ico { font-size: 2rem; line-height: 1; background: rgba(255,255,255,.14); border-radius: 14px; padding: 12px; flex: 0 0 auto; }
.fv-tech__txt h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; color: #fff; }
.fv-tech__txt p { margin: 0; font-size: .93rem; line-height: 1.55; color: #e9f6e7; }
.fv-tech__gis { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; }
.fv-tech__gis span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #b7e1af; }
.fv-tech__gis img { height: 30px; width: auto; display: block; }

/* ---------- FORM ---------- */
.fv-form__sub { margin: 0 0 18px; font-size: .93rem; color: #39ab22; }
.fv-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.fv-form__full { grid-column: 1 / -1; }
.fv-form__grid label {
    display: block; font-size: .8rem; font-weight: 800; color: var(--rei-green-dark, #1A9E00);
    margin: 0 0 5px; text-transform: uppercase; letter-spacing: .04em;
}
.fv-form__grid input, .fv-form__grid select {
    width: 100%; box-sizing: border-box; padding: 13px 14px;
    font-family: inherit; font-size: .97rem; border: 2px solid #D4F5C2; border-radius: 12px;
    outline: none; background: #fff;
}
.fv-form__grid input:focus, .fv-form__grid select:focus { border-color: var(--rei-green, #22CA01); }
.fv-form__priv {
    display: flex; gap: 11px; align-items: flex-start;
    background: #f4faf2; border: 1.5px solid #D4F5C2; border-radius: 12px;
    padding: 13px 14px; margin: 15px 0; font-size: .87rem; line-height: 1.5; cursor: pointer;
}
.fv-form__priv input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--rei-green, #22CA01); flex: 0 0 auto; }
.fv-form__priv a { color: var(--rei-green, #22CA01); font-weight: 700; }
.fv-form__send { width: 100%; font-size: 1.05rem; }
.fv-form__send:disabled { background: #e3e8e0; color: #9aa79f; box-shadow: none; }
.fv-form__ok {
    background: #D4F5C2; border-radius: 14px; padding: 18px; text-align: center;
    font-weight: 800; color: var(--rei-green-dark, #1A9E00); margin-top: 6px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
    .fv-vantaggi__grid { grid-template-columns: 1fr 1fr; }
    .fv-sat__grid { grid-template-columns: minmax(0, 1fr); }
    .fv-sat__viewport { min-height: 0; } /* v1.10.5: con aspect-ratio, min-height forzava 428px di larghezza */
    .fv-sat__left, .fv-res { min-width: 0; max-width: 100%; }
}
@media (max-width: 640px) {
    .fv-hero { padding: 38px 0 6px; }
    /* v1.10.5 — risultati compatti 2×2 invece che in colonna lunga */
    .fv-res { grid-template-columns: 1fr 1fr; gap: 10px; }
    .fv-res__note { grid-column: 1 / -1; }
    .fv-res__card { padding: 12px 8px; }
    .fv-res__ico { font-size: 1.1rem; }
    .fv-res__val { font-size: 1.25rem; }
    .fv-res__val small { font-size: .72rem; }
    .fv-res__lbl { font-size: .66rem; }
    .fv-sat__addr { font-size: .78rem; }
    .fv-sat__addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* v1.10.5 — tabelle simulazione e ambiente: su telefono diventano schede impilate */
    .fv-save__scroll, .fv-eco__scroll { overflow: visible; }
    .fv-save__tbl, .fv-eco__tbl { min-width: 0; border-spacing: 0; display: block; }
    .fv-save__tbl thead, .fv-eco__tbl thead { display: none; }
    .fv-save__tbl tbody, .fv-eco__tbl tbody { display: block; }
    .fv-save__tbl tbody tr, .fv-eco__tbl tbody tr { display: block; border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; background: rgba(255,255,255,.1); }
    .fv-eco__tbl tbody tr { background: #fff; }
    .fv-save__tbl tbody th, .fv-eco__tbl tbody th { display: block; text-align: left; padding: 0 0 6px; white-space: normal; }
    .fv-save__tbl tbody td, .fv-eco__tbl tbody td { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; background: none !important; border-radius: 0 !important; white-space: normal; font-size: .95rem; text-align: right; border-top: 1px solid rgba(255,255,255,.12); }
    .fv-eco__tbl tbody td { border-top-color: #e5f4e2; }
    .fv-save__tbl tbody td::before, .fv-eco__tbl tbody td::before { content: attr(data-label); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .8; text-align: left; }
    .fv-save__row-oggi td { text-decoration: none; }
    .fv-save__row-oggi td::after { content: none; }
    .fv-save__row-tot { background: var(--rei-yellow, #FFB800) !important; color: #3a2a00; }
    .fv-save__row-tot th { color: #3a2a00 !important; }
    .fv-save__row-tot td { color: #3a2a00 !important; border-top-color: rgba(0,0,0,.12) !important; }
    .fv-save__tbl .fv-save__row-tot th small { color: #3a2a00 !important; }
    .fv-eco__row-co2 { background: var(--rei-green, #22CA01) !important; }
    .fv-eco__row-co2 th, .fv-eco__row-co2 td { color: #fff !important; }
    .fv-eco__row-co2 td { border-top-color: rgba(255,255,255,.25) !important; }
    .fv-save__risp--big { font-size: 1.05rem !important; }
    .fv-vantaggi__grid { grid-template-columns: 1fr; }
    .fv-form__grid { grid-template-columns: 1fr; }
    .fv-card { padding: 20px 16px; }
    .fv-tech { flex-direction: column; gap: 12px; }
    .fv-addr__row .fv-btn { width: 100%; }
    .fv-gis-badge img { height: 32px; }
}

/* ---------- ACCESSIBILITÀ ---------- */
@media (prefers-reduced-motion: reduce) {
    .fv-btn--pulse, .fv-poly, .fv-ai-status__dot, .fv-sat.is-scanning .fv-sat__scan { animation: none !important; }
}

/* v1.11.0 — QR code della pagina */
.fv-qr-sec { padding-top: 0; }
.fv-qr { display: flex; align-items: center; gap: 26px; }
.fv-qr__code { flex: 0 0 auto; background: #fff; border: 2px solid #D4F5C2; border-radius: 14px; padding: 10px; box-shadow: 0 10px 26px rgba(26, 158, 0, .14); line-height: 0; }
.fv-qr__code svg { display: block; }
.fv-qr__txt p { margin: 8px 0 0; font-size: 1.22rem; line-height: 1.5; font-weight: 800; color: var(--rei-green-dark, #1A9E00); } /* v1.14.0: testo grande e ben visibile */
@media (max-width: 640px) {
    .fv-qr { flex-direction: column; text-align: center; gap: 14px; }
}

/* v1.11.0 — telefonino: riquadri larghi fino al bordo dello schermo
   (meno cornici annidate: card → schema → ambiente → schede) */
@media (max-width: 640px) {
    .fv-try .rei-container { padding-left: 10px; padding-right: 10px; }
    .fv-try .fv-card { padding: 16px 10px; border-radius: 14px; }
    .fv-save { margin-left: -10px; margin-right: -10px; max-width: none; width: auto; padding: 14px 8px 10px; border-radius: 14px; } /* v1.16.3: max-width:none, altrimenti il riquadro resta stretto e sfalsato a sinistra */
    .fv-eco { margin: 14px -4px 0; padding: 12px 6px 10px; }
    .fv-save__tbl tbody tr, .fv-eco__tbl tbody tr { padding: 10px 10px; }
    .fv-save__cost { grid-template-columns: 1fr; }
    .fv-tech { padding: 20px 16px; }
}

/* v1.12.0 — flag detrazione fiscale */
.fv-save__fisc { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin: 4px 0 12px; padding: 12px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); border-radius: 12px; }
.fv-save__fisc.is-on { background: rgba(255, 184, 0,.16); border-color: rgba(255, 184, 0,.7); }
.fv-save__flag { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .95rem; line-height: 1.3; }
.fv-save__flag input { position: absolute; opacity: 0; width: 0; height: 0; }
.fv-save__flag-sw { position: relative; width: 48px; height: 28px; flex: 0 0 auto; border-radius: 999px; background: rgba(255,255,255,.35); transition: background .2s ease; box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.fv-save__flag-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.fv-save__flag input:checked + .fv-save__flag-sw { background: var(--rei-yellow, #FFB800); }
.fv-save__flag input:checked + .fv-save__flag-sw::after { transform: translateX(20px); }
.fv-save__flag input:focus-visible + .fv-save__flag-sw { outline: 3px solid #fff; outline-offset: 2px; }
.fv-save__flag-txt strong { font-weight: 900; }
.fv-save__flag-txt small { display: block; font-size: .78rem; font-weight: 600; color: #D4F5C2; }
.fv-save__flag-sel { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; }
.fv-save__flag-sel select { font: inherit; font-weight: 700; padding: 7px 10px; border-radius: 10px; border: 2px solid rgba(255,255,255,.5); background: #fff; color: var(--rei-green-dark, #1A9E00); max-width: 100%; }
.fv-save__flag-sel select:disabled { opacity: .5; }
.fv-save__fisc-note { flex: 1 1 100%; margin: 0; font-size: .8rem; line-height: 1.45; color: #e9f6e7; }
.fv-save__fisc.is-on .fv-save__fisc-note { color: #fff; }
.fv-save__cost-cell--detr { background: rgba(255, 184, 0,.18); border-color: rgba(255, 184, 0,.7); }
.fv-save__cost-cell--detr .fv-save__cost-val { color: var(--rei-yellow, #FFB800); }
.fv-save__detr { margin: 12px 0 0; font-size: .84rem; line-height: 1.45; color: #3a2a00; background: #ffe6a6; border-radius: 10px; padding: 9px 12px; font-weight: 600; }
@media (max-width: 640px) {
    .fv-save__fisc { padding: 10px; gap: 10px; }
    /* v1.16.3: tendina immobile sempre dentro lo schermo */
    .fv-save__flag-sel { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; }
    .fv-save__flag-sel select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
    .fv-save__flag { max-width: 100%; }
    .fv-save__flag-txt { min-width: 0; }
}

/* v1.13.0 — impianto consigliato, prezzi costanti, scenario prudente in evidenza, avviso AI */
.fv-hint--ai { background: #f4faf2; border: 1px solid #D4F5C2; border-radius: 10px; padding: 8px 12px; color: #2ea716; }
.fv-hint--ai a { color: var(--rei-green-dark, #1A9E00); font-weight: 700; }
.fv-save__kwp:empty { display: none; }
.fv-save__kwp { display: inline-block; font-size: .78rem; font-weight: 700; color: #D4F5C2; background: rgba(255,255,255,.12); border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.fv-save__kwp.is-rec { background: var(--rei-yellow, #FFB800); color: #3a2a00; }
.fv-save__link { display: inline-block; margin: 6px 0 0; background: #fff; color: var(--rei-green-dark, #1A9E00); border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.fv-save__flat { margin: 12px 0 0; font-size: .84rem; line-height: 1.45; color: #e9f6e7; background: rgba(255,255,255,.1); border-radius: 10px; padding: 9px 12px; }
.fv-save__prud { font-size: .92rem; line-height: 1.5; background: rgba(0,0,0,.22); border: 2px solid var(--rei-yellow, #FFB800); padding: 11px 14px; }
.fv-save__prud strong { color: var(--rei-yellow, #FFB800); }

/* v1.15.0 — flag batteria di accumulo */
.fv-save__batt.is-on { background: rgba(34, 202, 1,.28); border-color: rgba(255,255,255,.7); }
.fv-save__batt-kwh[hidden] { display: none; }
.fv-save__batt-kwh { display: inline-block; background: #fff; color: var(--rei-green-dark, #1A9E00); font-weight: 800; font-size: .84rem; padding: 6px 12px; border-radius: 999px; }

/* v1.16.0 — barra sopra la vista satellitare: stato AI + "cambia indirizzo" */
.fv-sat__topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.fv-sat__topbar .fv-ai-status { margin: 0; }
.fv-sat__back { background: #fff; color: var(--rei-green-dark, #1A9E00); border: 2px solid #D4F5C2; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; box-shadow: 0 6px 16px rgba(26, 158, 0,.1); transition: border-color .2s ease; }
.fv-sat__back:hover { border-color: var(--rei-green, #22CA01); }
@media (max-width: 640px) { .fv-sat__back { width: 100%; } }

/* v1.17.0 — proposte indirizzo con numero civico */
.fv-addr__results button strong { font-weight: 800; }
.fv-addr__results button span { color: #4db439; }
.fv-addr__results button em { font-style: normal; font-size: .78rem; color: #8a6d00; background: #fff3c4; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.fv-addr__results button.has-civico { border-left: 4px solid var(--rei-green, #22CA01); }

/* v1.19.0 — il misuratore subito sotto il titolo, card indirizzo più invitante; i vantaggi scendono sotto */
.fv-hero { padding: 40px 0 4px; }
.fv-sub { font-size: 1rem; margin-bottom: 14px; }
.fv-try { padding-top: 12px; }
.fv-addr { border: 3px solid var(--rei-yellow, #FFB800); box-shadow: 0 18px 44px rgba(26, 158, 0, .24), 0 34px 80px rgba(255, 184, 0, .22); position: relative; }
.fv-addr__kicker { display: inline-block; background: var(--rei-yellow, #FFB800); color: #3a2a00; font-weight: 900; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 10px; }
.fv-addr__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.fv-addr__lead { margin: 0 0 16px; font-size: 1.02rem; line-height: 1.5; color: #199e00; }
.fv-addr__input { font-size: 1.12rem; padding: 18px 18px 18px 50px; border-width: 3px; }
.fv-addr__perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.fv-addr__perks span { background: #E8FAE0; color: var(--rei-green-dark, #1A9E00); font-weight: 800; font-size: .8rem; padding: 6px 12px; border-radius: 999px; }
.fv-vantaggi { padding-top: 10px; }
@media (max-width: 640px) {
    .fv-hero { padding: 26px 0 0; }
    .fv-addr__perks span { font-size: .74rem; padding: 5px 10px; }
}
/* v1.19.0 — telefonino: il misuratore deve stare nella prima schermata */
@media (max-width: 640px) {
    .fv-hero .fv-sub, .fv-hero .fv-gis-badge { display: none; }
    .fv-title { font-size: 1.9rem; margin-bottom: 8px; }
    .fv-eyebrow { margin-bottom: 8px; }
    .fv-try { padding-top: 6px; }
    .fv-steps { margin: 0 0 12px; }
    .fv-step { padding: 6px 11px 6px 6px; font-size: .76rem; margin: 0 6px 6px 0; }
    .fv-step b { width: 22px; height: 22px; font-size: .74rem; }
    .fv-addr__title { font-size: 1.4rem; }
    .fv-addr__lead { font-size: .94rem; margin-bottom: 12px; }
}

/* v1.20.0 — consumo e scelta dell'impianto in evidenza sopra lo schema */
.fv-save__setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; width: 100%; margin: 4px 0 6px; }
.fv-save__setup > * { background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.35); border-radius: 14px; padding: 12px 14px; }
.fv-save__input { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; cursor: pointer; }
.fv-save__input-lbl { font-size: 1rem; font-weight: 900; color: #fff; }
.fv-save__input-row { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 800; }
.fv-save__input input { width: 128px; font-size: 1.6rem; padding: 8px 10px; border-width: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.fv-save__input small { font-size: .78rem; font-weight: 600; color: #D4F5C2; }
.fv-simsel { display: flex; flex-direction: column; gap: 8px; }
.fv-simsel__opts { display: flex; gap: 8px; flex-wrap: wrap; }
.fv-simsel__btn { flex: 1 1 160px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.4); border-radius: 12px; padding: 10px 14px; font: inherit; color: #fff; cursor: pointer; text-align: left; transition: background .2s ease, border-color .2s ease; }
.fv-simsel__btn b { font-size: 1.4rem; font-weight: 900; }
.fv-simsel__btn span { font-size: 1rem; font-weight: 800; color: #eaf8f2; line-height: 1.25; }
.fv-simsel__btn:hover { background: rgba(255,255,255,.22); }
.fv-simsel__btn.is-on { background: var(--rei-yellow, #FFB800); border-color: var(--rei-yellow, #FFB800); color: #3a2a00; box-shadow: 0 8px 22px rgba(255, 184, 0,.45); }
.fv-simsel__btn.is-on span { color: #3a2a00; }
.fv-simsel__btn.is-static { cursor: default; }
.fv-simsel__btn:not(.is-on):not(.is-static)::after { content: '👉 tocca per confrontare'; font-size: .86rem; font-weight: 800; color: var(--rei-yellow, #FFB800); margin-top: 2px; }
.fv-simsel small { font-size: .78rem; line-height: 1.4; color: #e9f6e7; }
@media (max-width: 900px) { .fv-save__setup { grid-template-columns: 1fr; } }

/* v1.20.0 — la pillola nel titolo è sostituita dal selettore «Impianto simulato» */
.fv-save__kwp { display: none !important; }

/* v1.21.0 — «Lo trovi in bolletta…» più grande */
.fv-save__input small { font-size: .95rem; font-weight: 700; color: #fff; line-height: 1.4; }

/* v1.21.0 — ambiente: riquadro a tendina, chiuso all'inizio, con anteprima accattivante */
.fv-eco { padding: 0; overflow: hidden; border: 2px solid #bee3b7; }
.fv-eco__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(90deg, #dff6ea, #f4fbf7); }
.fv-eco__sum::-webkit-details-marker { display: none; }
.fv-eco__sum-ico { font-size: 2rem; line-height: 1; flex: 0 0 auto; }
.fv-eco__sum-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fv-eco__sum .fv-eco__head { margin: 0; }
.fv-eco__teaser { font-size: 1rem; color: #039400; }
.fv-eco__teaser b { color: var(--rei-green-dark, #1A9E00); }
.fv-eco__sum-cta { flex: 0 0 auto; background: var(--rei-green, #22CA01); color: #fff; font-weight: 800; font-size: .85rem; padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(34, 202, 1,.35); white-space: nowrap; }
.fv-eco[open] .fv-eco__sum-cta .is-closed, .fv-eco:not([open]) .fv-eco__sum-cta .is-open { display: none; }
.fv-eco__body { padding: 12px 18px 12px; }
@media (max-width: 640px) {
    .fv-eco { margin-left: -4px; margin-right: -4px; }
    .fv-eco__sum { flex-wrap: wrap; padding: 12px; }
    .fv-eco__sum-cta { width: 100%; text-align: center; }
    .fv-eco__body { padding: 10px 6px 10px; }
}

/* v1.21.0 — fascia del tecnico più visibile */
.fv-tech { border: 3px solid var(--rei-yellow, #FFB800); padding: 26px 28px; box-shadow: 0 18px 48px rgba(26, 158, 0, .32), 0 0 0 6px rgba(255, 184, 0, .18); }
.fv-tech__ico { font-size: 2.6rem; background: var(--rei-yellow, #FFB800); padding: 14px; }
.fv-tech__kicker { display: inline-block; background: var(--rei-yellow, #FFB800); color: #3a2a00; font-weight: 900; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.fv-tech__txt h3 { font-size: 1.5rem; font-weight: 900; }
.fv-tech__txt p { font-size: 1.02rem; color: #fff; }
