/* ============================================================
   MONDO DIGITALE — style.css
   Palette: Golden #F5C518 | Sky Blue #7EC8E3 | Navy #152742
   ============================================================ */

/* ---------- 1. CSS VARIABLES ---------- */
:root {
  --gold:        #F5C518;
  --gold-light:  #FDE97A;
  --gold-dark:   #D4A80E;
  --sky:         #7EC8E3;
  --sky-light:   #C2E8F5;
  --sky-dark:    #4AA9CC;
  --navy:        #152742;
  --navy-mid:    #1E3A5F;
  --navy-light:  #2C5282;
  --white:       #FFFFFF;
  --off-white:   #F8FAFF;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-500:    #6B7A99;
  --gray-800:    #1E293B;
  --font-display: 'Raleway', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow-sm:    0 2px 12px rgba(21,39,66,.08);
  --shadow-md:    0 8px 32px rgba(21,39,66,.14);
  --shadow-lg:    0 20px 60px rgba(21,39,66,.18);
  --transition:   all .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; max-width: 100%; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p  { font-size: 1.05rem; color: var(--gray-500); }
.lead { font-size: 1.2rem; color: var(--gray-800); }

/* ---------- 4. UTILITY ---------- */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-light), var(--sky-light));
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.text-gold  { color: var(--gold-dark) !important; }
.text-sky   { color: var(--sky-dark) !important; }
.text-navy  { color: var(--navy) !important; }
.bg-gradient-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a4a7a 100%);
}

/* ─── BUTTONS ─── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  padding: .85rem 2.2rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245,197,24,.4);
  cursor: pointer;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245,197,24,.55);
  filter: brightness(1.07);
}
.btn-outline-sky {
  background: transparent;
  color: var(--sky) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--sky);
  border-radius: 50px;
  padding: .8rem 2rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline-sky:hover {
  background: var(--sky);
  color: var(--navy) !important;
  transform: translateY(-3px);
}
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(37,211,102,.5);
}
.btn-whatsapp i { font-size: 1.3rem; }

/* ---------- 5. PRELOADER ---------- */
#preloader {
  position: fixed; inset: 0;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-logo {
  width: 80px; animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.5;transform:scale(.95)} 50%{opacity:1;transform:scale(1.05)} }

/* ---------- 6. NAVBAR ---------- */
#mainNav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  transition: var(--transition);
  padding: 1.1rem 0;
}
#mainNav.scrolled {
  background: rgba(21,39,66,.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  padding: .6rem 0;
}
.navbar-brand-wrap { display: flex; align-items: center; gap: .7rem; }
.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--sky) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900;
  color: var(--navy); font-size: 1.3rem;
  box-shadow: 0 2px 12px rgba(245,197,24,.4);
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-weight: 800; color: var(--white); font-size: 1.25rem; line-height: 1.1; }
.logo-text span { color: var(--gold); }
.logo-sub { font-size: .65rem; color: var(--sky-light); letter-spacing: .08em; font-weight: 500; }
.navbar-nav .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  padding: .4rem .9rem !important;
  transition: var(--transition);
  letter-spacing: .02em;
}
.navbar-nav .nav-link:hover { color: var(--gold) !important; }
.navbar-toggler { border: 2px solid var(--gold); border-radius: 8px; padding: .3rem .5rem; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23F5C518' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Mobile menu background */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(21,39,66,.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1rem 1.2rem 1.4rem;
    margin-top: .5rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.3);
  }
  .navbar-nav .nav-link { padding: .65rem 1rem !important; border-radius: var(--radius-sm); }
  .navbar-nav .nav-link:hover { background: rgba(255,255,255,.06); }
  .navbar-nav .nav-item:last-child { margin-top: .5rem; }
  .navbar-nav .btn-gold { display: block; text-align: center; }
}

