/* ============================================================
   WindTre Promo Casa - Landing Fibra + Luce&Gas
   Ricostruzione fedele dello schema Figma "Desk 11"
   Elementi arancioni (blob/pillole) generati interamente via CSS
   ============================================================ */

:root {
    --orange:        #F46A1F; /* banda / fasce principali */
    --orange-dark:   #D44300; /* blob scuro */
    --orange-light:  #F68D31; /* blob chiaro */
    --orange-card:   #F15A22; /* card prezzo hero */
    --green:         #1FAA4B; /* CTA "Chiamami gratis" */
    --green-dark:    #178A3C;
    --blue:          #1CA9E0; /* pillola "12 mesi prime" */
    --purple:        #2A01CD; /* badge "Blocca l'offerta" */
    --ink:           #1d1d1b;
    --grey:          #6b6b6b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.4;
    overflow-x: clip; /* clip (non hidden) per non rompere position: sticky della claim-bar */
}

img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   ANIMAZIONI DI ENTRATA (dissolvenza)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(.985);
    filter: blur(6px);
    transition:
        opacity .85s cubic-bezier(.22, 1, .36, 1),
        transform .85s cubic-bezier(.22, 1, .36, 1),
        filter .85s ease;
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}
/* stagger ingresso hero */
.hero-model.reveal { transition-delay: .05s; }
.price-card.reveal { transition-delay: .20s; }
.hero-form.reveal  { transition-delay: .34s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none; }
}

/* ============================================================
   BLOB ARANCIONI (generati da CSS)
   Forma a "pillola" (stadium): border-radius molto alto + rotazione
   ============================================================ */
.blob {
    position: absolute;
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
}
.blob--dark  { background: var(--orange-dark); box-shadow: 0 4px 4px rgba(0,0,0,.25); }
.blob--light { background: var(--orange-light); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: #fff;
    padding: 14px 0;
    position: relative;
    z-index: 20;
}
.navbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.navbar .logo-konecta { width: 150px; height: auto; }
.navbar .logo-konecta svg { width: 100%; height: auto; }
.navbar-right { display: flex; align-items: center; gap: 18px; }

.btn-blocca {
    background: var(--purple);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 11px 26px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: .25s;
}
.btn-blocca:hover { filter: brightness(1.12); }
.logo-partner { width: 46px; height: auto; border-radius: 8px; }

/* ============================================================
   BANDA CLAIM
   ============================================================ */
.claim-bar {
    background: var(--orange);
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: sticky;
    top: 0;
    z-index: 30;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    background: #fff;
    padding: 58px 0 0;
    overflow: hidden;
}
.hero .wrap {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 0.95fr 1.15fr 1fr;
    align-items: center;
    gap: 10px;
    min-height: 440px;
}

/* blob hero - cluster decorativi (sopra la card e attorno al modem) */
/* --- cluster superiore (sopra/attorno alla card prezzo) --- */
.hero .b1 { width: 220px; height: 115px; top: 6px;   left: 30px;   transform: rotate(-20deg); }  /* dark, alto-sx */
.hero .b2 { width: 190px; height: 100px; top: 110px; left: 120px;  transform: rotate(-8deg);  }  /* light, sotto b1 */
.hero .b8 { width: 210px; height: 115px; top: -16px; left: 400px;  transform: rotate(-10deg); }  /* dark, sopra la card */
.hero .b4 { width: 200px; height: 110px; top: 20px;  right: 250px; transform: rotate(12deg);  }  /* light, alto-centro/dx */
.hero .b5 { width: 290px; height: 155px; top: 8px;   right: -40px; transform: rotate(-18deg); }  /* dark, angolo alto-dx */

