/* ============================================================
   TECH AI DIGITAL — Custom Design System
   Dark-Tech / Glassmorphism / Modern
   ============================================================ */

:root {
  --dark-bg: #050913;
  --dark-card: rgba(255,255,255,0.04);
  --dark-card-hover: rgba(255,255,255,0.08);
  --cyan: #00d4ff;
  --purple: #7c3aed;
  --pink: #f43f5e;
  --green: #10b981;
  --yellow: #f59e0b;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --gradient-pink: linear-gradient(135deg, #f43f5e 0%, #7c3aed 100%);
  --glow-cyan: 0 0 40px rgba(0,212,255,0.25);
  --glow-purple: 0 0 40px rgba(124,58,237,0.25);
}

/* ---- Reset & Base ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }

body.techai-body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
}

/* Wrapper per bloccare overflow orizzontale senza rompere position:fixed */
.page-wrap {
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- Typography ---- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-pink {
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-badge {
  display: inline-block;
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-badge.pink {
  background: rgba(244,63,94,0.12);
  color: var(--pink);
  border-color: rgba(244,63,94,0.3);
}
.section-badge.purple {
  background: rgba(124,58,237,0.12);
  color: #a78bfa;
  border-color: rgba(124,58,237,0.3);
}

/* ---- HEADER / NAVBAR ---- */
#header-new {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 0;
  transition: all 0.4s;
}
#header-new.scrolled {
  background: rgba(5,9,19,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.5px;
}
.nav-logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-links .nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.nav-links .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,0.45); background: rgba(255,255,255,0.07) !important; }
/* Dropdown */
.nav-links .dropdown { position: relative; }
.nav-links .dropdown > a::after { content: ' ▾'; font-size: 0.7rem; }
.nav-links .dropdown-menu-custom {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: rgba(10,14,30,0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  z-index: 999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-links .dropdown:hover .dropdown-menu-custom { display: block; }
.dropdown-menu-custom a {
  display: block;
  color: var(--text-muted) !important;
  padding: 9px 14px !important;
  border-radius: 8px;
  font-size: 0.86rem !important;
}
.dropdown-menu-custom a:hover { color: #fff !important; background: rgba(0,212,255,0.1) !important; }
/* Mobile nav */
.nav-mobile-toggle { display: none; background: none; border: 1px solid var(--border); color: #fff; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; }
@media (max-width: 991px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: rgba(5,9,19,0.98); backdrop-filter: blur(20px); padding: 80px 24px 40px; gap: 4px; z-index: 998; transform: translateX(100%); transition: transform 0.35s; overflow-y: auto; }
  .nav-links.open { display: flex; transform: translateX(0); }
  .nav-mobile-toggle { display: block; position: relative; z-index: 1001; }
  .nav-links .dropdown-menu-custom { position: static; background: rgba(255,255,255,0.04); box-shadow: none; border: none; border-radius: 10px; margin-top: 4px; display: none; }
  .nav-links .dropdown.open .dropdown-menu-custom { display: block; }
}
/* Overlay backdrop per menu mobile */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 997;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
#nav-overlay.show { display: block; }

/* ---- HERO ---- */
#hero-new {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden; /* contiene i glow radiali assoluti */
  background: var(--dark-bg);
  padding: 120px 0 80px;
}

/* Sezioni con elementi assoluti decorativi: contieni il loro overflow */
.stats-bar { overflow: hidden; }
.repair-banner { overflow: hidden; } /* già presente ma lo forziamo */
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}
.hero-glow-1 {
  position: absolute; top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute; bottom: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
  animation: floatGlow 10s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}
.hero-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 40px; height: 2px; background: var(--gradient); }
.hero-h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 24px; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; max-width: 520px; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.btn-primary-new {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 12px; text-decoration: none;
  transition: all 0.3s; box-shadow: 0 8px 30px rgba(0,212,255,0.3);
  border: none; cursor: pointer;
}
.btn-primary-new:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,212,255,0.45); }
.btn-ghost-new {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 12px; text-decoration: none;
  transition: all 0.3s; backdrop-filter: blur(10px);
}
.btn-ghost-new:hover { color: var(--cyan); border-color: rgba(0,212,255,0.4); background: rgba(0,212,255,0.08); }
.btn-pink-new {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-pink); color: #fff; font-weight: 700; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 12px; text-decoration: none;
  transition: all 0.3s; box-shadow: 0 8px 30px rgba(244,63,94,0.3);
  border: none; cursor: pointer;
}
.btn-pink-new:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 40px rgba(244,63,94,0.45); }
.hero-trust { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.hero-trust-item i { color: var(--cyan); }
.hero-visual { position: relative; }
.hero-card-float {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-15px)} }
.hero-card-float .stat-num { font-size: 2.2rem; font-weight: 800; }
.hero-mini-card {
  position: absolute;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.hero-mini-card.top-right { top: -20px; right: -20px; animation: float 5s ease-in-out 1s infinite; }
.hero-mini-card.bottom-left { bottom: -20px; left: -30px; animation: float 7s ease-in-out 2s infinite; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 2.6rem; font-weight: 800; display: block; }
.stat-item .label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; letter-spacing: 1px; }

