/* =============================================================================
 * Home page: stile "editoriale" (titoli larghi e pesanti, pillole, schede
 * arrotondate, nastri scorrevoli) con i colori di Fiberportal.
 * Solo la home (body.fp-home). Colori, titoli, pulsanti, intestazione, FAQ e
 * piede comuni a tutto il sito sono in fp-theme.css.
 * ========================================================================== */
/* --- hero ------------------------------------------------------------------ */
.fp-home .hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 150px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 15%, rgba(0, 211, 99, .16), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(11, 61, 145, .7), transparent 50%),
        var(--fp-ink);
}
.fp-home .hero__fibre {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.fp-home .hero__fibre path {
    fill: none;
    stroke: rgba(0, 211, 99, .28);
    stroke-width: 1.5;
}
.fp-home .hero__fibre .hero__fibre-luce {
    stroke: var(--fp-green);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 90 1900;
    animation: fp-luce 6s linear infinite;
}
.fp-home .hero__fibre .hero__fibre-luce--2 {
    stroke: var(--fp-orange);
    animation-duration: 8s;
    animation-delay: -3s;
}
@keyframes fp-luce { from { stroke-dashoffset: 1990; } to { stroke-dashoffset: 0; } }

.fp-home .hero__container { position: relative; }
.fp-home .hero__grid { display: block; }
.fp-home .hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-family: inherit;                      /* ora e' un h1: niente carattere/interlinea dei titoli */
    line-height: 1.4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fp-green);
}
.fp-home .hero__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fp-green);
    box-shadow: 0 0 0 4px rgba(0, 211, 99, .2);
}
.fp-home .hero__title {
    margin: 0;
    font-family: var(--fp-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(42px, 7.4vw, 96px);
    line-height: .95;
    letter-spacing: -.045em;
    color: #fff;
}
.fp-home .hero__title span { display: block; }
.fp-home .hero__title i { font-style: normal; color: var(--fp-green); }
.fp-home .hero__claim {
    margin: 22px 0 0;
    font-family: var(--fp-display);
    font-stretch: 125%;
    font-weight: 700;
    font-size: clamp(20px, 2.4vw, 30px);
    letter-spacing: -.03em;
    line-height: 1.15;
    color: #fff;
}
.fp-home .hero__claim span { color: var(--fp-green); }
.fp-home .hero__lead {
    max-width: 620px;
    margin: 18px 0 28px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, .82);
}
.fp-home .hero__lead strong { color: #fff; }

/* selettore Residenziale / Business */
.fp-home .hero__tipo {
    display: inline-flex;
    padding: 5px;
    margin: 0 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}
.fp-home .hero__tipo .btn {
    width: auto;
    display: inline-block;
    padding: 8px 20px;
    border: 0;
    border-radius: 999px !important;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
}
.fp-home .hero__tipo .btn.active {
    background: var(--fp-green);
    color: var(--fp-ink);
}
.fp-home .hero__tipo .btn:focus-within { outline: 3px solid #fff; outline-offset: 2px; }

/* ricerca indirizzo */
.fp-home .hero__search { margin: 0; padding: 0; }
.fp-home .hero__search-label {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.fp-home .hero__search-label i { color: var(--fp-green); margin-right: 4px; }
.fp-home .hero__fields {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr) minmax(0, .7fr);
    width: 100%;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.fp-home .hero__field { position: relative; display: flex; min-width: 0; }
.fp-home .hero__field + .hero__field::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--fp-line);
    transition: opacity .15s;
}
/* campo attivo: spariscono le due linee ai suoi lati (sfondo e anello del focus le attraversavano)
   e il campo sta sopra i vicini, cosi' l'anello non viene coperto */
.fp-home .hero__field:focus-within { z-index: 1; }
.fp-home .hero__field:focus-within::before,
.fp-home .hero__field:focus-within + .hero__field::before { opacity: 0; }
.fp-home .hero__search input.twitter-typeahead {
    float: none;
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--fp-ink);
    font-size: 16px;
}
.fp-home .hero__search input::placeholder { color: #6b7590; font-size: 16px; }
.fp-home .hero__search input.twitter-typeahead:focus { background: #f2f6fb; outline: none; }
.fp-home .hero__search input.twitter-typeahead:focus-visible { box-shadow: inset 0 0 0 2px var(--fp-green); }
/* focus da tastiera nei campi della verifica: verde del logo al posto del giallo generico di a11y.css
   (anello esterno verde scuro per restare visibile anche su sfondo chiaro) */
.fp-home .hero__search input:focus-visible,
.fp-home .hero__search button:focus-visible,
.fp-home .hero__search select:focus-visible {
    outline: 3px solid var(--fp-green) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(8, 122, 60, .35) !important;
}
.fp-home .hero__search button.twitter-typeahead {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--fp-green);
    color: var(--fp-ink);
}
.fp-home .hero__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
}
.fp-home .hero__checks i { color: var(--fp-green); margin-right: 6px; }