/* --- cluster modem (attorno e sotto al modem) --- */
.hero .b6  { width: 210px; height: 105px; top: 290px; left: 350px; transform: rotate(-12deg); } /* light, sopra-sx modem */
.hero .b3  { width: 160px; height: 105px; top: 360px; left: 70px;  transform: rotate(12deg);  } /* dark, basso-sx */
.hero .b10 { width: 190px; height: 120px; top: 410px; left: 250px; transform: rotate(14deg);  } /* dark, sotto-sx modem */
.hero .b7  { width: 220px; height: 115px; top: 430px; left: 600px; transform: rotate(8deg);   } /* light, basso-dx modem */
.hero .b9  { width: 170px; height: 100px; top: 470px; left: 470px; transform: rotate(-6deg);  } /* light, sotto modem */
.hero .b11 { width: 160px; height:  95px; top: 330px; right: 60px; transform: rotate(10deg);  } /* light, dx */

/* colonna sinistra: modella - attaccata alla banda features sotto */
.hero-model { position: relative; z-index: 5; align-self: end; }
.hero-model img { width: auto; max-width: 100%; max-height: 500px; margin: 0 auto; display: block; }

/* modem mobile (nascosto su desktop) */
.hero-modem--mob { display: none; }

/* colonna centrale: card prezzo + modem */
.hero-center { position: relative; z-index: 6; display: flex; flex-direction: column; align-items: center; }