/* ---- GLASS CARD ---- */
.glass-card {
  background: var(--dark-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.35s;
  height: 100%;
}
.glass-card:hover {
  background: var(--dark-card-hover);
  border-color: rgba(0,212,255,0.2);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,212,255,0.1);
}
.glass-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.glass-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.glass-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.glass-card .card-link { font-size: 0.82rem; color: var(--cyan); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; transition: gap 0.2s; }
.glass-card .card-link:hover { gap: 10px; }

/* ---- SECTION COMMON ---- */
.section-new { padding: 100px 0; }
.section-new.bg-darker { background: rgba(0,0,0,0.3); }
.section-header { margin-bottom: 60px; }
.section-title-new { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.2; }
.section-desc { font-size: 1rem; color: var(--text-muted); max-width: 540px; line-height: 1.7; }

/* ---- ABOUT ---- */
.about-feature { display: flex; gap: 16px; margin-bottom: 24px; }
.about-feature .icon { width: 44px; height: 44px; min-width: 44px; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 1.1rem; }
.about-feature h5 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.about-feature p { font-size: 0.84rem; color: var(--text-muted); margin: 0; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: 24px; width: 100%; object-fit: cover; max-height: 480px; }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--gradient);
  color: #fff; border-radius: 16px; padding: 20px 24px;
  font-weight: 800; text-align: center; min-width: 140px;
  box-shadow: 0 12px 40px rgba(0,212,255,0.35);
}

