﻿/* =============================================================================
   PowerSPORT — Design System (powersport.css)
   Sistema autonomo. Nessuna dipendenza dal template CUBA.
   Griglia/utility: Bootstrap 5 (CDN). Icone: FontAwesome 6 (CDN).
   ============================================================================= */

:root {
    /* Brand */
    --ps-orange: #F47B20;
    --ps-orange-dark: #d96a10;
    --ps-blue: #1B3A5C;
    --ps-blue-2: #16324f;
    --ps-blue-3: #0e1f36;
    --ps-blue-light: #2B5C8A;
    --ps-red: #8B1A1A;
    --ps-green: #2E7D32;
    --ps-green-soft: #b1da90;

    /* Ink / neutrals */
    --ink: #1c2b3a;
    --body: #46586b;
    --muted: #6b7a8d;
    --line: #e3e8ef;
    --surface: #ffffff;
    --surface-2: #f5f8fc;
    --surface-3: #eef3f8;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(27,58,92,.06), 0 2px 6px rgba(27,58,92,.06);
    --shadow-md: 0 6px 16px rgba(27,58,92,.10), 0 2px 6px rgba(27,58,92,.06);
    --shadow-lg: 0 22px 48px -14px rgba(27,58,92,.30);
    --shadow-glow: 0 16px 44px rgba(0,0,0,.30);

    /* Shape / motion */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --ease: cubic-bezier(.22,1,.36,1);

    --font-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Rubik', system-ui, sans-serif;

    /* Compat variabili template legacy (loader/tema) */
    --theme-default: #F47B20;
    --theme-secondary: #1B3A5C;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--body);
    background: var(--surface);
    line-height: 1.65;
    font-size: 1rem;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.01em;
}
p { margin: 0 0 1rem; }
a { color: var(--ps-blue-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ps-orange); }
img { max-width: 100%; height: auto; }
strong, b { font-weight: 700; }
ul { margin: 0; }
:focus-visible { outline: 3px solid rgba(244,123,32,.55); outline-offset: 2px; border-radius: 4px; }

.custom-container { max-width: 1200px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    padding: 12px 26px;
    border: 1.5px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0); }
.rounded-pill { border-radius: 999px !important; }
.btn-lg { padding: 15px 34px; font-size: 1.08rem; }
.btn-sm { padding: 9px 18px; font-size: .86rem; }

