/* ===================================================
   APERTURA REMOTA FIRENZE — Custom Stylesheet
   Colori: Bordeaux #7B2236, Oro #C9A84C, Crema #F5EDD6
   Font: Cinzel (headings) + Lato (body)
   =================================================== */

/* === VARIABILI === */
:root {
  --primary-color: #7B2236;
  --secondary-color: #C9A84C;
  --accent-color: #F5EDD6;
  --primary-dark: #5A1828;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #F8F4EC;
  --bg-dark: #1A0A0E;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.75;
}

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

a { color: var(--primary-color); transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

/* === PULSANTI === */
.btn-gold {
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  color: var(--text-dark);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 14px 36px;
  border-radius: 4px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover {
  background-color: #b8943e;
  border-color: #b8943e;
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.btn-bordeaux {
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  color: var(--text-light);
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 36px;
  border-radius: 4px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}
.btn-bordeaux:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123,34,54,0.3);
}

/* === NAVBAR === */
.navbar-custom {
  background-color: rgba(26,10,14,0.0);
  transition: background-color 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
  padding: 18px 0;
}
.navbar-custom.scrolled {
  background-color: var(--bg-dark);
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.navbar-custom .navbar-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-light) !important;
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.navbar-custom .navbar-brand span { color: var(--secondary-color); }
.navbar-custom .nav-link {
  color: rgba(255,255,255,0.88) !important;
  font-size: 0.88rem;
  letter-spacing: 0.4px;
  padding: 8px 14px !important;
  transition: var(--transition);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active { color: var(--secondary-color) !important; }
.navbar-custom .btn-nav {
  background-color: var(--secondary-color) !important;
  color: var(--text-dark) !important;
  font-weight: 700;
  border-radius: 4px;
  padding: 8px 20px !important;
  font-size: 0.85rem !important;
}
.navbar-custom .btn-nav:hover {
  background-color: #b8943e !important;
  color: var(--text-dark) !important;
}
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

/* === HERO === */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2E0A15 40%, #6B1A2A 75%, #8B2A3A 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 60%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 25%, rgba(201,168,76,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--secondary-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero-section h1 {
  font-size: 3rem;
  color: var(--text-light);
  line-height: 1.18;
  margin-bottom: 22px;
}
.hero-section h1 em {
  color: var(--secondary-color);
  font-style: normal;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  max-width: 560px;
  font-weight: 300;
  line-height: 1.8;
}
.hero-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 24px;
  margin-bottom: 32px;
}
.hero-price-amount {
  font-family: 'Cinzel', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
}
.hero-price-note {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.hero-ctas a.btn-outline-hero {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--text-light);
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.hero-ctas a.btn-outline-hero:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
}
.hero-features {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}
.hero-feature i { color: var(--secondary-color); font-size: 0.9rem; }

/* Phone mockup */
.hero-phone-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.phone-frame {
  width: 220px;
  height: 430px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(201,168,76,0.3),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: #111;
  border-radius: 4px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: #0c0c0c;
  border-radius: 26px;
  overflow: hidden;
  padding: 28px 14px 14px;
  display: flex;
  flex-direction: column;
}
.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.62rem;
  margin-bottom: 16px;
  padding: 0 4px;
}
.phone-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.app-logo {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.72rem;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.app-title {
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  margin-bottom: 18px;
  text-align: center;
}
.door-unlock-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-color), #a07c30);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
  animation: unlock-pulse 2.5s ease-in-out infinite;
  position: relative;
}
@keyframes unlock-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.2); }
  50% { box-shadow: 0 0 40px rgba(201,168,76,0.55); }
}
.door-unlock-btn i { color: var(--text-dark); font-size: 1.4rem; }
.door-unlock-btn span { color: var(--text-dark); font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.app-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  margin-bottom: 16px;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4caf50;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.app-stats {
  display: flex;
  gap: 12px;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.04);
}
.app-stats > div { display: flex; flex-direction: column; gap: 2px; }
.stat-label { color: rgba(255,255,255,0.3); font-size: 0.58rem; }
.stat-value { color: rgba(255,255,255,0.75); font-size: 0.62rem; font-weight: 600; }

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; }

/* === SEZIONI === */
section { padding: 84px 0; }
.section-cream { background-color: var(--bg-light); }
.section-white { background-color: #fff; }
.section-dark { background-color: var(--bg-dark); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2.1rem; color: var(--primary-color); margin-bottom: 10px; }
.section-header h2.on-dark { color: var(--text-light); }
.section-header .subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.section-header .subtitle.on-dark { color: rgba(255,255,255,0.65); }
.ornament-line {
  width: 56px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  margin: 12px auto 18px;
  border-radius: 2px;
}

/* === COME FUNZIONA (STEPS) === */
.process-section { background: #fff; }
.process-step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}
.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--secondary-color);
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(123,34,54,0.22);
}
.process-step h4 { font-size: 1.05rem; color: var(--primary-color); margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }
.process-arrow {
  position: absolute;
  top: 54px;
  right: -18px;
  color: var(--secondary-color);
  font-size: 1.4rem;
  display: none;
}
@media (min-width: 768px) { .process-arrow { display: block; } }