/* ---- RIPARAZIONE PC BANNER ---- */
.repair-banner {
  background: linear-gradient(135deg, #1a0510 0%, #0d0318 50%, #050913 100%);
  border: 1px solid rgba(244,63,94,0.2);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.repair-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(244,63,94,0.12) 0%, transparent 60%);
}
.repair-banner-inner { position: relative; z-index: 1; padding: 70px 60px; }
.repair-sos { display: inline-flex; align-items: center; gap: 10px; background: rgba(244,63,94,0.15); border: 1px solid rgba(244,63,94,0.4); color: #ff6b7a; border-radius: 50px; padding: 8px 20px; font-size: 0.82rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px; }
.repair-sos::before { content: ''; width: 8px; height: 8px; background: #f43f5e; border-radius: 50%; animation: pulse-dot 1.5s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }
.repair-features { margin-top: 32px; }
.repair-feature-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; color: var(--text-muted); }
.repair-feature-item i { color: #f43f5e; }
.repair-visual { display: flex; align-items: center; justify-content: center; height: 100%; }
.repair-icon-big { font-size: 8rem; color: rgba(244,63,94,0.3); display: block; text-align: center; animation: float 5s ease-in-out infinite; }
.repair-phone-box { background: rgba(244,63,94,0.1); border: 1px solid rgba(244,63,94,0.3); border-radius: 20px; padding: 28px 32px; text-align: center; margin-top: 20px; }
.repair-phone-box .phone-num { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; display: block; margin: 10px 0; }
@media (max-width: 768px) { .repair-banner-inner { padding: 40px 24px; } }

/* ---- PORTFOLIO ---- */
.portfolio-item {
  border-radius: 20px; overflow: hidden; position: relative;
  background: var(--dark-card);
  border: 1px solid var(--border);
  transition: all 0.35s;
}
.portfolio-item:hover { border-color: rgba(0,212,255,0.3); transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.portfolio-item img { width: 100%; height: 220px; object-fit: cover; display: block; }
.portfolio-overlay { padding: 20px; }
.portfolio-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--cyan); font-weight: 600; }
.portfolio-item h5 { font-size: 0.95rem; font-weight: 700; margin: 6px 0 4px; }
.portfolio-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ---- TEAM ---- */
.team-card { text-align: center; }
.team-card img { width: 100%; height: 260px; object-fit: cover; object-position: top; border-radius: 20px 20px 0 0; }
.team-card-body { background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-top: 0; border-radius: 0 0 20px 20px; padding: 20px; }
.team-card-body h5 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.team-card-body span { font-size: 0.8rem; color: var(--cyan); }
.team-card-body .social { margin-top: 12px; }
.team-card-body .social a { color: var(--text-muted); font-size: 1rem; margin: 0 5px; transition: color 0.2s; }
.team-card-body .social a:hover { color: var(--cyan); }

/* ---- FAQ ---- */
.faq-item-new {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item-new.active { border-color: rgba(0,212,255,0.3); }
.faq-question {
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 600; font-size: 0.95rem;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(255,255,255,0.06); }
.faq-question i { transition: transform 0.3s; color: var(--cyan); }
.faq-item-new.active .faq-question i { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; padding: 0 24px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.faq-item-new.active .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ---- CONTACT ---- */
.contact-form-new .form-control-new {
  width: 100%; padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px; color: #fff;
  font-size: 0.9rem; margin-bottom: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'Poppins', sans-serif;
  outline: none;
}
.contact-form-new .form-control-new::placeholder { color: var(--text-muted); }
.contact-form-new .form-control-new:focus { border-color: rgba(0,212,255,0.5); box-shadow: 0 0 0 4px rgba(0,212,255,0.1); }
.contact-form-new textarea.form-control-new { resize: vertical; min-height: 130px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-info-item .icon { width: 48px; height: 48px; min-width: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-info-item h5 { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-info-item a, .contact-info-item p { color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none; margin: 0; }

/* ---- FOOTER ---- */
.footer-new {
  background: rgba(0,0,0,0.5);
  border-top: 1px solid var(--border);
  padding: 70px 0 0;
}
.footer-new .footer-logo { font-size: 1.5rem; font-weight: 800; color: #fff; text-decoration: none; display: block; margin-bottom: 14px; }
.footer-new p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }
.footer-new h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 20px; font-weight: 600; }
.footer-new ul { list-style: none; }
.footer-new ul li { margin-bottom: 10px; }
.footer-new ul a { color: rgba(255,255,255,0.6); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-new ul a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 50px; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer-social a { color: rgba(255,255,255,0.4); font-size: 1.1rem; margin-left: 14px; transition: color 0.2s; }
.footer-social a:hover { color: var(--cyan); }
.footer-newsletter input[type="email"] {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); border-right: 0;
  padding: 11px 16px; color: #fff; border-radius: 10px 0 0 10px; font-size: 0.85rem;
  outline: none; font-family: 'Poppins', sans-serif; width: calc(100% - 90px);
}
.footer-newsletter input[type="email"]::placeholder { color: var(--text-muted); }
.footer-newsletter button { background: var(--gradient); color: #fff; border: none; padding: 11px 18px; border-radius: 0 10px 10px 0; font-weight: 600; font-size: 0.82rem; cursor: pointer; }

/* ---- FLOATING WHATSAPP ---- */
#wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: #fff; text-decoration: none;
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
  transition: all 0.3s;
  animation: pulse-wa 3s infinite;
}
#wa-float:hover { transform: scale(1.1); color: #fff; }
body.menu-open #wa-float { opacity: 0; pointer-events: none; transition: opacity 0.2s; }
@keyframes pulse-wa {
  0%,100%{ box-shadow: 0 8px 32px rgba(37,211,102,0.45); }
  50%{ box-shadow: 0 8px 48px rgba(37,211,102,0.7); }
}

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: rgba(5,9,19,0.97); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 20px 30px;
}

/* ---- UTILITIES ---- */
.text-cyan { color: var(--cyan) !important; }
.text-pink { color: var(--pink) !important; }
.text-muted-new { color: var(--text-muted) !important; }
.bg-cyan-subtle { background: rgba(0,212,255,0.08); }
.bg-pink-subtle { background: rgba(244,63,94,0.08); }
.bg-purple-subtle { background: rgba(124,58,237,0.08); }
.bg-green-subtle { background: rgba(16,185,129,0.08); }
.border-cyan { border-color: rgba(0,212,255,0.3) !important; }
.rounded-new { border-radius: 20px !important; }

/* ---- BACK TO TOP ---- */
#back-to-top {
  position: fixed; bottom: 96px; right: 28px; z-index: 9997;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.07); border: 1px solid var(--border);
  border-radius: 50%; display: none; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 1.1rem;
  transition: all 0.3s; backdrop-filter: blur(10px);
}
#back-to-top:hover { background: rgba(0,212,255,0.15); border-color: var(--cyan); }
#back-to-top.show { display: flex; }

/* ---- DIVIDER ---- */
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); margin: 0; border: none; }