.btn-primary { background: var(--ps-blue); border-color: var(--ps-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ps-orange); border-color: var(--ps-orange); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-prova { background: var(--ps-blue); border-color: var(--ps-blue); color: #fff; font-weight: 700; box-shadow: var(--shadow-sm); }
.btn-prova:hover { background: var(--ps-orange); border-color: var(--ps-orange); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-success { background: transparent; border-color: var(--ps-orange); color: var(--ps-orange); }
.btn-outline-success:hover { background: var(--ps-orange); color: #fff; transform: translateY(-2px); }

/* ---------- Header / Navbar (fissa, glass) ---------- */
.header-absolute { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; }
.header-absolute .navbar {
    background: rgba(15,33,56,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.07);
    transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
    padding: 12px 0;
}
.header-absolute.scrolled .navbar {
    background: rgba(11,24,40,.94);
    box-shadow: 0 8px 30px rgba(0,0,0,.22);
    padding: 7px 0;
}
.header-absolute .navbar { display: flex; flex-wrap: nowrap; }
.header-absolute .navbar > .container,
.header-absolute .navbar > .custom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}
.header-absolute .navbar-collapse { display: flex; flex-basis: auto; flex-grow: 0; }
.navbar-brand { display: inline-flex; align-items: center; }
.header-absolute .navbar-nav { display: flex; flex-direction: row; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--ps-orange); background: rgba(255,255,255,.05); }
.nav-new .nav-link { color: var(--ps-green-soft); font-weight: 700; }
.nav-new .nav-link:hover { color: #cfe9b6; }
.nav-new-badge {
    display: inline-block; background: var(--ps-orange); color: #fff;
    font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 2px 6px; border-radius: 8px; line-height: 1.2;
}
.navbar-toggler {
    display: none; background: transparent; border: 1px solid rgba(255,255,255,.25);
    border-radius: 8px; padding: 8px 10px; color: #fff; cursor: pointer; font-size: 1.1rem;
}

/* Da 992px in su la testata segue lo stesso margine della hero,
   cosi' logo e titolo partono dalla stessa verticale */
@media (min-width: 992px) {
    .header-absolute .navbar > .custom-container {
        max-width: none;
        padding-inline: clamp(28px, 5vw, 104px);
    }
}

/* CTA principale della navbar */
.header-absolute .nav-cta {
    background: var(--ps-orange);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    padding: 11px 24px;
    border-radius: 999px;
    gap: 9px;
    box-shadow: 0 6px 18px rgba(244,123,32,.35);
}
.header-absolute .nav-cta i { font-size: .78rem; transition: transform .25s var(--ease); }
.header-absolute .nav-cta:hover {
    background: var(--ps-orange-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(244,123,32,.48);
}
.header-absolute .nav-cta:hover i { transform: translateX(4px); }

/* ---------- Sezioni generiche ---------- */
section { position: relative; }
.section-b-space { padding: 80px 0; }
.bg-soft { background: var(--surface-2); }

.title-style-1 { margin-bottom: 8px; }
.title-style-1 h5 {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--ps-orange);
    font-family: var(--font-body);
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    margin-bottom: 14px; line-height: 1.2;
}
.title-style-1 h5::before { content: ""; width: 26px; height: 2px; background: var(--ps-orange); border-radius: 2px; flex: 0 0 auto; }
.title-style-1.text-center h5 { justify-content: center; }
.title-style-1 h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -.02em; text-wrap: balance; font-weight: 800;
    color: var(--ps-blue); margin-bottom: .5em;
}
.title-style-1 p { color: var(--body); }

/* ---------- HERO ---------- */
.home-style-1 { position: relative; }
/* Header pagine interne: spaziatura più compatta + sfondo tenue coerente */
.home-style-1:not(#home) {
    padding-top: 116px !important;
    padding-bottom: 40px !important;
    min-height: auto !important;
    background:
        radial-gradient(900px 380px at 85% -20%, rgba(244,123,32,.07), transparent 60%),
        linear-gradient(180deg, var(--surface-2) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
}

/* =========================================================
   Home hero — video a tutta larghezza, testo su velo blu
   ========================================================= */
#home.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 760px;
    min-height: min(100svh, 940px);
    padding: 132px 0 92px;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background: #0a1d35;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 55% center;
    display: block;
}

/* Il velo: pieno a sinistra sotto il testo, trasparente a destra sul video */
.hero-scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg,
            #0a1d35 0%,
            rgba(11,32,56,.96) 600px,
            rgba(13,38,64,.88) 810px,
            rgba(15,44,73,.56) 1050px,
            rgba(16,48,78,.22) 1380px,
            rgba(16,48,78,0) 1800px),
        linear-gradient(180deg,
            rgba(7,20,36,.8) 0%,
            rgba(7,20,36,.12) 22%,
            rgba(7,20,36,0) 55%,
            rgba(6,16,28,.66) 100%),
        radial-gradient(760px 480px at 84% 8%, rgba(244,123,32,.2), transparent 62%);
}

.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 620px; }
/* Su desktop il testo esce dal contenitore centrato e si avvicina al bordo sinistro */
@media (min-width: 992px) {
    .hero-inner {
        max-width: none;
        width: 100%;
        padding-inline: clamp(28px, 5vw, 104px);
    }
}

/* --- Colonna testo --- */
.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.032em;
    text-wrap: balance;
    margin: 0 0 22px;
    text-shadow: 0 2px 24px rgba(4,10,18,.5);
}
.hero h1 span { color: var(--ps-orange); }