/* === TECNOLOGIA === */
.tech-card {
  background: #fff;
  border-radius: 14px;
  padding: 40px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border-top: 4px solid var(--secondary-color);
  height: 100%;
  transition: var(--transition);
}
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}
.tech-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.tech-icon i { color: var(--secondary-color); font-size: 1.7rem; }
.tech-card h4 { font-size: 1.25rem; color: var(--primary-color); margin-bottom: 12px; }
.tech-card > p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.tech-feature-list { list-style: none; padding: 0; margin: 0; }
.tech-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.93rem;
  color: var(--text-dark);
}
.tech-feature-list li i { color: var(--secondary-color); margin-top: 4px; flex-shrink: 0; font-size: 0.85rem; }

/* === VANTAGGI === */
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.benefit-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-left-color: var(--secondary-color);
  transform: translateX(4px);
}
.benefit-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 10px;
  background: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.benefit-icon i { color: var(--primary-color); font-size: 1.25rem; }
.benefit-text h5 { font-size: 0.97rem; color: var(--primary-color); margin-bottom: 4px; }
.benefit-text p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* === PREZZI === */
.pricing-section { background: var(--bg-light); }
.pricing-card {
  background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  border-radius: 20px;
  padding: 50px 44px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(123,34,54,0.32);
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid rgba(201,168,76,0.25);
  position: relative;
  overflow: hidden;
}
.pricing-card::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.pricing-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 22px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.pricing-amount {
  font-family: 'Cinzel', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 6px;
}
.pricing-note {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  margin-bottom: 36px;
}
.pricing-includes {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  text-align: left;
}
.pricing-includes li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}
.pricing-includes li:last-child { border-bottom: none; }
.pricing-includes li i { color: var(--secondary-color); width: 18px; flex-shrink: 0; }
.pricing-cta { position: relative; z-index: 1; }

/* === AREE SERVITE === */
.coverage-section { background: #fff; }
.coverage-intro { max-width: 640px; }
.coverage-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.coverage-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-light);
  border: 1px solid rgba(123,34,54,0.14);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
  cursor: default;
}
.coverage-tag:hover {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}
.coverage-tag i { color: var(--secondary-color); font-size: 0.72rem; }
.coverage-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.coverage-note i { color: var(--secondary-color); }

/* === FAQ === */
.faq-section { background: var(--bg-light); }
.faq-section .accordion-item {
  border: none;
  margin-bottom: 10px;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.faq-section .accordion-button {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--primary-color);
  background: #fff;
  padding: 20px 24px;
  border-radius: 10px !important;
}
.faq-section .accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: none;
}
.faq-section .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.faq-section .accordion-button:focus { box-shadow: 0 0 0 3px rgba(123,34,54,0.18); }
.faq-section .accordion-body {
  background: #fafafa;
  padding: 20px 24px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* === CONTATTI === */
.contact-section { background: #fff; }
.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid rgba(123,34,54,0.12);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: var(--transition);
  background: #fff;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(123,34,54,0.1);
  outline: none;
}
.contact-form .form-label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.88rem;
  margin-bottom: 5px;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .form-check-label { font-size: 0.88rem; color: var(--text-muted); }
.contact-form .form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
.recaptcha-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }
.recaptcha-note a { color: var(--text-muted); }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-info-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 10px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 1.15rem;
}
.contact-info-text h6 {
  font-family: 'Cinzel', serif;
  color: var(--primary-color);
  margin-bottom: 2px;
  font-size: 0.9rem;
}
.contact-info-text p,
.contact-info-text a {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.93rem;
  text-decoration: none;
  line-height: 1.5;
}
.contact-info-text a:hover { color: var(--primary-color); }
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  height: 260px;
  margin-top: 24px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}
.footer h5 {
  font-family: 'Cinzel', serif;
  color: var(--secondary-color);
  font-size: 0.95rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.footer p { font-size: 0.88rem; line-height: 1.85; }
.footer-brand { font-family: 'Cinzel', serif; color: var(--text-light); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand span { color: var(--secondary-color); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-links a:hover { color: var(--secondary-color); padding-left: 4px; }
.footer-links a i { font-size: 0.65rem; color: var(--secondary-color); }
.footer-divider { border-color: rgba(255,255,255,0.07); margin: 44px 0 0; }
.footer-bottom { padding: 20px 0; background: rgba(0,0,0,0.25); }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0; }

/* === ANIMAZIONI SCROLL === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }
.animate-on-scroll[data-delay="100"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="200"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="300"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="400"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="500"] { transition-delay: 0.5s; }

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .hero-section h1 { font-size: 2.3rem; }
  .hero-phone-mockup { display: none !important; }
  .pricing-card { padding: 40px 28px; }
}
@media (max-width: 767px) {
  section { padding: 60px 0; }
  .hero-section { padding-top: 90px; min-height: auto; padding-bottom: 60px; }
  .hero-section h1 { font-size: 1.85rem; }
  .section-header h2 { font-size: 1.7rem; }
  .pricing-amount { font-size: 3.5rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { text-align: center; justify-content: center; }
  .tech-card { padding: 28px 20px; }
}
@media (max-width: 480px) {
  .hero-section h1 { font-size: 1.65rem; }
  .hero-price-box { flex-direction: column; gap: 2px; padding: 12px 18px; }
  .hero-price-amount { font-size: 2rem; }
}

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