.price-card {
    background: var(--orange-card);
    color: #fff;
    border-radius: 22px;
    padding: 22px 28px 24px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.price-card .row1 {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 26px; font-weight: 700;
    flex-wrap: wrap;
}
.fibra-badge { width: 28px; height: 28px; }
.price-card .price {
    font-size: 64px; font-weight: 800; line-height: 1;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin: 6px 0 4px;
    text-shadow: 0 4px 6px rgba(0,0,0,.22);
}
.price-card .price-side { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.price-card .price-side small { font-size: 20px; font-weight: 700; text-decoration: underline; line-height: 1.2; }
.price-card .price-side em { font-size: 12px; font-weight: 400; font-style: normal; }
.price-card .attivazione { font-size: 14px; font-weight: 600; margin-top: 2px; }

.prime-pill {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 8px 22px;
    margin: 12px 0 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.hero-modem { width: 200px; margin-top: 14px; position: relative; z-index: 6; }

/* colonna destra: form */
.hero-form { position: relative; z-index: 7; }
.form-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px 22px 24px;
    box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.form-card .form-title {
    font-size: 19px; font-weight: 800; line-height: 1.3;
    text-align: center; text-transform: uppercase;
    margin-bottom: 14px;
}
.form-card .insert-label {
    color: var(--orange-card);
    font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px;
    margin-bottom: 8px;
}
.form-card input[type="tel"] {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 13px 14px;
    font-size: 15px;
    font-style: italic;
    color: #555;
    outline: none;
    transition: .25s;
}
.form-card input[type="tel"]:focus { border-color: var(--orange-card); }

.checklist { list-style: none; margin: 14px 0; }
.checklist li {
    display: flex; align-items: center; gap: 9px;
    font-size: 14px; font-style: italic; color: #333; margin: 7px 0;
}
.checklist li svg { flex: 0 0 auto; width: 18px; height: 18px; }

.privacy-text { font-size: 9.5px; line-height: 1.4; color: #8a8a8a; margin: 0px 0 4px; }
.privacy-text a { color: #8a8a8a; text-decoration: underline; }
.privacy-row { display: flex; gap: 6px; align-items: flex-start; }
.privacy-row input { margin-top: 3px; }

.btn-green {
    display: block;
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-top: 14px;
    box-shadow: 0 4px 12px rgba(31,170,75,.4);
    transition: .25s;
}
.btn-green:hover { background: var(--green-dark); }
.error-phone {
    display: none;
    color: #dc3545; font-size: 12px; margin-top: 8px;
    background: #f8d7da; border: 1px solid #f5c6cb;
    padding: 8px 12px; border-radius: 6px;
}

/* ============================================================
   BANDA FEATURES
   ============================================================ */
.features {
    background: var(--orange);
    color: #fff;
    padding: 26px 0;
}
.features .wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}
.feature { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.feature img { width: 52px; height: 52px; object-fit: contain; }
.feature p { font-size: 14px; font-weight: 600; line-height: 1.25; }

/* ============================================================
   LEGAL
   ============================================================ */
.legal {
    padding: 18px 0;
    text-align: center;
}
.legal p { font-size: 10px; line-height: 1.5; color: #9a9a9a; max-width: 980px; margin: 0 auto; }

/* ============================================================
   SEZIONE DETTAGLI OFFERTA (Super Fibra + Luce&Gas)
   ============================================================ */
.dettagli { padding: 34px 0 30px; text-align: center; }
.dettagli h2 {
    font-size: 26px; font-weight: 800; text-transform: uppercase;
    line-height: 1.25; margin-bottom: 36px;
}
.dettagli-grid {
    display: grid;
    grid-template-columns: 1fr 1.55fr;
    gap: 26px;
    align-items: stretch;
    text-align: left;
}
.det-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 26px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.det-card > h3 {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 20px; font-weight: 800; text-transform: uppercase;
    text-align: center; margin-bottom: 16px;
}
.det-card > h3 img { width: 26px; height: 26px; }

/* card SUPER FIBRA */
.det-list { list-style: none; }
.det-list li {
    position: relative;
    padding-left: 22px;
    font-size: 15px; font-weight: 500;
    margin: 8px 0;
}
.det-list li::before {
    content: "✓";
    position: absolute; left: 0;
    color: var(--green);
    font-weight: 800;
}
.det-price { margin-top: 18px; color: var(--orange-card); }
.det-price b { font-size: 30px; font-weight: 800; margin-right: 6px; }
.det-price span { font-size: 13px; font-weight: 600; line-height: 1.35; display: inline-block; vertical-align: middle; }

/* card LUCE&GAS */
.det-store {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px; font-weight: 600; font-style: italic;
    margin-bottom: 20px; text-align: center;
}
.det-store svg { flex: 0 0 auto; width: 18px; height: 18px; }
.lucegas-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}
.lg-head {
    display: flex; align-items: center; gap: 8px;
    color: var(--orange-card);
    font-size: 15px; font-weight: 800; text-transform: uppercase;
    margin-bottom: 12px;
}
.lg-head img { width: 26px; height: 30px; object-fit: contain; }
.lg-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 7px 0;
    border-top: 1px solid #f2f2f2;
    font-size: 13px;
}
.lg-row:first-of-type { border-top: none; }
.lg-row span { color: #444; line-height: 1.3; }
.lg-row b { color: var(--orange-card); font-weight: 800; white-space: nowrap; text-align: right; }
.lg-row b.dark { color: var(--ink); }
.lg-row b small { font-weight: 600; font-size: 11px; }
.lg-row b i { display: block; font-style: normal; font-weight: 400; font-size: 10px; color: #888; }
.det-note { margin-top: 26px; font-size: 15px; font-style: italic; color: #333; }
.det-note b { font-weight: 800; }

/* ============================================================
   SEZIONE PROMO
   ============================================================ */
.promo-sec { padding: 20px 0 60px; text-align: center; }
.promo-sec h2 { font-size: 28px; font-weight: 800; margin-bottom: 30px; }
.promo-img { max-width: 720px; margin: 0 auto 30px; }
.promo-sec p.lead { max-width: 760px; margin: 0 auto 28px; font-size: 17px; color: #333; }
.promo-sec .btn-green { max-width: 320px; margin: 0 auto; }

/* ============================================================
   SEZIONE FORM FINALE (doppio form)
   ============================================================ */
.form-section { padding: 6px 0 64px; }
.form-section .wrap { display: flex; justify-content: center; }
.form-end { width: 100%; max-width: 460px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--orange);
    color: #fff;
    text-align: center;
    padding: 30px 0 26px;
}
.footer .logo-partner { width: 42px; margin: 0 auto 8px; }
.footer .logo-konecta-white { width: 150px; margin: 0 auto 12px; }
.footer .logo-konecta-white svg path { fill: #fff !important; }
.footer p { font-size: 11px; line-height: 1.6; opacity: .95; }
.footer a { color: #fff; text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    /* Hero mobile (schema Figma): modella sovrapposta alla card prezzo, modem in basso a dx */
    .hero { padding: 16px 0 0; }
    .hero .wrap {
        display: block;
        position: relative;
        max-width: 480px;
        min-height: 0;
    }
    .hero-center { position: relative; z-index: 2; }
    .price-card {
        max-width: none;
        padding: 20px 18px 22px 27%;   /* spazio a sinistra per la modella */
        min-height: 190px;
        text-align: left;
    }
    .price-card .row1 {
        justify-content: flex-end;
        font-size: clamp(15px, 4.2vw, 20px);
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 6px;
    }
    .price-card .price-side em { font-size: 10px; font-weight: 400; font-style: normal; }
    .price-card .price { justify-content: flex-end; font-size: clamp(36px, 11vw, 48px); }
    .price-card .price-side { align-items: flex-start; text-align: left; }
    .price-card .price-side small { font-size: clamp(14px, 4vw, 18px); }
    .price-card .attivazione { font-size: clamp(11px, 3.2vw, 14px); }
    .prime-pill { font-size: clamp(10px, 3vw, 13px); padding: 7px 16px; margin-left: 40px; }
    .hero-modem--desk { display: none; }

    /* modella sovrapposta, davanti alla card */
    .hero-model {
        position: absolute;
        left: -14px;
        top: 70px;
        z-index: 3;
        width: auto;
        margin: 0;
    }
    .hero-model img { height: 290px; max-height: none; width: auto; margin: 0; }

    /* modem in basso a destra, sotto la card */
    .hero-modem--mob {
        display: block;
        position: absolute;
        left: 55%;
        right: auto;
        top: 250px;
        width: 115px;
        z-index: 5;
        margin: 0;
        filter: drop-shadow(0 8px 14px rgba(0,0,0,.18));
    }

    /* su mobile tengo solo pochi blob decorativi, nascondo i cluster desktop */
    .hero .b4, .hero .b5, .hero .b8, .hero .b9, .hero .b11 { display: none; }
    .hero .b1 { top: 40px;  left: -40px; width: 180px; height: 100px; }
    .hero .b2 { top: 130px; left: -20px; width: 150px; height:  90px; }
    .hero .b3 { top: 340px; left: -30px; width: 150px; height: 100px; }
    /* backdrop arancione dietro al modem + accento sotto */
    .hero .b6  { top: 268px; left: 52%; right: auto; width: 170px; height: 145px; transform: rotate(-10deg); }
    .hero .b10 { top: 330px; left: 30%; right: auto; width: 150px; height:  92px; transform: rotate(12deg); }
    .hero .b7  { top: 400px; left: 46%; right: auto; width: 150px; height:  86px; transform: rotate(8deg); }

    /* il form parte sotto modella + modem */
    .hero-form {
        position: relative;
        z-index: 4;
        width: 100%;
        margin-top: 170px;
    }
    /* niente animazione sul form in hero su mobile: subito visibile senza scroll */
    .hero-form.reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    .form-card { padding: 26px 22px 28px; }
    .form-card .form-title { font-size: 17px; }
    .form-card .insert-label { font-size: 13px; }
    .form-card input[type="tel"] { padding: 15px 14px; font-size: 16px; }
    .checklist li { font-size: 15px; }
    .btn-green { padding: 15px; font-size: 17px; }

    .dettagli-grid { grid-template-columns: 1fr; }
    .lucegas-cols { grid-template-columns: 1fr; gap: 30px; }
    .features .wrap { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
    .hero .blob { opacity: .9; }
}
@media (max-width: 560px) {
    .navbar .logo-konecta { width: 120px; }
    .btn-blocca { padding: 9px 16px; font-size: 12px; }
    .dettagli h2, .promo-sec h2 { font-size: 22px; }
    .features .wrap { grid-template-columns: 1fr 1fr; }
    .claim-bar { font-size: 12px; }
}