.fp-home .hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(34px, 6.25vw, 90px);   /* in proporzione alla larghezza: su telefono l'onda resta morbida */
    fill: var(--fp-bg);
}

/* --- esito della verifica di copertura (inc/fiber_result.php) ------------- */
.fp-home #form_result { padding: 30px 0 40px; }
.fp-home .esito__ancora { display: block; position: relative; top: -90px; visibility: hidden; }
.fp-home .esito__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 28px;
}
.fp-home .esito__title { font-size: clamp(28px, 4.4vw, 48px); }
.fp-home .esito__update {
    margin: 0;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--fp-line);
    font-size: 14px;
    color: var(--fp-muted);
    text-align: left !important;
}
.fp-home .esito__update i { color: var(--fp-green-dark); margin-right: 4px; }
.fp-home .esito__update strong { color: var(--fp-ink); }
.fp-home .esito__wrap + .esito__wrap { margin-top: 20px; }

.fp-home .esito__card {
    --esito-color: var(--fp-green);
    --esito-text: var(--fp-green-dark);
    --esito-soft: #ddf9ea;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    overflow: hidden;
    border: 1px solid var(--fp-line);
    border-radius: 32px;
    background: #fff;
}
.fp-home .esito__card--fttc { --esito-color: var(--fp-orange); --esito-text: #8a5300; --esito-soft: #fff1d9; }
.fp-home .esito__card--fwa  { --esito-color: var(--fp-orange-2); --esito-text: #b13a00; --esito-soft: #ffe6d9; }
.fp-home .esito__card--none { --esito-color: var(--fp-blue); --esito-text: var(--fp-blue); --esito-soft: #e3ecfb; }

.fp-home .esito__main { padding: 32px 34px; min-width: 0; }
.fp-home .esito__head { display: flex; align-items: center; gap: 18px; }
.fp-home .esito__ico {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 10px;
    border-radius: 22px;
    background: var(--esito-soft);
}
.fp-home .esito__ico--none {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--esito-text);
}
.fp-home .esito__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--esito-soft);
    color: var(--esito-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.fp-home .esito__profilo {
    margin: 8px 0 0;
    font-family: var(--fp-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--fp-ink);
}
.fp-home .esito__text {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--fp-muted);
}
.fp-home .esito__text b { color: var(--fp-ink); }
.fp-home .esito__text .badge {       /* "ATTIVABILE A BREVE" aggiunto da main.js */
    float: none !important;
    margin-left: 8px;
    padding: 5px 10px;
    vertical-align: middle;
    background: #fff1d9;
    color: #8a5300;
    font-size: 11px;
    letter-spacing: .05em;
}

.fp-home .esito__speeds {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}
.fp-home .esito__speed {
    padding: 16px 20px;
    border-radius: 20px;
    background: var(--fp-bg);
}
.fp-home .esito__speed-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--fp-muted);
}
.fp-home .esito__speed-label i { color: var(--esito-text); margin-right: 4px; }
.fp-home .esito__speed-value { display: block; margin-top: 4px; color: var(--fp-ink); }
.fp-home .esito__speed-value strong {
    font-family: var(--fp-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1;
    letter-spacing: -.04em;
}
.fp-home .esito__speed-value small { font-size: 15px; font-weight: 700; color: var(--fp-muted); }

.fp-home .esito__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 18px 0 0;
}
.fp-home .esito__details div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--fp-line);
    font-size: 14px;
}
.fp-home .esito__details dt { font-weight: 400; color: var(--fp-muted); }
.fp-home .esito__details dd { margin: 0; color: var(--fp-ink); text-align: right; }
.fp-home .esito__loghi:not(:empty) { display: flex; gap: 12px; margin-top: 18px; }

