/* ============================================================
   public.css — pagine pubbliche tracking (cliente)
   Mobile-first, palette brand DEM. AUTO
   ============================================================ */

/* ---------- BASE ---------- */
body.public-home, body.public-track {
    background: var(--sfondo);
    color: var(--nero);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- HOMEPAGE (ricerca codice) ---------- */
.public-home {
    background: linear-gradient(160deg, var(--nero) 0%, #1f1f1f 70%, var(--rosso-scuro) 100%);
    color: var(--bianco);
}
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
.hero-inner {
    max-width: 440px;
    width: 100%;
    text-align: center;
}
.brand-mark {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}
.brand-mark .brand-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
}
.hero-titolo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--bianco);
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}
.hero-sotto {
    color: #d1d5db;
    font-size: 1rem;
    margin: 0 0 2rem;
}

.form-track {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}
.input-track {
    width: 100%;
    padding: 1rem 1.2rem;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    text-transform: uppercase;
    color: var(--bianco);
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--r-md);
    backdrop-filter: blur(8px);
    transition: border-color 0.15s, background 0.15s;
}
.input-track::placeholder { color: rgba(255,255,255,0.35); }
.input-track:focus {
    outline: 0;
    border-color: var(--rosso);
    background: rgba(255,255,255,0.12);
}
.btn-track {
    padding: 1rem 1.2rem;
    background: var(--rosso);
    color: var(--bianco);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    border: 0;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background 0.15s;
    min-height: 56px;
}
.btn-track:hover { background: var(--rosso-scuro); }

.hint-format {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: #9ca3af;
}
.hint-format code {
    background: rgba(255,255,255,0.1);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    color: var(--bianco);
}

.btn-wa-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-top: 2rem;
    padding: 0.85rem 1.4rem;
    background: var(--whatsapp);
    color: var(--bianco);
    text-decoration: none;
    border-radius: var(--r-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.15s;
}
.btn-wa-fallback:hover { background: #1ea854; color: var(--bianco); text-decoration: none; }

.alert-errore-public {
    background: rgba(214,40,40,0.15);
    border: 1px solid var(--rosso);
    color: #fecaca;
    padding: 0.7rem 1rem;
    border-radius: var(--r-md);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.not-found-icon { font-size: 4rem; margin-bottom: 1rem; }
.codice-tracking-inline {
    background: rgba(255,255,255,0.1);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, monospace;
    color: var(--bianco);
}

/* ---------- PAGINA TRACKING ---------- */
.public-track { background: var(--sfondo); color: var(--nero); }

.track-header {
    background: var(--nero);
    color: var(--bianco);
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.brand-mark-mini {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.brand-mark-mini:hover { text-decoration: none; }
.brand-logo-mini {
    height: 36px;
    width: auto;
    display: block;
}
.link-cerca {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}
.link-cerca:hover { color: var(--bianco); text-decoration: none; }

.track-main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
}

/* ---------- BANNER STATO ---------- */
.stato-banner {
    color: var(--bianco);
    padding: 2rem 1.5rem;
    border-radius: var(--r-lg);
    text-align: center;
    margin-bottom: 1rem;
    box-shadow: var(--ombra-md);
}
.codice-tracking {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 0.5rem;
}
.stato-icona { font-size: 3rem; margin-bottom: 0.3rem; line-height: 1; }
.stato-label {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0;
    letter-spacing: 0.02em;
    color: var(--bianco);
}
.stato-data {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ---------- CONSEGNA PREVISTA ---------- */
.consegna-prevista {
    background: linear-gradient(135deg, var(--arancione) 0%, #ea580c 100%);
    color: var(--bianco);
    border-radius: var(--r-lg);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--ombra-sm);
}
.cp-icon { font-size: 2.2rem; line-height: 1; }
.cp-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}
.cp-data {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-transform: capitalize;
    margin-top: 0.2rem;
}

/* ---------- CARD GENERICA ---------- */
.card-public {
    background: var(--bianco);
    border-radius: var(--r-lg);
    box-shadow: var(--ombra-sm);
    padding: 1.2rem;
    margin-bottom: 1rem;
}
.card-public h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    margin: 0 0 1rem;
    color: var(--nero);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--rosso);
}

/* ---------- MAPPA ---------- */
#mappa {
    width: 100%;
    height: 360px;
    border-radius: var(--r-md);
    overflow: hidden;
    background: #eee;
    position: relative;
}
.mappa-loading, .mappa-errore {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grigio);
    font-style: italic;
}
.mappa-errore { color: var(--rosso); }

