/* ========================================
   Reset + base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #1E40AF;
    --navy-dark: #1E3A8A;
    --navy-darker: #131A22;
    --gold: #C9A961;
    --text-muted: #566776;
    --text-light: #9DB1C7;
    --bg-light: #FAFAFA;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --whatsapp: #25D366;
    --amazon: #FF9900;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #2C2C2A;
    line-height: 1.5;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Topbar
   ======================================== */
.topbar {
    background: var(--navy);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar__name {
    color: var(--white);
    font-weight: 900;
    font-size: 20px;
}

.topbar__tag {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
    background: var(--navy);
    padding: 40px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.07;
    pointer-events: none;
}
.hero::before { width: 200px; height: 200px; top: -50px; right: -50px; }
.hero::after { width: 280px; height: 280px; bottom: -100px; left: -80px; }

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.hero__title {
    color: var(--white);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__sub {
    color: var(--text-light);
    font-size: clamp(15px, 2vw, 18px);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero__badge {
    display: none;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 28px;
    padding: 6px 18px;
    border: 1px solid rgba(201, 169, 97, 0.35);
    border-radius: 20px;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    cursor: pointer;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white);text-transform: none; letter-spacing: 0; }

/* ========================================
   Section common
   ======================================== */
section { padding: 80px 0; }

.section__eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.section__title {
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 900;
    color: var(--navy);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
}

/* ========================================
   About (Chi sono)
   ======================================== */
.about { background: var(--white); }

.about__inner {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 48px;
    align-items: center;
}

.about__photo img {
    /*width: 300px;
    height: 400px;*/
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid var(--border);
}

.about__eyebrow { text-align: left; }

.about__title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about__desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about__stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.about__stat { display: flex; flex-direction: column; }

.about__stat-num {
    font-size: 23px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
}

.about__stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .about__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about__photo { display: flex; justify-content: center; }
    .about__photo img {
        border-radius: 50%;
    }
    .about__eyebrow { text-align: center; }
    .about__stats { justify-content: center; }
}

/* ========================================
   Services
   ======================================== */
.services { background: var(--bg-light); }

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(15, 41, 66, 0.08);
}

.service-card__icon {
    width: 56px;
    height: 56px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__icon svg { width: 28px; height: 28px; }

.service-card__title {
    font-weight: 900;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 8px;
}

.service-card__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   How (come funziona)
   ======================================== */
.how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.how-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px 28px;
    position: relative;
}

.how-step__num {
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    margin-bottom: 18px;
}

.how-step__title {
    font-weight: 900;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 10px;
}

.how-step__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   Bonus
   ======================================== */
.bonus {
    background: var(--navy-darker);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    text-align: center;
    padding: 32px 0;
}

.bonus__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bonus__label {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.4;
}

.bonus__amount {
    color: var(--amazon);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    margin: 4px 0;
}

.bonus__detail {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
}

/* ========================================
   CTA
   ======================================== */
.cta {
    background: var(--navy);
    text-align: center;
    padding: 40px 0;
}

.cta__title {
    color: var(--white);
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta__sub {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 28px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--navy-dark);
    padding: 24px 0;
    text-align: center;
}