/* colonna scura: prezzo e pulsante */
.fp-home .esito__side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 30px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 211, 99, .18), transparent 55%),
        var(--fp-ink);
    color: #fff;
}
.fp-home .esito__side-label {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fp-green);
}
.fp-home .esito__price {
    margin: 8px 0 0;
    font-family: var(--fp-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(38px, 4.4vw, 52px);
    line-height: 1;
    letter-spacing: -.05em;
    color: #fff;
}
.fp-home .esito__price:empty { display: none; }
.fp-home .esito__old {
    align-self: flex-start;
    margin-top: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}
.fp-home .esito__old:empty { display: none; }
.fp-home .esito__side .esito__cta.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 15px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--fp-green);
    color: var(--fp-ink) !important;
    font-size: 16px;
    font-weight: 700;
    white-space: normal;
    box-shadow: 0 10px 24px rgba(0, 211, 99, .3);
    transition: transform .15s, background-color .15s;
}
.fp-home .esito__side .esito__cta.btn:hover { background: #19e077; transform: translateY(-2px); }
.fp-home .esito__side .esito__cta.btn.btn-info {      /* "Pianifica attivazione" */
    background: var(--fp-orange);
    box-shadow: 0 10px 24px rgba(249, 163, 28, .3);
}
.fp-home .esito__side .esito__cta.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* --- come funziona --------------------------------------------------------- */
.fp-home .passi { padding: 70px 0 30px; }
.fp-home .passi > .container > .fp-title { text-align: center; }
.fp-home .passi__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 44px 0 0;
    padding: 0;
    list-style: none;
}
.fp-home .passi__item {
    padding: 30px 28px;
    border: 1px solid var(--fp-line);
    border-radius: 28px;
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}
.fp-home .passi__item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(7, 27, 61, .08); }
.fp-home .passi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 22px;
    border-radius: 50%;
    font-size: 22px;
}
.fp-home .passi__icon--ink { background: var(--fp-ink); color: var(--fp-green); }
.fp-home .passi__icon--green { background: var(--fp-green); color: var(--fp-ink); }
.fp-home .passi__icon--orange { background: var(--fp-orange); color: var(--fp-ink); }
.fp-home .passi__title {
    margin: 0 0 10px;
    font-family: var(--fp-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--fp-ink);
}
.fp-home .passi__title span { color: var(--fp-green-dark); }
.fp-home .passi__item p { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 400; color: var(--fp-muted); }

/* --- sezioni esistenti: spazi e titoli ------------------------------------- */
.fp-home .core_impianti,
.fp-home .velocita_area { padding: 70px 0; }
.fp-home .velocita_area { background: transparent; }

/* --- movimento ridotto ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .fp-home .hero__fibre-luce { animation: none; }
    .fp-home .hero__fibre .hero__fibre-luce { display: none; }
    .fp-home .passi__item,
}

/* --- responsive ------------------------------------------------------------ */
@media (max-width: 991px) {
    .fp-home .hero { padding: 120px 0 130px; }
    .fp-home .passi__list { grid-template-columns: minmax(0, 1fr); }
    .fp-home .esito__card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .fp-home .hero { padding: 100px 0 110px; }
    .fp-home .hero__fields {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 24px;
        padding: 8px;
    }
    .fp-home .hero__field + .hero__field::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
    .fp-home .hero__search input.twitter-typeahead { border-radius: 16px; }
    .fp-home .hero__lead { font-size: 16px; }
    .fp-home .passi,
    .fp-home .core_impianti,
    .fp-home .velocita_area,
    .fp-home .faq_area { padding-top: 50px; padding-bottom: 40px; }
    .fp-home .passi__item { padding: 24px 22px; border-radius: 22px; }
    .fp-home .esito__main, .fp-home .esito__side { padding: 22px 20px; }
    .fp-home .esito__card { border-radius: 24px; }
    .fp-home .esito__ico { width: 56px; height: 56px; border-radius: 16px; }
    .fp-home .esito__speed { padding: 12px 14px; }
    .fp-home .esito__details { grid-template-columns: minmax(0, 1fr); }
}