/* ---------- TIMELINE PUBLIC ---------- */
.timeline-public {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.timeline-public::before {
    content: '';
    position: absolute;
    left: 10px; top: 8px; bottom: 8px;
    width: 2px;
    background: var(--grigio-chiaro);
}
.timeline-public .tl-item {
    position: relative;
    padding: 0 0 1rem 2rem;
}
.timeline-public .tl-dot {
    position: absolute;
    left: 4px; top: 5px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bianco);
    box-shadow: 0 0 0 2px var(--grigio-chiaro);
}
.timeline-public .tl-item:first-child .tl-dot {
    box-shadow: 0 0 0 2px var(--rosso);
    transform: scale(1.15);
}
.timeline-public .tl-titolo { font-size: 1rem; }
.timeline-public .tl-data { font-size: 0.85rem; color: var(--grigio); margin-top: 0.15rem; }
.timeline-public .tl-filiale { font-size: 0.88rem; color: var(--grigio-scuro); margin-top: 0.2rem; }
.timeline-public .tl-nota {
    margin-top: 0.4rem;
    padding: 0.5rem 0.7rem;
    background: var(--sfondo);
    border-left: 3px solid var(--arancione);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    font-size: 0.88rem;
}

/* ---------- DATI PACCO ---------- */
.dati-grid {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1.2rem;
    font-size: 0.95rem;
}
.dati-grid dt {
    color: var(--grigio);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: center;
}
.dati-grid dd { margin: 0; font-weight: 500; }

/* ---------- BOTTONE WHATSAPP AIUTO ---------- */
.btn-aiuto-wa {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--whatsapp);
    color: var(--bianco);
    padding: 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 30;
    transition: background 0.15s;
    min-height: 56px;
}
.btn-aiuto-wa:hover { background: #1ea854; color: var(--bianco); text-decoration: none; }
.btn-aiuto-wa svg { flex-shrink: 0; }

/* spazio in fondo per evitare che il bottone copra contenuti */
.track-main { padding-bottom: 6rem; }

/* ---------- FOOTER ---------- */
.footer-public {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--grigio);
    font-size: 0.85rem;
}
.public-home .footer-public { color: #6b7280; }
.public-home .footer-public a { color: #9ca3af; }

/* ============================================================
   DESKTOP (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
    .hero-titolo { font-size: 2.4rem; }
    .stato-banner { padding: 2.5rem 2rem; }
    .stato-icona { font-size: 4rem; }
    .stato-label { font-size: 2.4rem; }
    .cp-data { font-size: 1.7rem; }

    #mappa { height: 460px; }

    /* il bottone WhatsApp non più "fixed" ma normale in linea */
    .btn-aiuto-wa {
        position: static;
        margin: 1rem auto 0;
        max-width: 280px;
        border-radius: var(--r-md);
        box-shadow: var(--ombra-md);
    }
    .track-main { padding-bottom: 1rem; }

    .form-track {
        flex-direction: row;
    }
    .input-track { flex: 1; }
    .btn-track { white-space: nowrap; padding: 1rem 2rem; }
}

/* ============================================================
   HOMEPAGE PRO (.home-pro) — redesign
   Tutte le classi con prefisso .hp-* per evitare collisioni.
   ============================================================ */
body.home-pro {
    background: #ffffff;
    color: var(--nero);
    margin: 0;
}
.hp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* ---------- HEADER ---------- */
.hp-header {
    background: #ffffff;
    border-bottom: 1px solid var(--grigio-chiaro);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.hp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.hp-logo img {
    display: block;
    height: auto;
    max-height: 56px;
    width: auto;
    max-width: 220px;
}
.hp-header-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    background: var(--whatsapp);
    color: #fff;
    padding: 0.6em 1.1em;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    min-height: 44px;
}
.hp-header-wa:hover { background: #1ea854; color: #fff; text-decoration: none; transform: scale(1.04); }
.hp-header-wa-text { display: inline; }

/* ---------- HERO ---------- */
.hp-hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--sfondo) 100%);
    padding: 3rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hp-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