.hero-lead {
    font-size: clamp(1.02rem, 1.1vw, 1.14rem);
    line-height: 1.62;
    color: #e6eef6;
    max-width: 56ch;
    margin: 0 0 14px;
}
.hero-lead strong { color: #fff; font-weight: 700; }

.hero-body {
    font-size: .95rem;
    line-height: 1.68;
    color: #a6bccf;
    max-width: 62ch;
    margin: 0 0 32px;
}
.hero-body strong { color: #d5e2ee; font-weight: 600; }

/* --- Azioni --- */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; }

.hero-play {
    display: inline-flex; align-items: center; gap: 14px;
    padding: 7px 24px 7px 7px;
    border: none; border-radius: 999px;
    background: var(--ps-orange);
    color: #fff;
    font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 16px 34px -12px rgba(244,123,32,.75), 0 2px 6px rgba(0,0,0,.3);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s ease;
}
.hero-play-disc {
    width: 44px; height: 44px; flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .82rem;
    transition: background-color .25s ease, scale .3s var(--ease);
}
.hero-play-disc i { transform: translateX(1px); }
.hero-play:hover {
    background: var(--ps-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 24px 46px -12px rgba(244,123,32,.8), 0 4px 10px rgba(0,0,0,.34);
}
.hero-play:hover .hero-play-disc { background: rgba(255,255,255,.32); scale: 1.07; }
.hero-play:active { transform: translateY(-1px); }

/* Variante link: etichetta a sinistra, disco con freccia a destra */
a.hero-play, a.hero-play:hover { color: #fff; text-decoration: none; }
.hero-play-cta { padding: 7px 7px 7px 26px; }
.hero-play-cta:hover .hero-play-disc i { transform: translateX(3px); }
.hero-play-cta .hero-play-disc i { transform: none; transition: transform .25s var(--ease); }

/* --- Riga prove --- */
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip {
    display: inline-flex; align-items: center; gap: 10px;
    margin: 0; padding: 9px 16px;
    border-radius: 999px;
    background: rgba(6,16,30,.5);
    border: 1px solid rgba(255,255,255,.16);
    color: #c3d3e1;
    font-size: .86rem; line-height: 1.35;
}
.hero-chip strong { color: #fff; font-weight: 600; }
.hero-chip i { flex: 0 0 auto; font-size: .92rem; color: var(--ps-orange); }
.hero-chip + .hero-chip i { color: #8cc0ec; }

/* --- Comando del video --- */
.hero-video-toggle {
    position: absolute; z-index: 2;
    top: 104px; right: 28px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(6,16,30,.62);
    color: #fff; font-size: .78rem; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    opacity: .45;
    transition: opacity .3s var(--ease), background-color .25s ease, border-color .25s ease;
}
#home.hero:hover .hero-video-toggle,
.hero-video-toggle:focus-visible,
.hero-video-toggle[data-paused] { opacity: 1; }
.hero-video-toggle:hover { background: var(--ps-orange); border-color: var(--ps-orange); }

/* --- Ingresso --- */
@keyframes heroRise {
    from { opacity: 0; translate: 0 20px; }
    to   { opacity: 1; translate: 0 0; }
}
.hero-copy > * { animation: heroRise .8s cubic-bezier(.16,1,.3,1) both; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .28s; }
.hero-copy > *:nth-child(5) { animation-delay: .36s; }

/* --- Anello di focus leggibile sopra l'arancio --- */
.hero-play:focus-visible, .hero-video-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy > * { animation: none !important; }
}

/* ---------- Contatori ---------- */
.customer-review-style-1 { background: var(--surface-2); padding: 46px 0; }
.customer-review-wrapper { display: flex; align-items: center; gap: 16px; justify-content: center; text-align: left; }
.customer-review-wrapper .customer-icon {
    width: 62px; height: 62px; border-radius: 50%; background: #fff;
    box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.customer-review-wrapper .customer-icon img { width: 34px; height: 34px; object-fit: contain; }
.customer-review-wrapper h3 { font-size: 1.9rem; font-weight: 800; color: var(--ink); margin: 0; white-space: nowrap; letter-spacing: -.02em; }
.customer-review-wrapper p { color: var(--body); font-weight: 600; margin: 0; font-size: .95rem; }

/* ---------- About / Choose ---------- */
.about-style-2, .choose-style-2 { padding: 80px 0; }
.about-content p { color: var(--body); }
.about-content ul { list-style: none; padding: 0; }
.about-image img { border-radius: var(--r-md); }
.about-video {
    display: block; width: 100%; max-width: 236px;
    margin: 24px auto 0;
    border-radius: var(--r-md);
    background: #061019;
    box-shadow: var(--shadow-sm);
}

.choose-content ul { list-style: none; padding: 0; margin: 0; }
.choose-content ul li { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 34px; }
.choose-content ul li:last-child { margin-bottom: 0; }
.choose-icon {
    width: 54px; height: 54px; flex: 0 0 auto; border-radius: 14px;
    background: rgba(244,123,32,.1); color: var(--ps-orange);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.choose-details h3 { font-size: 1.15rem; color: var(--ps-blue); margin-bottom: 6px; }
.choose-details p { color: var(--body); margin: 0; font-size: .96rem; }

/* ---------- Feature cards ---------- */
.feature-style-2 { padding: 80px 0; }
.feature-wrapper {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 30px 26px; height: 100%; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s ease;
}
.feature-wrapper:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(244,123,32,.4); }
.feature-icon-wrap { margin-bottom: 18px; }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.feature-icon.primary { background: rgba(244,123,32,.12); color: var(--ps-orange); }
.feature-icon.success { background: rgba(27,58,92,.1); color: var(--ps-blue); }
.feature-icon.warning { background: rgba(139,26,26,.1); color: var(--ps-red); }
.feature-icon.info { background: rgba(43,92,138,.12); color: var(--ps-blue-light); }
.feature-content h3 { font-size: 1.15rem; color: var(--ps-blue); margin-bottom: 8px; }
.feature-content p { color: var(--body); margin: 0; font-size: .95rem; }

/* ---------- Sport type cards ---------- */
.service-style-1 { padding: 70px 0; }
.service-style-2 { background: linear-gradient(135deg, #f0f4f8 0%, #fdf6f0 100%); }
.sport-type-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 32px 24px; text-align: center; height: 100%; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s ease;
}
.sport-type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(244,123,32,.4); }
.sport-type-card .sport-icon { font-size: 2.8rem; margin-bottom: 14px; line-height: 1; }
.sport-type-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--ps-blue); margin-bottom: 10px; }

/* ---------- Piani / Prezzi ---------- */
.plan-style-2 { padding: 80px 0; }
.plan-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 32px 26px; height: 100%; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--ps-orange); }
.plan-icon-wrapper { margin-bottom: 14px; }
.plan-icon {
    width: 56px; height: 56px; border-radius: 14px; background: rgba(27,58,92,.08);
    color: var(--ps-blue); display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.plan-card:hover .plan-icon { background: var(--ps-orange); color: #fff; }
.plan-content h3 { font-size: 1.3rem; color: var(--ps-blue); margin-bottom: 2px; }
.plan-content > p { color: var(--muted); font-size: .9rem; }
.plan-card ul { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.plan-card ul li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f3f7; font-size: .92rem; color: var(--body); }
.plan-card ul li i { flex: 0 0 auto; width: 18px; text-align: center; }
.plan-card ul li i.ico-yes { color: var(--ps-green); }
.plan-card ul li i.ico-no { color: #c4ccd6; }
.plan-price { text-align: center; }
.plan-price h3 { font-size: 2rem; color: var(--ps-blue); margin: 0; }
.plan-price h6 { color: var(--muted); font-size: .85rem; margin: 0; }
.plan-price .btn { width: 100%; margin-top: 14px; }

/* ---------- Tabelle (Costi) ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { vertical-align: middle; }
.table-hover tbody tr:hover { background: #fafcff; }

/* ---------- Footer ---------- */
.footer-style-1 { background: var(--ps-blue); color: rgba(255,255,255,.72); }
.footer-style-1 .main-footer { padding: 60px 0 40px; }
.footer-style-1 .footer-contact img { margin-bottom: 16px; }
.footer-style-1 .footer-contact p { color: rgba(255,255,255,.6); font-size: .92rem; }
.footer-style-1 h3 { color: #fff; font-size: 1.15rem; margin-bottom: 20px; }
.footer-style-1 h6 { color: #fff; font-size: .9rem; margin: 0 0 2px; }
.footer-location { list-style: none; padding: 0; margin: 0; }
.footer-location li { margin-bottom: 16px; }
.footer-location .d-flex { display: flex; gap: 12px; }
.footer-icon { color: var(--ps-orange); font-size: 1rem; margin-top: 3px; }
.footer-icon svg { width: 18px; height: 18px; fill: var(--ps-orange); }
.footer-location p { color: rgba(255,255,255,.6); margin: 0; font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links li a { color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 8px; }
.footer-links li a:hover { color: var(--ps-orange); }
.footer-links li a i { font-size: .7rem; color: var(--ps-orange); }
.sub-footer { border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.sub-footer a { color: rgba(255,255,255,.7); }
.sub-footer a:hover { color: var(--ps-orange); }
.sub-footer-links { display: flex; gap: 20px; justify-content: flex-end; list-style: none; padding: 0; margin: 0; }
.footer-ai-note { margin: 6px 0 0; font-size: .74rem; line-height: 1.4; color: rgba(255,255,255,.34); }
.sub-footer-links li { margin: 0; }

/* ---------- Back to top ---------- */
.tap-top {
    position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--ps-blue); color: #fff; display: none; align-items: center; justify-content: center;
    cursor: pointer; z-index: 900; box-shadow: var(--shadow-md);
    transition: transform .2s var(--ease), background .2s ease;
}
.tap-top.show { display: flex; }
.tap-top:hover { background: var(--ps-orange); transform: translateY(-3px); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Alert / form feedback ---------- */
.alert { border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: #eaf6ec; border-color: #cfe8d3; color: #1e5b2a; }
.alert-warning { background: #fff6e8; border-color: #ffe2b8; color: #8a5a12; }
.alert-danger { background: #fdecea; border-color: #f6c9c4; color: #8b1f1a; }

/* ---------- Floating news ---------- */
.floating-news {
    position: fixed; bottom: 20px; left: 20px; z-index: 950;
    background: linear-gradient(135deg, var(--ps-blue) 0%, #2B5C8A 100%);
    color: #fff; border-radius: 16px; padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25); max-width: 340px;
    animation: floatIn .5s var(--ease);
}
.floating-news .close-btn {
    position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.15);
    border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1;
    width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.floating-news .close-btn:hover { background: rgba(255,255,255,.28); }
.floating-news .badge-new {
    display: inline-block; background: var(--ps-orange); color: #fff; font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.floating-news h4 { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; color: #fff; }
.floating-news p { font-size: .85rem; color: rgba(255,255,255,.8); margin: 0 0 14px; line-height: 1.4; }
.floating-news .btn-news {
    display: inline-block; background: var(--ps-green-soft); color: var(--ps-blue); font-weight: 700;
    font-size: .85rem; padding: 8px 20px; border-radius: 20px; transition: background .2s;
}
.floating-news .btn-news:hover { background: #9ccc78; color: var(--ps-blue); }
.floating-slides-wrap { position: relative; min-height: 128px; }
.floating-slide { position: absolute; top: 0; left: 0; right: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; }
.floating-slide.active { opacity: 1; visibility: visible; position: relative; }
.floating-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.floating-arrow {
    background: rgba(255,255,255,.15); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .7rem; transition: background .2s;
}
.floating-arrow:hover { background: rgba(255,255,255,.3); }
.floating-dots { display: flex; justify-content: center; gap: 8px; }
.floating-dots .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: background .2s; }
.floating-dots .dot.active { background: var(--ps-green-soft); }
.floating-dots .dot:hover { background: rgba(255,255,255,.6); }
@keyframes floatIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) {
    .floating-news { left: 10px; right: 10px; max-width: none; bottom: 10px; padding: 14px 16px; border-radius: 12px; }
    .floating-news h4 { font-size: 1rem; }
    .floating-news p { font-size: .78rem; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .header-absolute .navbar-toggler { display: inline-flex; }
    .header-absolute .navbar-collapse {
        position: absolute; top: 100%; left: 0; right: 0; background: var(--ps-blue);
        padding: 12px 20px 18px; flex-direction: column; display: none; flex-basis: auto;
    }
    .header-absolute .navbar-collapse.open { display: flex; }
    .header-absolute .navbar-nav { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
    .header-absolute .nav-link { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
    .header-absolute .navbar > .container > .btn,
    .header-absolute .navbar > .custom-container > .btn { display: none; }
    #home.hero {
        min-height: auto;
        padding: 116px 0 76px;
    }
    .hero-copy { max-width: 660px; }
    .hero-lead, .hero-body { max-width: none; }
    .hero-media-video { object-position: 62% center; }
    /* Con il testo a piena larghezza il velo deve coprire tutto */
    .hero-scrim {
        background:
            linear-gradient(90deg, rgba(8,22,40,.93) 0%, rgba(9,26,46,.87) 55%, rgba(11,32,54,.76) 100%),
            linear-gradient(180deg, rgba(5,12,22,.76) 0%, rgba(5,12,22,.2) 42%, rgba(5,12,22,.7) 100%),
            radial-gradient(600px 400px at 86% 6%, rgba(244,123,32,.16), transparent 62%);
    }
    .hero-video-toggle { top: 92px; right: 18px; }
    .customer-review-wrapper { flex-direction: column; text-align: center; gap: 10px; }
    .customer-review-wrapper h3 { font-size: 1.5rem; }
    .sub-footer-links { justify-content: flex-start; margin-top: 12px; }
}
@media (max-width: 575px) {
    .section-b-space, .about-style-2, .choose-style-2, .feature-style-2, .plan-style-2, .service-style-1 { padding: 56px 0; }
    .grouping-input { flex-direction: column; border-radius: var(--r-lg); padding: 12px; }
    .grouping-input .btn { width: 100%; }
    .customer-review-wrapper h3 { font-size: 1.6rem; }

    #home.hero { padding: 104px 0 62px; }
    .hero h1 { font-size: clamp(1.95rem, 8vw, 2.5rem); }
    .hero-body { font-size: .92rem; }
    .hero-actions { gap: 10px; }
    .hero-play { width: 100%; justify-content: center; }
    .hero-play { padding: 7px 22px 7px 7px; font-size: .95rem; }
    .hero-play-cta { padding: 7px 7px 7px 22px; }
    .hero-chip { font-size: .8rem; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
