/* ===================================================
   Portoni Smart Firenze — Custom CSS
   Colori: Terracotta, Oro, Crema — Firenze
   =================================================== */

/* Google Fonts caricati da index.html */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary-color: #C0522B;     /* terracotta */
  --secondary-color: #C9A84C;   /* oro */
  --accent-color: #8B3A1E;      /* terracotta scuro */
  --primary-dark: #7A3318;      /* terracotta molto scuro */
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-cream: #F5F0E8;
  --bg-dark: #1a1008;
  --gold: #C9A84C;
  --gold-light: #E8D49A;
  --cream: #F5F0E8;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ===== BASE ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

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

/* ===== NAVBAR ===== */
#mainNavbar {
  background: transparent;
  padding: 18px 0;
  transition: var(--transition);
}

#mainNavbar.scrolled {
  background: rgba(26, 16, 8, 0.97) !important;
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-light) !important;
  line-height: 1.2;
}
.navbar-brand span {
  color: var(--secondary-color);
}
.navbar-brand small {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.4rem 1rem !important;
  font-weight: 400;
  transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
}

.navbar-nav .nav-link.btn-contatto {
  background: var(--primary-color);
  color: #fff !important;
  border-radius: 25px;
  padding: 0.45rem 1.2rem !important;
  margin-left: 0.5rem;
}
.navbar-nav .nav-link.btn-contatto:hover {
  background: var(--accent-color);
  color: #fff !important;
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
}
.navbar-toggler-icon {
  filter: invert(1);
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1008 0%, #3D1F0E 35%, #6B3320 65%, #C0522B 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,168,76,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(192,82,43,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Archi fiorentini decorativi */
.hero-arch {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border: 2px solid rgba(201,168,76,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.hero-arch::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(201,168,76,0.10);
  border-radius: 50%;
}
.hero-arch::after {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px solid rgba(201,168,76,0.07);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 25px;
  margin-bottom: 1.5rem;
  font-family: 'Lato', sans-serif;
}

#hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
#hero h1 .highlight {
  color: var(--secondary-color);
}

#hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5rem;
}
.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.hero-feature-item i {
  color: var(--secondary-color);
  font-size: 1rem;
}

.btn-primary-custom {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(192,82,43,0.4);
}
.btn-primary-custom:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192,82,43,0.5);
  color: #fff;
}

.btn-secondary-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(201,168,76,0.6);
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Lato', sans-serif;
  transition: var(--transition);
}
.btn-secondary-custom:hover {
  border-color: var(--secondary-color);
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero device mockup */
.hero-device {
  position: relative;
  text-align: center;
}
.hero-device-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
}
.hero-device-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(192,82,43,0.4);
}
.hero-device-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 10px;
}
.hero-device-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.hero-price-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--secondary-color);
  color: #1a1008;
  border-radius: 50px;
  padding: 10px 18px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}
.hero-tech-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.hero-tech-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  margin: 1rem auto 1.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-color);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ===== IL PROBLEMA / LA SOLUZIONE ===== */
#problema {
  background: var(--bg-cream);
  padding: 90px 0;
}
.problema-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-color);
}
.problema-card.soluzione {
  border-top-color: var(--secondary-color);
  background: linear-gradient(135deg, #fff 0%, #fdf8f0 100%);
}
.problema-card .icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.problema-card .icon-box.red { background: rgba(192,82,43,0.1); color: var(--primary-color); }
.problema-card .icon-box.gold { background: rgba(201,168,76,0.15); color: var(--secondary-color); }
.problema-card h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.problema-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.problema-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
  line-height: 1.5;
}
.problema-list li:last-child { border-bottom: none; }
.problema-list li i { margin-top: 3px; flex-shrink: 0; }

