/* ------------------------------------------------------------------
 * bigdata1 – stile della home alternativa (inc/home/bigdata1.php)
 * Si affianca a Bootstrap 5, non tocca style.css delle altre pagine.
 * ------------------------------------------------------------------ */

/* Font serviti dal sito: niente chiamata a Google Fonts */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
    --bd-blu: #0d6efd;
    --bd-blu-scuro: #0b5ed7;
    --bd-notte: #101c38;
    --bd-notte-2: #1d335f;
    --bd-gradiente: linear-gradient(135deg, #101c38 0%, #1d335f 100%);
}

/* Altezza dell'intestazione fissa: serve a non nascondere le sezioni sotto la barra */
:root { --bd-header: 110px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

section[id] { scroll-margin-top: var(--bd-header); }

.text-primary-blue { color: var(--bd-blu) !important; }
.text-dark-blue { color: var(--bd-notte) !important; }
.bg-dark-blue { background: var(--bd-gradiente) !important; }

/* Icone SVG servite da icona() al posto di FontAwesome */
.icona { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
.icona--piccola { width: .8em; height: .8em; }

.section-badge {
    display: inline-block;
    background-color: #f0f2f5;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* --- HEADER & NAVBAR --- */
.site-header-wrapper {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-announcement-bar {
    background: var(--bd-gradiente);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    padding: 8px 15px;
    letter-spacing: 0.3px;
}

.navbar {
    padding: 0.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.navbar-brand img { max-height: 45px; width: auto; }
.navbar-brand .logo-testo { font-weight: 800; color: var(--bd-notte); font-size: 1.4rem; letter-spacing: -0.5px; }
.navbar-brand .logo-testo span { color: var(--bd-blu); }
.nav-link {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 1rem;
}
.nav-link:hover, .nav-link:focus { color: var(--bd-blu); }
.nav-link.active { color: var(--bd-blu); font-weight: 600; }
.navbar .dropdown-menu { border: 1px solid rgba(0, 0, 0, .08); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.navbar .dropdown-item { font-size: .92rem; font-weight: 500; }
.navbar .dropdown-item:active { background-color: var(--bd-blu); }

.salta {
    position: absolute;
    left: 10px;
    top: -60px;
    z-index: 1100;
    background: var(--bd-blu);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
}
.salta:focus { top: 10px; color: #fff; }

/* --- STRISCIA "ASCOLTA LO SPOT" --- */
.spot-bar {
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
    padding: calc(var(--bd-header) + 18px) 0 18px;
}
.spot-bar__griglia {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.spot-banner {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.spot-banner img { max-height: 70px; width: auto; }
.spot-banner .spot-testo {
    font-weight: 700;
    color: var(--bd-notte);
    font-size: 1.05rem;
    text-align: left;
    max-width: 320px;
}
.spot-tondo {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--bd-blu);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}
.spot-banner:hover .spot-tondo { transform: scale(1.08); background-color: var(--bd-blu-scuro); }
.spot-tondo__pausa { display: none; }
.spot-banner.in-riproduzione .spot-tondo__play { display: none; }
.spot-banner.in-riproduzione .spot-tondo__pausa { display: inline-flex; }
.spot-banner:focus-visible { outline: 3px solid var(--bd-blu); outline-offset: 4px; border-radius: 10px; }
.spot-player { flex: 1 1 320px; max-width: 420px; }
.spot-player audio { width: 100%; height: 40px; }

/* Con la striscia, la hero parte più in basso e non serve il suo spazio in cima */
.con-spot .hero-section {
    padding-top: 60px;
    min-height: calc(100vh - 160px);
}

@media (max-width: 767px) {
    .spot-bar { padding-top: calc(var(--bd-header) + 12px); }
    .spot-bar__griglia { gap: 16px; }
    .spot-banner img { max-height: 54px; }
    .spot-player { flex-basis: 100%; max-width: none; }
}

/* --- HERO --- */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-weight: 800;
    color: var(--bd-notte);
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #444;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.btn-custom {
    background-color: var(--bd-blu);
    border: none;
    padding: 0.9rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1.05rem;
}
.btn-custom:hover { background-color: var(--bd-blu-scuro); }

.contact-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bd-notte);
}
.contact-widget .icon-circle {
    background: var(--bd-gradiente);
    color: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}
.contact-widget .text-small {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: -4px;
}
.contact-widget .number { font-weight: 700; font-size: 1.1rem; }

.check-list {
    font-size: 0.95rem;
    color: #444;
    margin-top: 2rem;
    font-weight: 500;
}
.check-list .icona { color: var(--bd-blu); margin-right: 8px; }

/* --- WIDGET FLOTTANTE DELLA HERO --- */
@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-widget {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    animation: floatAnimation 4s ease-in-out infinite;
}
.hw-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}
.hw-title {
    color: var(--bd-notte);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
}

.hw-main-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.hw-main-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(13, 110, 253, 0.08);
    border-radius: 50%;
    z-index: 1;
}
.hw-main-card > * { position: relative; z-index: 2; }
.hw-main-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bd-notte);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}
.hw-main-label { font-size: 1.2rem; font-weight: 600; color: #555; margin-bottom: 10px; }
.hw-main-desc { font-size: 0.95rem; color: #777; margin: 0; }

.hw-sub-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    color: var(--bd-notte);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.hw-sub-value { font-size: 1.6rem; font-weight: 700; margin-bottom: 2px; color: var(--bd-notte); }
.hw-sub-label { font-size: 0.85rem; font-weight: 500; color: #666; margin: 0; }

/* --- BARRA STATISTICHE --- */
.dark-stats-bar {
    background: var(--bd-gradiente);
    padding: 40px 0;
}
.dark-stats-bar .stat-num {
    color: var(--bd-blu);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0px;
    letter-spacing: -0.5px;
}
.dark-stats-bar .stat-text { color: #ffffff; font-size: 1.1rem; font-weight: 400; }

/* --- SERVIZI --- */
.services-section { padding: 100px 0; background-color: #ffffff; }
.section-main-title {
    font-weight: 800;
    color: var(--bd-notte);
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.section-subtitle { color: #666; font-size: 1.1rem; max-width: 600px; margin-bottom: 50px; }

.service-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    height: 100%;
    text-align: left;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    border-color: var(--bd-blu);
}
.service-icon-circle {
    width: 50px;
    height: 50px;
    background-color: var(--bd-blu);
    border-radius: 50%;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
}
.service-card-title { font-weight: 700; color: var(--bd-notte); font-size: 1.2rem; margin-bottom: 15px; }
.service-card-desc { color: #666; font-size: 0.95rem; margin-bottom: 30px; line-height: 1.5; }
.service-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--bd-blu);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}
.service-card-link:hover { color: var(--bd-notte); }

/* --- CLIENTI E PORTALI (nastri scorrevoli) --- */
.clients-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
}
.portals-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    overflow: hidden;
}
.marquee-container { position: relative; width: 100%; overflow: hidden; display: flex; }
.marquee-track {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: scrollMarquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 35px;
    min-width: 200px;
}
.marquee-item img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.3s ease;
}
.marquee-item img:hover { filter: grayscale(0%); opacity: 1; }
.marquee-item .nome-logo { color: #7a8699; font-weight: 600; letter-spacing: .3px; }

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .hero-widget { animation: none; }
}

/* --- PROFILAZIONE --- */
.profiling-section { padding: 100px 0; background-color: #f4f7f9; }
.sticky-profiling-col { position: sticky; top: 140px; height: fit-content; }
.feature-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.feature-icon {
    background-color: #e6f4ea;
    color: #1e8e3e;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.feature-text h3 { font-size: 1.05rem; font-weight: 700; color: var(--bd-notte); margin-bottom: 5px; }
.feature-text p { font-size: 0.9rem; color: #666; margin: 0; }

.profiling-widget {
    background: linear-gradient(135deg, #0a1329 0%, #182c57 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.profiling-widget h3 { color: #ffffff; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.widget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.widget-box {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}
.widget-label { color: #8fa0c0; font-size: 0.8rem; margin-bottom: 5px; }
.widget-value { color: #ffffff; font-weight: 600; font-size: 1rem; }
.widget-action-bar {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.widget-action-text { display: flex; align-items: center; gap: 8px; }
.widget-action-text span { color: #666; font-size: 0.85rem; }
.widget-action-text strong { color: var(--bd-notte); font-size: 1.1rem; font-weight: 800; }

/* --- PROCESSO --- */
.process-section { padding: 100px 0; background-color: #ffffff; }
.step-number { font-size: 2.5rem; font-weight: 800; color: var(--bd-blu); line-height: 1; margin-bottom: 15px; }

/* --- AFFIDABILITÀ --- */
.trust-section { padding: 80px 0; background-color: #ffffff; }
.trust-box {
    background: var(--bd-gradiente);
    border-radius: 20px;
    padding: 60px;
    color: white;
    position: relative;
    overflow: hidden;
}
.trust-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}
.trust-box .section-badge { margin-bottom: 2rem; }
.trust-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 2;
}
.trust-desc {
    font-size: 1.1rem;
    color: #d0d5df;
    max-width: 600px;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}
.trust-tags { display: flex; gap: 15px; flex-wrap: wrap; position: relative; z-index: 2; }
.trust-tag {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}
.trust-cta {
    position: relative;
    z-index: 2;
    text-align: right;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}
.btn-white {
    background-color: #ffffff;
    color: var(--bd-notte);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}
.btn-white:hover { background-color: #f8f9fa; color: var(--bd-blu); }

/* --- CONTATTI --- */
.contact-section { padding: 100px 0; background-color: #ffffff; }
.sticky-contact-col { position: sticky; top: 140px; height: fit-content; }
.contact-section input::placeholder,
.contact-section textarea::placeholder {
    color: #94a3b8 !important;
    font-size: 0.8rem !important;
}

.contact-info-card {
    background: var(--bd-gradiente);
    border-radius: 20px;
    padding: 50px 40px;
    color: white;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.contact-info-card::before {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* Campo trappola per i bot: fuori schermo, non "display:none" */
.modulo-trappola {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.campo-errore { color: #c0392b; font-size: 0.8rem; font-weight: 600; margin: 6px 0 0; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #c0392b; }
.consensi { border: 1px solid #e9ecef; border-radius: 12px; padding: 18px 20px; background-color: #fbfcfd; }
.consensi legend { font-size: 0.85rem; font-weight: 600; color: #444; float: none; width: auto; }
.consensi label { font-size: 0.85rem; color: #555; }

/* --- TORNA SU --- */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    display: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bd-blu);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
#backToTopBtn:hover { background-color: var(--bd-blu-scuro); transform: translateY(-3px); }

@media (max-width: 991px) {
    .trust-box { padding: 40px 30px; text-align: left; }
    .trust-title { font-size: 2.2rem; }
    .trust-cta { text-align: left; align-items: flex-start; justify-content: flex-start; margin-top: 30px; }
    .hero-title { font-size: 2.5rem; }
    .hero-section { padding-top: 170px; }
    .hero-widget { margin-top: 40px; animation: none; }
    .dark-stats-bar .stat-block { margin-bottom: 30px; }
    .dark-stats-bar .stat-block:nth-last-child(-n+2) { margin-bottom: 0; }
    .sticky-profiling-col, .sticky-contact-col { position: relative; top: 0; }
    .navbar { padding: 0.5rem 1rem; }
    .nav-link { margin-left: 0; }
}