/* ---------- 7. HERO ---------- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #1a4a7a 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 90px;
}
.hero-particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-particles::before {
  content: '';
  position: absolute; top: -30%; right: -15%;
  width: 70vw; height: 70vw; max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,200,227,.13) 0%, transparent 70%);
}
.hero-particles::after {
  content: '';
  position: absolute; bottom: -20%; left: -10%;
  width: 50vw; height: 50vw; max-width: 500px; max-height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,.1) 0%, transparent 70%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(126,200,227,.3);
  color: var(--sky-light);
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 1.1rem; border-radius: 50px;
  margin-bottom: 1.4rem; backdrop-filter: blur(6px);
}
.hero-badge i { color: var(--gold); }
.hero-title { color: var(--white); margin-bottom: 1.4rem; }
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { color: rgba(255,255,255,.72); font-size: 1.15rem; max-width: 560px; margin-bottom: 2.2rem; }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.6); letter-spacing: .05em; margin-top: .2rem; }
.hero-stat-divider { width: 1px; background: rgba(255,255,255,.15); height: 50px; align-self: center; }
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-card-floating {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(126,200,227,.2);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.5rem;
  animation: float 4s ease-in-out infinite;
}
.hero-card-floating:nth-child(2) { animation-delay: 1.3s; animation-duration: 5s; }
.hero-card-floating:nth-child(3) { animation-delay: 2.6s; animation-duration: 4.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
.hero-main-card {
  background: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(126,200,227,.08) 100%);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; backdrop-filter: blur(20px);
  padding: 2rem; max-width: 380px; width: 100%;
}
.hero-img-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, rgba(245,197,24,.2) 0%, rgba(126,200,227,.2) 100%);
  border-radius: var(--radius); margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,.3);
  position: relative; overflow: hidden;
}
.hero-img-placeholder img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
}
/* ── Floating chips ── */
.chip-float {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  border-radius: 50px; padding: .5rem 1rem;
  color: #fff; font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
}
.chip-float i { font-size: .9rem; }
.chip-ai   { top: 10%; right: -5%; color: var(--gold-light); border-color: rgba(245,197,24,.4); }
.chip-web  { bottom: 20%; left: -8%; color: var(--sky-light); border-color: rgba(126,200,227,.4); }
.chip-italia { top: 40%; right: -12%; color: rgba(255,255,255,.9); }

/* ---------- 8. ABOUT ---------- */
#about { padding: 100px 0; background: var(--white); }
.about-img-wrap {
  position: relative; border-radius: 20px; overflow: hidden;
}
.about-img-wrap img {
  width: 100%; height: 420px; object-fit: cover; border-radius: 20px;
  transition: transform .5s ease;
}
.about-img-wrap:hover img { transform: scale(1.04); }
.about-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(21,39,66,.6) 100%);
  border-radius: 20px;
}
.about-badge-float {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  background: var(--white); border-radius: var(--radius); padding: .9rem 1.3rem;
  display: flex; align-items: center; gap: .8rem;
  box-shadow: var(--shadow-md);
}
.about-badge-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--sky) 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.2rem;
}
.about-badge-text { font-family: var(--font-display); }
.about-badge-text strong { display: block; color: var(--navy); font-size: 1.1rem; }
.about-badge-text span { color: var(--gray-500); font-size: .78rem; }
.partner-card {
  background: var(--gray-100); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem; border: 1px solid var(--gray-200);
}
.partner-icon {
  width: 50px; height: 50px; border-radius: 10px;
  background: linear-gradient(135deg, var(--sky-light) 0%, var(--gold-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 1.4rem; flex-shrink: 0;
}

/* ---------- 9. SERVICES ---------- */
#servizi { padding: 100px 0; background: var(--off-white); }
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px; padding: 2.2rem;
  transition: var(--transition);
  height: 100%; position: relative; overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--sky) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px; height: 64px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 1.4rem;
}
.icon-gold { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%); color: var(--navy); }
.icon-sky  { background: linear-gradient(135deg, var(--sky-light) 0%, var(--sky) 100%); color: var(--navy); }
.icon-navy { background: linear-gradient(135deg, #c2d4f0 0%, var(--navy-light) 100%); color: var(--white); }
.icon-mix  { background: linear-gradient(135deg, var(--gold-light) 0%, var(--sky) 100%); color: var(--navy); }
.service-card h3 { font-size: 1.35rem; margin-bottom: .75rem; color: var(--navy); }
.service-card p  { font-size: .97rem; line-height: 1.75; }
.service-img-wrap {
  width: 100%; height: 180px; border-radius: var(--radius-sm);
  overflow: hidden; margin-top: 1.5rem; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
}
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.service-tag {
  display: inline-block;
  background: var(--gray-100); color: var(--navy-light);
  font-size: .73rem; font-weight: 700; font-family: var(--font-display);
  border-radius: 50px; padding: .2rem .75rem; margin: .3rem .2rem 0 0;
  letter-spacing: .04em;
}

/* ---------- 10. AI SECTION ---------- */
#intelligenza-artificiale {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4a7a 100%);
  position: relative; overflow: hidden;
}
#intelligenza-artificiale::before {
  content: '';
  position: absolute; top: -40%; right: -20%;
  width: 80vw; height: 80vw; max-width: 800px; max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,.08) 0%, transparent 65%);
  pointer-events: none;
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ai-pill {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 1.2rem;
  display: flex; align-items: flex-start; gap: .9rem;
  transition: var(--transition);
}
.ai-pill:hover { background: rgba(255,255,255,.12); border-color: rgba(126,200,227,.3); }
.ai-pill-icon { color: var(--gold); font-size: 1.4rem; margin-top: .1rem; flex-shrink: 0; }
.ai-pill h5 { font-family: var(--font-display); color: var(--white); font-size: 1rem; margin-bottom: .2rem; }
.ai-pill p  { color: rgba(255,255,255,.6); font-size: .88rem; line-height: 1.6; }
.ai-img-wrap {
  border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, rgba(245,197,24,.15) 0%, rgba(126,200,227,.15) 100%);
  height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.ai-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ai-cta-bar {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 16px; padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-top: 3.5rem;
}
.ai-cta-bar h4 { font-family: var(--font-display); color: var(--navy); font-size: 1.4rem; margin: 0; }
.ai-cta-bar p  { color: var(--navy); opacity: .7; font-size: .95rem; margin: .3rem 0 0; }

