/* =============================================
   APERTURA REMOTA — custom.css
   ============================================= */

/* Google Fonts: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --primary-color:   #1e6b45;
  --primary-dark:    #154d31;
  --primary-light:   #2d8a5a;
  --secondary-color: #f0f7f3;
  --accent-color:    #3ab06e;
  --text-dark:       #1a1a2e;
  --text-light:      #ffffff;
  --text-muted:      #6c757d;
  --bg-light:        #f8f9fa;
  --bg-dark:         #0f2d1c;
  --gray-border:     #dee2e6;
  --card-shadow:     0 4px 20px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 32px rgba(30,107,69,0.18);
  --radius:          12px;
  --radius-lg:       20px;
  --transition:      0.3s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  background: transparent;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 45, 28, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.navbar-brand .brand-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.05em;
  line-height: 1;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem !important;
  transition: color var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35rem 0.6rem;
}

.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='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-nav-cta {
  background: var(--accent-color);
  color: #fff !important;
  border-radius: 8px;
  padding: 0.45rem 1.1rem !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
}

.btn-nav-cta:hover {
  background: #2d9a5e;
  transform: translateY(-1px);
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a4d2e 50%, #1e6b45 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(58,176,110,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30,107,69,0.2) 0%, transparent 40%);
}

/* Grid pattern overlay */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(58,176,110,0.15);
  border: 1px solid rgba(58,176,110,0.4);
  color: #6ee9a0;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: #3ab06e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  color: var(--accent-color);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-hero-primary:hover {
  background: #2d9a5e;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58,176,110,0.35);
}

.btn-hero-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
  padding: 0.85rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-hero-secondary:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat .value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* Hero visual (right column) */
.hero-visual {
  position: relative;
  z-index: 2;
}

.device-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.device-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.device-icon-wrap {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-color), #2d8a5a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

.device-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.device-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  margin: 0;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.status-row:last-child { border-bottom: none; }