.hp-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rosso);
    margin: 0 0 0.9rem;
}
.hp-eyebrow-center { text-align: center; }
.hp-hero-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--nero);
    margin: 0 0 1rem;
}
.hp-hero-title .hp-accent { color: var(--rosso); }
.hp-hero-sub {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--grigio-scuro);
    margin: 0 0 1.8rem;
    max-width: 540px;
}

/* form ricerca */
.hp-form { margin-top: 1.2rem; }
.hp-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--grigio-scuro);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.hp-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: #ffffff;
    border: 2px solid var(--grigio-chiaro);
    border-radius: var(--r-md);
    padding: 0.4rem;
    box-shadow: 0 4px 14px rgba(214,40,40,0.06);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.hp-input-wrap:focus-within {
    border-color: var(--rosso);
    box-shadow: 0 4px 18px rgba(214,40,40,0.18);
}
.hp-input {
    flex: 1;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0.85rem 0.8rem;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--nero);
    text-transform: uppercase;
    text-align: center;
}
.hp-input::placeholder {
    color: #bdbdbd;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hp-btn-traccia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    background: var(--rosso);
    color: #fff;
    border: 0;
    border-radius: var(--r-sm);
    padding: 0.95rem 1.4rem;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    min-height: 52px;
    transition: background 0.15s, transform 0.15s;
}
.hp-btn-traccia:hover { background: var(--rosso-scuro); transform: translateY(-1px); }
.hp-btn-traccia:active { transform: translateY(0); }
.hp-input-hint {
    margin: 0.7rem 0 0;
    font-size: 0.85rem;
    color: var(--grigio);
}
.hp-input-hint code {
    background: var(--grigio-chiaro);
    padding: 0.1em 0.5em;
    border-radius: 4px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.85em;
    color: var(--nero);
}
.hp-alert {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--rosso);
    padding: 0.7rem 1rem;
    border-radius: var(--r-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

/* illustrazione hero (logo-icon ingrandito) */
.hp-hero-illust {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}
.hp-hero-icon {
    width: 100%;
    max-width: 380px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 14px 30px rgba(214,40,40,0.15));
    animation: hpFloat 4s ease-in-out infinite;
}
.hp-hero-bg {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(247,127,0,0.18) 0%, rgba(247,127,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
}
@keyframes hpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- STRIP INFO ---------- */
.hp-strip {
    background: var(--nero);
    color: #fff;
    padding: 1.2rem 0;
}
.hp-strip-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    text-align: center;
}
.hp-strip-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 0.92rem;
    line-height: 1.3;
}
.hp-strip-item strong { color: var(--arancione); }
.hp-strip-icon { font-size: 1.1em; }

/* ---------- SECTION GENERICA ---------- */
.hp-section { padding: 4rem 0; }
.hp-section-gray { background: var(--sfondo); }
.hp-section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    text-align: center;
    margin: 0 0 2.5rem;
    color: var(--nero);
    letter-spacing: 0.02em;
}