/* ---------- 11. WHY US ---------- */
#perche-noi { padding: 100px 0; background: var(--white); }
.benefit-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.5rem; border-radius: var(--radius);
  transition: var(--transition);
}
.benefit-item:hover { background: var(--off-white); }
.benefit-num {
  font-family: var(--font-display); font-weight: 900; font-size: 2.2rem;
  color: var(--gold); line-height: 1; min-width: 3rem; flex-shrink: 0;
}
.benefit-body h5 { font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; margin-bottom: .4rem; }
.benefit-body p  { font-size: .95rem; }
.why-img-wrap {
  border-radius: 20px; overflow: hidden; position: relative;
}
.why-img-wrap img { width: 100%; height: 480px; object-fit: cover; }
.why-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(21,39,66,.55) 100%);
}
.why-review {
  position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius); padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-md);
}
.stars i { color: var(--gold); font-size: .9rem; }
.why-review p { font-size: .88rem; color: var(--gray-800); margin: .5rem 0 .4rem; font-style: italic; }
.why-review-author { font-size: .78rem; color: var(--gray-500); font-family: var(--font-display); font-weight: 600; }

/* ---------- 12. STATS BAND ---------- */
#stats-band {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 60px 0;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-item .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); line-height: 1;
}
.stat-item .label { color: var(--navy); opacity: .75; font-size: .9rem; margin-top: .4rem; }

/* ---------- 13. CONTACT / LEAD ---------- */
#contatto { padding: 100px 0; background: var(--off-white); }
.contact-card {
  background: var(--white); border-radius: 24px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.contact-left {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, #1a4a7a 100%);
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.contact-left h3 { color: var(--white); font-size: 1.8rem; margin-bottom: 1rem; }
.contact-left p  { color: rgba(255,255,255,.7); font-size: 1rem; }
.contact-info-item {
  display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.5rem;
}
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem; flex-shrink: 0;
}
.contact-info-text strong { display: block; color: var(--white); font-family: var(--font-display); font-size: .9rem; margin-bottom: .1rem; }
.contact-info-text span  { color: rgba(255,255,255,.65); font-size: .88rem; }
.contact-info-text a { color: rgba(255,255,255,.65); transition: var(--transition); }
.contact-info-text a:hover { color: var(--gold); }
.contact-right { padding: 3rem 2.5rem; }
.contact-right h3 { color: var(--navy); font-size: 1.6rem; margin-bottom: .5rem; }
.contact-right .sub { color: var(--gray-500); margin-bottom: 2rem; font-size: .97rem; }
.form-control-custom {
  width: 100%; padding: .85rem 1.2rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .97rem;
  color: var(--gray-800); background: var(--off-white);
  transition: var(--transition); outline: none;
  margin-bottom: 1rem;
}
.form-control-custom:focus { border-color: var(--sky); background: var(--white); box-shadow: 0 0 0 3px rgba(126,200,227,.2); }
select.form-control-custom { -webkit-appearance: none; appearance: none; cursor: pointer; }
textarea.form-control-custom { resize: vertical; min-height: 110px; }
.form-label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--navy); margin-bottom: .4rem; }
.wa-block {
  background: linear-gradient(135deg, #e8fff2 0%, #d4f7e7 100%);
  border: 1px solid #a8e6c8; border-radius: var(--radius);
  padding: 1.2rem 1.5rem; margin-top: 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.wa-block p { color: #1a5c3a; font-size: .9rem; margin: 0; }
.wa-block strong { color: #145232; }

/* ---------- 14. FOOTER ---------- */
#footer {
  background: var(--navy); padding: 60px 0 0;
}
.footer-brand-desc { color: rgba(255,255,255,.6); font-size: .93rem; line-height: 1.75; margin-top: .8rem; max-width: 280px; }
.footer-title { font-family: var(--font-display); color: var(--gold); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links li + li { margin-top: .5rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 0; margin-top: 3rem;
}
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .82rem; margin: 0; }
.social-links { display: flex; gap: .6rem; margin-top: 1rem; }
.social-links a {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); font-size: 1rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy); }

/* ---------- 15. COOKIE BAR ---------- */
#cookieBar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(21,39,66,.97);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-top: 3px solid var(--gold);
  transform: translateY(100%); transition: transform .5s cubic-bezier(.4,0,.2,1);
}
#cookieBar.visible { transform: translateY(0); }
#cookieBar p { color: rgba(255,255,255,.8); font-size: .88rem; margin: 0; }
#cookieBar a { color: var(--sky); text-decoration: underline; }
.btn-cookie-accept {
  background: var(--gold); color: var(--navy);
  font-family: var(--font-display); font-weight: 700; font-size: .88rem;
  border: none; border-radius: 50px; padding: .5rem 1.4rem;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-cookie-accept:hover { background: var(--gold-dark); }
.btn-cookie-decline { background: transparent; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.2); border-radius: 50px; padding: .5rem 1.2rem; font-size: .88rem; cursor: pointer; transition: var(--transition); white-space: nowrap; font-family: var(--font-body); }
.btn-cookie-decline:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.4); }