.status-label {
  color: rgba(255,255,255,0.65);
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-label i {
  width: 16px;
  text-align: center;
  color: var(--accent-color);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.online {
  background: rgba(58,176,110,0.2);
  color: #6ee9a0;
}

.status-badge.standby {
  background: rgba(255,193,7,0.15);
  color: #ffd54f;
}

.status-badge.ok {
  background: rgba(13,110,253,0.15);
  color: #90caf9;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.signal-bars span {
  width: 4px;
  background: var(--accent-color);
  border-radius: 1px;
  display: block;
}

.signal-bars span:nth-child(1) { height: 6px; }
.signal-bars span:nth-child(2) { height: 10px; }
.signal-bars span:nth-child(3) { height: 14px; }
.signal-bars span:nth-child(4) { height: 18px; opacity: 0.4; }

.floating-tag {
  position: absolute;
  background: #fff;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}

.floating-tag { z-index: 3; }
.floating-tag i { color: var(--accent-color); }

.floating-tag-1 {
  top: -15px;
  right: -10px;
  animation-delay: 0s;
}

.floating-tag-2 {
  bottom: 20px;
  left: -15px;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =============================================
   SECTION COMMONS
   ============================================= */
section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  padding: 0.3rem 0.9rem;
  background: rgba(30,107,69,0.08);
  border-radius: 50px;
  border: 1px solid rgba(30,107,69,0.15);
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* =============================================
   COME FUNZIONA — STEPS
   ============================================= */
.steps-section {
  background: var(--secondary-color);
}

.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
}

.step-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  top: 24px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  z-index: 1;
}

/* =============================================
   TECNOLOGIA DUAL-BAND
   ============================================= */
.tech-section { background: #fff; }

.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.tech-card {
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}

.tech-card:hover { transform: translateY(-3px); }

.tech-card.gsm {
  background: linear-gradient(135deg, #0f2d1c, #1e6b45);
  color: #fff;
}

.tech-card.wifi {
  background: linear-gradient(135deg, #1a3a5c, #1e5fa0);
  color: #fff;
}

.tech-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.tech-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tech-card p {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tech-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  margin: 0.15rem;
}

.dual-band-box {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius);
  padding: 2rem;
  color: #fff;
  text-align: center;
  margin-top: 1.5rem;
}

.dual-band-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dual-band-box p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0;
}

/* Feature list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.95rem;
  color: var(--text-dark);
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li .feature-icon {
  width: 28px;
  height: 28px;
  background: rgba(30,107,69,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* =============================================
   VANTAGGI — GRID
   ============================================= */
.vantaggi-section { background: var(--secondary-color); }

.vantaggio-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}

.vantaggio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.vantaggio-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.vi-green { background: rgba(30,107,69,0.1); color: var(--primary-color); }
.vi-blue  { background: rgba(13,110,253,0.1); color: #0d6efd; }
.vi-orange{ background: rgba(255,127,0,0.1); color: #ff7f00; }
.vi-teal  { background: rgba(32,178,170,0.1); color: #20b2aa; }
.vi-purple{ background: rgba(111,66,193,0.1); color: #6f42c1; }
.vi-red   { background: rgba(220,53,69,0.1); color: #dc3545; }

.vantaggio-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.vantaggio-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* =============================================
   PRICING
   ============================================= */
.pricing-section { background: #fff; }

.price-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--bg-dark), var(--primary-color));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.price-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -30px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.price-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}

.price-amount {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.price-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  font-family: 'Space Grotesk', sans-serif;
}

.price-suffix {
  font-size: 0.9rem;
  margin-top: auto;
  margin-bottom: 0.6rem;
  opacity: 0.65;
}

.price-unit {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 2rem;
}

.price-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.price-includes li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.price-includes li:last-child { border-bottom: none; }

.price-includes li i {
  color: var(--accent-color);
  font-size: 0.85rem;
  width: 16px;
}

.btn-price-cta {
  width: 100%;
  background: #fff;
  color: var(--primary-dark);
  border: none;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.btn-price-cta:hover {
  background: #e8f5ee;
  transform: translateY(-2px);
}

.sopralluogo-box {
  background: var(--secondary-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-left: 4px solid var(--accent-color);
  height: 100%;
}

.sopralluogo-box h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.sopralluogo-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* =============================================
   FAQ
   ============================================= */
.faq-section { background: var(--secondary-color); }

.accordion-item {
  border: 1px solid #e0e8e3 !important;
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-dark) !important;
  background: #fff !important;
  padding: 1.1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color) !important;
  box-shadow: none !important;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231e6b45'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  background: #fff;
  padding: 0 1.25rem 1.25rem;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* =============================================
   CONTATTI & FORM
   ============================================= */
.contatti-section { background: #fff; }

.contact-info-card {
  background: var(--secondary-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: box-shadow var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--card-shadow);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-info-card h6 {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-card p, .contact-info-card a {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.contact-info-card a:hover { color: var(--primary-color); }

.contact-form-wrap {
  background: var(--secondary-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  border: 1.5px solid #d0dbd3;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30,107,69,0.12);
  outline: none;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,107,69,0.3);
}

.form-success-msg {
  display: none;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  margin-top: 1rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  height: 280px;
  margin-top: 1rem;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.footer-brand-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.footer-brand-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact-item i {
  color: var(--accent-color);
  width: 14px;
  text-align: center;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-contact-item a:hover { color: #fff; }

.footer-heading {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover { color: var(--accent-color); }

.footer-links a i { font-size: 0.7rem; }

.footer-iva {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

.footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 0;
}

.footer-bottom {
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   ANIMATIONS (IntersectionObserver classes)
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.fade-in.visible { opacity: 1; }

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
  .hero-visual { margin-top: 2.5rem; }
  .floating-tag { display: none; }
  .tech-split { grid-template-columns: 1fr; }
  .step-connector { display: none; }
}

@media (max-width: 767.98px) {
  section { padding: 56px 0; }
  .hero-content { padding: 100px 0 60px; }
  .hero-cta-group { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem 2rem; }
  .contact-form-wrap { padding: 1.5rem; }
  .price-card { padding: 1.75rem; }
}

@media (max-width: 575.98px) {
  .navbar-collapse { background: rgba(15,45,28,0.97); padding: 1rem; border-radius: 0 0 12px 12px; }
  .device-card { padding: 1.25rem; }
}

/* Servizi collegati */
.servizi-collegati { background: #f5f6f8; }
.servizi-collegati-title { color: #1f2328; font-weight: 700; }
.servizi-collegati-intro { color: #4a5058; max-width: 640px; margin-left: auto; margin-right: auto; }
.servizio-card { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem; background: #fff; border: 1px solid #e1e4e8; border-radius: 12px; color: #3d434a; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.servizio-card:hover, .servizio-card:focus { color: #3d434a; box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.servizio-card-title { font-weight: 700; font-size: 1.15rem; color: var(--primary-color); }
.servizio-card-link { margin-top: auto; font-weight: 600; color: var(--primary-color); }

/* Badge reCAPTCHA nascosto: la nota sotto il form riporta privacy e termini di Google */
.grecaptcha-badge { visibility: hidden !important; }

/* WhatsApp FAB */
.wa-fab { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 9998; transition: transform 0.2s; text-decoration: none; }
.wa-fab:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 576px) { .wa-fab { width: 50px; height: 50px; font-size: 24px; right: 15px; bottom: 15px; } }

/* Form v2: toggle canale Messaggio / WhatsApp */
.form-channel-toggle { display: inline-flex; background: rgba(0,0,0,0.06); border-radius: 999px; padding: 4px; margin-bottom: 1.25rem; gap: 2px; }
.form-channel-toggle .channel-btn { border: none; background: transparent; color: #5f6670; padding: 8px 20px; border-radius: 999px; font-weight: 500; font-size: 0.92rem; cursor: pointer; transition: all 0.25s ease; display: inline-flex; align-items: center; }
.form-channel-toggle .channel-btn:hover { color: #1f2328; }
.form-channel-toggle .channel-btn.active { background: var(--primary-color, #1A1A1A); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.form-channel-toggle .channel-btn[data-channel="whatsapp"].active { background: #1a7f45; color: #fff; box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35); }
form[data-channel="whatsapp"] [type="submit"] { background: #1a7f45 !important; border-color: #1a7f45 !important; color: #fff !important; }
.channel-feedback { font-size: 0.9rem; }
@media (max-width: 480px) { .form-channel-toggle .channel-btn { padding: 7px 14px; font-size: 0.85rem; } }

/* Torna su: sopra il FAB WhatsApp, centrato sullo stesso asse */
.back-to-top { position: fixed; right: 28px; bottom: 90px; width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--primary-color); color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer; z-index: 9997; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, visibility .25s, transform .25s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.1); }
@media (max-width: 576px) { .back-to-top { right: 18px; bottom: 78px; } }

/* Mobile senza scorrimento orizzontale: righe g-5 dentro il contenitore; clip rispettato anche da Safari iOS (hidden su body no) */
@media (max-width: 767.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
html, body { overflow-x: clip; }