/* ---------- COME FUNZIONA — cards ---------- */
.hp-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
}
.hp-card {
    background: #fff;
    border: 1px solid var(--grigio-chiaro);
    border-radius: var(--r-lg);
    padding: 1.8rem 1.5rem;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.hp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ombra-md);
    border-color: var(--rosso);
}
.hp-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--rosso);
    color: #fff;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 14px rgba(214,40,40,0.3);
}
.hp-card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 0.6rem;
    color: var(--nero);
}
.hp-card-text {
    color: var(--grigio-scuro);
    line-height: 1.55;
    margin: 0;
}
.hp-card-text code {
    background: var(--grigio-chiaro);
    padding: 0.05em 0.4em;
    border-radius: 3px;
    font-size: 0.88em;
}

/* ---------- PERCHÉ DEM — features ---------- */
.hp-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 980px;
    margin: 0 auto;
}
.hp-feat {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--r-lg);
    border-top: 4px solid var(--arancione);
    box-shadow: var(--ombra-sm);
}
.hp-feat-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 0.6rem;
}
.hp-feat-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.4rem;
    color: var(--nero);
    line-height: 1.2;
}
.hp-feat-text {
    color: var(--grigio-scuro);
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* ---------- CTA WHATSAPP ---------- */
.hp-cta {
    background: linear-gradient(135deg, var(--whatsapp) 0%, #1ea854 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.hp-cta-inner { max-width: 640px; margin: 0 auto; }
.hp-cta-icon { font-size: 3rem; line-height: 1; margin-bottom: 0.5rem; }
.hp-cta-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 0.6rem;
    color: #fff;
    letter-spacing: 0.02em;
}
.hp-cta-sub { font-size: 1.05rem; margin: 0 0 1.6rem; opacity: 0.95; }
.hp-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--whatsapp);
    padding: 1rem 2.2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    transition: transform 0.15s, box-shadow 0.15s;
    min-height: 52px;
}
.hp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
    color: var(--whatsapp);
    text-decoration: none;
}
.hp-cta-phone { margin: 1rem 0 0; font-size: 0.95rem; opacity: 0.9; }
.hp-cta-phone a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---------- FOOTER ---------- */
.hp-footer {
    background: var(--nero);
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
}
.hp-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.hp-footer-brand img {
    display: block;
    height: auto;
    max-height: 50px;
    width: auto;
    margin-bottom: 0.8rem;
}
.hp-footer-tag { font-size: 0.92rem; line-height: 1.5; color: #9ca3af; margin: 0; }
.hp-footer-tag strong { color: #fff; }
.hp-footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: #fff;
    margin: 0 0 0.6rem;
    letter-spacing: 0.08em;
}
.hp-footer-col p { font-size: 0.92rem; line-height: 1.7; margin: 0; color: #9ca3af; }
.hp-footer-col a { color: #d1d5db; text-decoration: none; }
.hp-footer-col a:hover { color: var(--rosso); text-decoration: underline; }
.hp-footer-copy {
    border-top: 1px solid #1f2937;
    padding-top: 1.2rem;
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
}
.hp-footer-copy a { color: var(--rosso); }

/* ---------- FADE-IN AL CARICAMENTO ---------- */
@media (prefers-reduced-motion: no-preference) {
    .hp-hero-text > *,
    .hp-card,
    .hp-feat {
        animation: hpFadeUp 0.6s ease-out both;
    }
    .hp-hero-text > *:nth-child(2) { animation-delay: 0.1s; }
    .hp-hero-text > *:nth-child(3) { animation-delay: 0.2s; }
    .hp-hero-text > *:nth-child(4) { animation-delay: 0.3s; }
    .hp-card:nth-child(2) { animation-delay: 0.15s; }
    .hp-card:nth-child(3) { animation-delay: 0.3s; }
    .hp-feat:nth-child(2) { animation-delay: 0.1s; }
    .hp-feat:nth-child(3) { animation-delay: 0.2s; }
    .hp-feat:nth-child(4) { animation-delay: 0.3s; }
    @keyframes hpFadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* ============================================================
   RESPONSIVE — desktop ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
    .hp-header { padding: 1rem 0; }
    .hp-logo img { max-height: 64px; max-width: 280px; }
    .hp-header-wa { padding: 0.7em 1.4em; font-size: 1rem; }

    .hp-hero { padding: 5rem 0 6rem; }
    .hp-hero-inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 3rem;
    }
    .hp-hero-title { font-size: 3.6rem; line-height: 0.95; }
    .hp-hero-sub { font-size: 1.2rem; }

    .hp-input-wrap { flex-direction: row; align-items: stretch; }
    .hp-input { font-size: 1.4rem; text-align: left; padding: 1rem 1.2rem; }
    .hp-btn-traccia { padding: 0 1.8rem; font-size: 1rem; min-width: 220px; }

    .hp-hero-icon { max-width: 460px; }
    .hp-hero-bg { width: 420px; height: 420px; }

    .hp-strip-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .hp-strip-item { font-size: 1rem; }

    .hp-section { padding: 5rem 0; }
    .hp-section-title { font-size: 2.6rem; margin-bottom: 3rem; }

    .hp-cards { grid-template-columns: repeat(3, 1fr); }

    .hp-features { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

    .hp-cta { padding: 5rem 0; }
    .hp-cta-title { font-size: 2.4rem; }

    .hp-footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

/* ============================================================
   RESPONSIVE — mobile piccolo ≤ 380px
   ============================================================ */
@media (max-width: 380px) {
    .hp-header-wa-text { display: none; }
    .hp-hero-title { font-size: 2.2rem; }
    .hp-hero-sub { font-size: 1rem; }
    .hp-input { font-size: 1.05rem; }
    .hp-section-title { font-size: 1.7rem; }
}

/* ============================================================
   ADD-ON: tagline header + decorazioni hero + icone card + footer mini
   (versione homepage neutra, no branding aziendale)
   ============================================================ */

/* tagline accanto al logo */
.hp-header-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grigio);
    letter-spacing: 0.04em;
    display: none;
}
@media (min-width: 768px) {
    .hp-header-tag { display: inline; }
}

/* decorazioni SVG floating attorno al logo-icon nell'hero */
.hp-hero-illust { position: relative; }
.hp-decor {
    position: absolute;
    z-index: 3;
    opacity: 0.92;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.10));
}
.hp-decor-1 { top: 4%; left: 6%; width: 50px; height: 50px; animation: hpDecorFloat 5s ease-in-out infinite; }
.hp-decor-2 { top: 12%; right: 4%; width: 52px; height: 70px; animation: hpDecorFloat 6s ease-in-out infinite 0.5s; }
.hp-decor-3 { bottom: 8%; left: 10%; width: 44px; height: 44px; animation: hpDecorFloat 4.5s ease-in-out infinite 1s; }

@keyframes hpDecorFloat {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}
@media (min-width: 768px) {
    .hp-decor-1 { width: 70px; height: 70px; }
    .hp-decor-2 { width: 70px; height: 95px; }
    .hp-decor-3 { width: 60px; height: 60px; }
}

/* icona SVG sopra al numero in ogni card "Come funziona" */
.hp-card { padding-top: 2.2rem; }
.hp-card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-card-icon svg { width: 100%; height: 100%; }

/* nel layout nuovo il numero diventa "badge" piccolo accanto al titolo */
.hp-card-num {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 3px 8px rgba(214,40,40,0.25);
}

/* footer minimale */
.hp-footer-mini {
    background: var(--sfondo);
    border-top: 1px solid var(--grigio-chiaro);
    padding: 1.8rem 0;
    text-align: center;
}
.hp-footer-mini-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--grigio-scuro);
    margin: 0 0 0.4rem;
}
.hp-footer-mini-copy {
    display: block;
    color: var(--grigio);
    font-size: 0.82rem;
}