/* ===== COME FUNZIONA ===== */
#come-funziona {
  background: #fff;
  padding: 90px 0;
}
.steps-container {
  position: relative;
}
.step-item {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}
.step-item:last-child { margin-bottom: 0; }
.step-number {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(192,82,43,0.35);
  position: relative;
  z-index: 1;
}
.step-line {
  position: absolute;
  left: 28px;
  top: 58px;
  bottom: -40px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), transparent);
  opacity: 0.25;
}
.step-item:last-child .step-line { display: none; }
.step-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.step-content p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.funziona-visual {
  background: linear-gradient(135deg, var(--bg-cream) 0%, #fff 100%);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(201,168,76,0.2);
  text-align: center;
}
.funziona-phone {
  width: 140px;
  height: 240px;
  background: var(--bg-dark);
  border-radius: 24px;
  margin: 0 auto 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--secondary-color);
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.funziona-phone::before {
  content: '';
  position: absolute;
  top: 12px;
  width: 40px;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.funziona-phone .phone-screen {
  width: 100px;
  height: 140px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.funziona-phone .phone-btn {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(192,82,43,0.6);
}
.funziona-phone .phone-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.funziona-arrow {
  font-size: 2rem;
  color: var(--secondary-color);
  margin: 10px 0;
}
.funziona-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 15px;
}
.gate-panel {
  width: 55px;
  height: 80px;
  background: rgba(201,168,76,0.15);
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

/* ===== TECNOLOGIA ===== */
#tecnologia {
  background: var(--bg-cream);
  padding: 90px 0;
}
.tech-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 35px;
  height: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.tech-card.gsm::before { background: linear-gradient(90deg, var(--primary-color), #e07050); }
.tech-card.wifi::before { background: linear-gradient(90deg, var(--secondary-color), #e8c86a); }
.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.tech-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 22px;
}
.tech-icon.gsm { background: rgba(192,82,43,0.1); color: var(--primary-color); }
.tech-icon.wifi { background: rgba(201,168,76,0.15); color: #B8942A; }
.tech-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.tech-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.tech-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tech-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  padding: 5px 0;
  color: var(--text-dark);
}
.tech-features li i { color: var(--secondary-color); font-size: 0.8rem; }

.tech-combined {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, #6B3320 100%);
  border-radius: var(--radius);
  padding: 50px 40px;
  color: #fff;
  text-align: center;
  margin-top: 40px;
  box-shadow: 0 10px 40px rgba(192,82,43,0.3);
}
.tech-combined h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #fff;
}
.tech-combined p {
  opacity: 0.85;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== PERCHÉ SCEGLIERCI ===== */
#vantaggi {
  background: #fff;
  padding: 90px 0;
}
.vantaggio-card {
  text-align: center;
  padding: 35px 25px;
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid transparent;
}
.vantaggio-card:hover {
  background: var(--bg-cream);
  border-color: rgba(201,168,76,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.vantaggio-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(192,82,43,0.1), rgba(201,168,76,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0 auto 18px;
  transition: var(--transition);
}
.vantaggio-card:hover .vantaggio-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
}
.vantaggio-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Playfair Display', serif;
}
.vantaggio-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===== PREZZI ===== */
#prezzi {
  background: var(--bg-cream);
  padding: 90px 0;
}
.pricing-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.pricing-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}
.pricing-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 40px 50px;
  text-align: center;
}
.pricing-header .price {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
}
.pricing-header .price sup {
  font-size: 1.8rem;
  vertical-align: top;
  margin-top: 10px;
  font-weight: 400;
}
.pricing-header .price-note {
  font-size: 0.9rem;
  opacity: 0.8;
}
.pricing-header .price-name {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 10px;
}
.pricing-body {
  padding: 40px 50px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.95rem;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--secondary-color); font-size: 1rem; }
.pricing-note {
  background: rgba(201,168,76,0.1);
  border-left: 3px solid var(--secondary-color);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.pricing-cta {
  text-align: center;
}

/* ===== CONTATTI ===== */
#contatti {
  background: #fff;
  padding: 90px 0;
}
.contact-info-card {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 35px;
  height: 100%;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item h6 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: 'Lato', sans-serif;
}
.contact-info-item p, .contact-info-item a {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 600;
}
.contact-info-item a:hover { color: var(--primary-color); }

.contact-sopralluogo {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: var(--radius);
  padding: 25px 30px;
  color: #fff;
  text-align: center;
  margin-top: 20px;
}
.contact-sopralluogo h5 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.contact-sopralluogo p {
  font-size: 0.87rem;
  opacity: 0.85;
  margin: 0;
}

/* Form */
.contact-form {
  background: var(--bg-cream);
  border-radius: var(--radius);
  padding: 40px;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-control, .form-select {
  border: 1.5px solid #e0d8cc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.93rem;
  background: #fff;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(192,82,43,0.12);
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-check-label {
  font-size: 0.83rem;
  color: var(--text-muted);
}
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Map */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 40px;
}
.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: none;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.footer-brand span { color: var(--secondary-color); }
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}
footer p { font-size: 0.9rem; line-height: 1.7; }
footer h6 {
  font-family: 'Playfair Display', serif;
  color: var(--secondary-color);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,168,76,0.25);
}
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer ul li {
  margin-bottom: 8px;
}
footer ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: var(--transition);
}
footer ul li a:hover { color: var(--secondary-color); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.footer-contact-item i { color: var(--secondary-color); width: 16px; }
.footer-contact-item a { color: rgba(255,255,255,0.65); }
.footer-contact-item a:hover { color: var(--secondary-color); }

.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--secondary-color); }

/* ===== ANIMAZIONI ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FORM SUCCESS ===== */
#form-success {
  display: none;
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--secondary-color);
  border-radius: var(--radius);
  padding: 20px 25px;
  text-align: center;
  color: #7A5A10;
  margin-top: 15px;
}

/* ===== SCROLL TO TOP ===== */
#scrollTop {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 42px;
  height: 42px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(192,82,43,0.4);
  transition: var(--transition);
}
#scrollTop:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}
#scrollTop.visible { display: flex; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  #hero {
    padding: 120px 0 60px;
    min-height: auto;
    text-align: center;
  }
  .hero-subtitle { max-width: 100%; }
  .hero-features { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-device { margin-top: 40px; }
  .hero-arch { display: none; }
  .steps-container { max-width: 500px; margin: 0 auto; }
  .pricing-header, .pricing-body { padding: 30px; }
  .contact-form { padding: 25px; }
}

@media (max-width: 767px) {
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-stats > div { text-align: center; }
  .pricing-header, .pricing-body { padding: 25px 20px; }
  .problema-card { padding: 28px 22px; }
  .tech-combined { padding: 35px 25px; }
  .contact-info-card { padding: 25px 20px; }
  footer { padding: 40px 0 0; }
}

@media (max-width: 575px) {
  .btn-primary-custom, .btn-secondary-custom {
    padding: 12px 22px;
    font-size: 0.92rem;
  }
  .hero-tech-badges { flex-wrap: wrap; }
  .section-title { font-size: 1.7rem; }
}

/* 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; } }

/* Colonna contatti: la card non forza il 100% di altezza, altrimenti il box Sopralluogo esce sotto la colonna */
.contact-info-card { height: auto; }

/* Torna su centrato sul FAB WhatsApp */
#scrollTop { right: 29px; }
@media (max-width: 576px) { #scrollTop { right: 19px; 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; }