/* ---------- 16. FLOATING WA BUTTON ---------- */
.wa-float {
  position: fixed; bottom: 90px; right: 24px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.7rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--transition); cursor: pointer;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.12) rotate(-5deg); box-shadow: 0 8px 30px rgba(37,211,102,.6); color: #fff; }
.wa-float-pulse {
  position: absolute; width: 100%; height: 100%; border-radius: 50%;
  background: rgba(37,211,102,.4); animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.8);opacity:0} }

/* ---------- 17. SCROLL TO TOP ---------- */
#scrollTop {
  position: fixed; bottom: 24px; right: 24px; z-index: 998;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy-mid); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
  border: none;
}
#scrollTop.visible { opacity: 1; visibility: visible; }
#scrollTop:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* ---------- 18. ANIMATIONS ---------- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-30px); transition: opacity .7s ease, transform .7s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { opacity: 0; transform: translateX(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: .15s !important; }
.delay-2 { transition-delay: .3s !important; }
.delay-3 { transition-delay: .45s !important; }
.delay-4 { transition-delay: .6s !important; }

/* Prevent animated elements from causing horizontal overflow before they appear */
@media (max-width: 991.98px) {
  .fade-in-left, .fade-in-right {
    transform: translateY(20px); /* Use vertical only on mobile */
  }
  .fade-in-left.visible, .fade-in-right.visible {
    transform: translateY(0);
  }
}

/* Clip overflow at section level to prevent any child from breaking layout */
section, #hero, #about, #servizi, #intelligenza-artificiale, #perche-noi, #contatto, #stats-band {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  #hero { padding-top: 100px; padding-bottom: 60px; }
  .hero-visual { margin-top: 3rem; }
  .chip-float { display: none; }
  .contact-left { padding: 2.5rem 2rem; }
  .contact-right { padding: 2.5rem 2rem; }
  .ai-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
  .hero-main-card { max-width: 100%; }
  .contact-card { overflow: hidden; }
}
@media (max-width: 767.98px) {
  #hero { text-align: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-stat-divider { display: none; }
  .about-badge-float { display: none; }
  .ai-cta-bar { flex-direction: column; text-align: center; }
  .wa-block { flex-direction: column; }
  .contact-left h3 { font-size: 1.4rem; }
  .ai-img-wrap { height: 280px; }
  .why-img-wrap img { height: 320px; }
  .about-img-wrap img { height: 300px; }
  #stats-band .row { --bs-gutter-x: .5rem; }
}
@media (max-width: 575.98px) {
  .btn-gold, .btn-outline-sky, .btn-whatsapp { width: 100%; justify-content: center; }
  .hero-cta-group { flex-direction: column; }
  .service-card { padding: 1.7rem; }
  .ai-cta-bar { padding: 1.5rem; }
  .contact-left { padding: 2rem 1.4rem; }
  .contact-right { padding: 2rem 1.4rem; }
  .footer-bottom .row > div:last-child { margin-top: .5rem; }
}