.footer__inner {
    color: var(--text-muted);
    font-size: 12px;
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 900px) {
    .hero { padding: 64px 0 80px; }
    section { padding: 64px 0; }

    .services__grid,
    .how__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .how__grid > .how-step:nth-child(3) {
        grid-column: 1 / -1;
        max-width: calc(50% - 10px);
        margin: 0 auto;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .container { padding: 0 20px; }

    .topbar { padding: 12px 0; }
    .topbar__name { font-size: 17px; }
    .topbar__tag { font-size: 10px; letter-spacing: 1.5px; }

    .hero { padding: 56px 0 64px; }
    .hero__eyebrow { letter-spacing: 3px; font-size: 10px; }
    .hero__sub { margin-bottom: 28px; }
    .hero__badge { display: inline-block; }

    section { padding: 56px 0; }

    .services__grid,
    .how__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .how__grid > .how-step:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .service-card,
    .how-step {
        padding: 28px 22px;
        text-align: center;
        align-items: center;
    }

    .service-card__icon,
    .how-step__num {
        margin-left: auto;
        margin-right: auto;
    }

    .bonus { padding: 48px 0; }

    .btn { padding: 14px 28px; font-size: 14px; width: 100%; max-width: 320px; }

    .footer__inner { font-size: 11px; line-height: 1.5; }
}

/* ========================================
   Reveal animations
   ======================================== */
.js-reveal .service-card,
.js-reveal .how-step,
.js-reveal .faq-item,
.js-reveal .case-card,
.js-reveal .case__result,
.js-reveal .case__honest {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-reveal .service-card.is-visible,
.js-reveal .how-step.is-visible,
.js-reveal .faq-item.is-visible,
.js-reveal .case-card.is-visible,
.js-reveal .case__result.is-visible,
.js-reveal .case__honest.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover only for devices that support it */
@media (hover: none) {
    .service-card:hover { transform: none; box-shadow: none; }
    .btn:hover { transform: none; box-shadow: none; }
}

/* ========================================
   Focus-visible
   ======================================== */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.4);
}

.wa-fab:focus-visible {
    outline-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* ========================================
   WhatsApp floating button
   ======================================== */
.wa-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 32px;
    padding: 14px 20px 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.wa-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

.wa-fab svg { flex-shrink: 0; }

.wa-fab__label { white-space: nowrap; }

@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.7), 0 0 0 8px rgba(37, 211, 102, 0.15); }
}

.wa-fab { animation: wa-pulse 2.5s ease-in-out infinite; }

@media (max-width: 600px) {
    .wa-fab {
        bottom: 16px;
        right: 16px;
        padding: 12px 16px 12px 14px;
        font-size: 13px;
    }
    .wa-fab svg { width: 24px; height: 24px; }
}

@media (hover: none) {
    .wa-fab:hover { transform: none; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
}

/* ========================================
   FAQ
   ======================================== */
.faq { background: var(--bg-light); }
.faq__list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 20px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: 0 6px 20px rgba(15, 41, 66, 0.06); }
.faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    list-style: none;
    position: relative;
    padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 18px;
    font-size: 22px;
    color: var(--gold);
    font-weight: 900;
    transition: transform 0.2s ease;
    line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
    padding: 0 22px 20px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}