/* ---- AOS override for dark ---- */
[data-aos] { will-change: transform; }

/* ---- RESPONSIVE FIXES ---- */

/* Immagini e media: mai più larghe del contenitore */
img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

/* Tablet (≤991px) */
@media (max-width: 991px) {
  /* Mini-card hero: decorative, escono dal viewport */
  .hero-mini-card { display: none; }

  /* About badge: rimuovi offset negativi */
  .about-badge {
    position: static;
    margin-top: 20px;
    display: inline-block;
    border-radius: 16px;
  }
  .about-img-wrap { padding-bottom: 0; }

  /* Repair banner */
  .repair-banner-inner { padding: 50px 32px; }

  /* Sezione team-card: contenuto non esce */
  .team-card img { height: 220px; }

  /* Dropdown nav: assicura non esca a destra */
  .nav-links .dropdown-menu-custom {
    left: auto;
    right: 0;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
  /* Bottoni fissi: più piccoli e più vicini al bordo */
  #wa-float { width: 50px; height: 50px; font-size: 1.35rem; bottom: 20px; right: 16px; }
  #back-to-top { bottom: 80px; right: 16px; width: 38px; height: 38px; font-size: 1rem; }

  /* Stats bar */
  .stat-item .num { font-size: 1.9rem; }

  /* Sezioni: padding verticale ridotto */
  .section-new { padding: 64px 0; }

  /* Hero */
  .hero-card-float { max-width: 100% !important; }
  .hero-btns { flex-direction: column; }
  .hero-btns a { width: 100%; justify-content: center; text-align: center; }
  #hero-new { padding: 100px 0 60px; }

  /* Titoli sezioni: letterspacing ridotto per mobile */
  .section-title-new { letter-spacing: -0.5px; }

  /* Glass card: padding ridotto */
  .glass-card { padding: 24px 20px; }

  /* Repair banner */
  .repair-banner-inner { padding: 36px 20px; }

  /* Footer bottom: stack verticale */
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Griglia confronto fornitore/partner (index.php sezione partner) */
  .partner-grid-row { grid-template-columns: 1fr !important; }

  /* FAQ: testo non trabocca */
  .faq-question { font-size: 0.88rem; padding: 16px 18px; }
  .faq-answer { padding: 0 18px; }
  .faq-item-new.active .faq-answer { padding: 0 18px 16px; }

  /* Bottoni generici: full width su mobile quando in flex-wrap */
  .btn-primary-new, .btn-ghost-new, .btn-pink-new {
    font-size: 0.9rem;
    padding: 13px 22px;
  }

  /* Stats grid inline (chi-siamo, riparazioni) */
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Sezione subpage-hero: riduce padding */
  .subpage-hero { padding: 110px 0 50px !important; }

}

/* Piccolo (≤480px) */
@media (max-width: 480px) {
  /* Testo hero più compatto */
  .hero-h1 { font-size: 2rem; letter-spacing: -1px; }
  .hero-sub { font-size: 0.95rem; }

  /* Griglia confronto gestionali: una colonna */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Pulsanti hero: font e padding ridotti */
  .btn-primary-new, .btn-ghost-new, .btn-pink-new {
    font-size: 0.85rem;
    padding: 12px 18px;
  }

  /* Stats bar: 2 colonne invece di 4 (già gestito da Bootstrap col-6) */
  .stat-item .num { font-size: 1.6rem; }
  .stat-item .label { font-size: 0.75rem; }

  /* Footer: testo più piccolo */
  .footer-new p, .footer-new ul a { font-size: 0.82rem; }

  /* Sezione partner: confronto a colonna singola */
  .partner-compare-grid { grid-template-columns: 1fr !important; gap: 8px !important; }
}