.faq-item p strong { color: #2C2C2A; }
@media (max-width: 700px) {
    .faq__list { grid-template-columns: 1fr; }
    .faq-item--extra { display: none; }
}

/* ========================================
   Case study
   ======================================== */
.case .section__title { margin-bottom: 16px; }

.case__intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.case__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}
.case-card {
    border-radius: 10px;
    padding: 28px 26px;
    border: 1px solid var(--border);
    position: relative;
}
.case-card--before { background: var(--bg-light); }
.case-card--after { background: var(--white); border-color: var(--gold); border-width: 2px; }
.case-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.case-card--before .case-card__tag { background: var(--text-muted); color: var(--white); }
.case-card--after .case-card__tag { background: var(--gold); color: var(--navy); }
.case-card__list { list-style: none; }
.case-card__list li {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}
.case-card__list li:last-child { border-bottom: none; padding-top: 12px; }
.case-card__list strong { color: #2C2C2A; font-weight: 700; }
.case__result {
    text-align: center;
    margin: 32px auto 0;
    padding: 28px;
    background: var(--navy);
    border-radius: 10px;
    max-width: 880px;
}
.case__result-label {
    display: block;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.case__result-amount {
    display: block;
    color: var(--white);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 900;
    line-height: 1;
}
.case__result-note {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 10px;
    font-style: italic;
}
.case__honest {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 32px;
    padding: 28px;
    background: var(--bg-light);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.case__honest-icon { flex-shrink: 0; margin-top: 2px; }

.case__honest-title {
    font-weight: 900;
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 8px;
}

.case__honest-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.case__cta {
    text-align: center;
    margin-top: 40px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.case__cta-text {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .case__grid { grid-template-columns: 1fr; }
    .case__honest { flex-direction: column; gap: 12px; }
    .case__cta { margin-top: 32px; }
}

/* ========================================
   Footer (extended)
   ======================================== */
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.footer__link {
    color: var(--gold);
    font-weight: 700;
    transition: opacity 0.15s ease;
}
.footer__link:hover { opacity: 0.8; }
@media (max-width: 600px) {
    .footer__inner { flex-direction: column; gap: 4px; }
}
/* ========================================
   MIGLIORAMENTI MOBILE — v2
   ======================================== */

/* Hero button con icona WhatsApp */
.btn--hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    padding: 16px 32px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
}
.btn--hero svg { flex-shrink: 0; }

/* Stat about: numero grande + label sotto */
.about__stat-num {
    font-size: 42px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    display: block;
}
.about__stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
    max-width: 200px;
    line-height: 1.4;
}

/* Footer padding per non essere coperto dal wa-fab */
body { padding-bottom: 0; }
.footer { padding-bottom: 32px; }

/* Sezione case (bollette): intro più leggibile su mobile */
.case__intro {
    font-size: 15px;
    padding: 0 4px;
}

/* Card confronto bollette: più visual su mobile */
@media (max-width: 600px) {
    .case__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .case-card {
        padding: 22px 20px;
    }

    /* Intestazione card con colore pieno per distinguerle meglio */
    .case-card--before {
        border-left: 4px solid var(--text-muted);
    }
    .case-card--after {
        border-left: 4px solid var(--gold);
        border-width: 1px;
        border-left-width: 4px;
    }

    /* Totale mensile più prominente */
    .case-card__list li:last-child {
        font-size: 16px;
        font-weight: 900;
        color: var(--navy);
        padding-top: 14px;
        border-top: 2px solid var(--border);
        border-bottom: none;
    }
    .case-card--after .case-card__list li:last-child {
        color: var(--navy);
    }

    /* Risultato finale: numero più leggibile */
    .case__result {
        padding: 22px 18px;
    }
    .case__result-amount {
        font-size: clamp(30px, 10vw, 44px);
    }

    /* Box onestà: layout verticale più pulito */
    .case__honest {
        flex-direction: column;
        gap: 12px;
        padding: 22px 18px;
    }

    /* About su mobile */
    .about__stat-label {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
    .about__desc {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Btn hero full width su mobile */
    .btn--hero {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    /* FAQ: font leggermente più grande su mobile */
    .faq-item summary {
        font-size: 14px;
        padding: 16px 44px 16px 18px;
        line-height: 1.4;
    }
    .faq-item summary::after {
        right: 16px;
        top: 14px;
    }
    .faq-item p {
        padding: 0 18px 18px;
    }

    /* How steps: connettori visivi tra i passi */
    .how__grid {
        position: relative;
    }
    .how-step {
        position: relative;
    }
    .how-step:not(:last-child)::after {
        content: '';
        display: block;
        width: 2px;
        height: 14px;
        background: var(--gold);
        opacity: 0.4;
        margin: 0 auto;
        margin-top: -2px;
    }

    /* WAB fab: non sovrapporre contenuto */
    .wa-fab {
        bottom: 12px;
        right: 12px;
    }

    /* Sezione bonus */
    .bonus { padding: 28px 0; }
    .bonus__amount { font-size: 24px; }
    .bonus__label { font-size: 13px; }
    .bonus__detail { font-size: 12px; }
}

/* Tablet: card bollette affiancate restano ok, aggiusta solo il risultato */
@media (max-width: 900px) and (min-width: 601px) {
    .case__result-amount {
        font-size: clamp(32px, 7vw, 50px);
    }
}
