/* ============================================================
   Portoni Smart — Custom CSS
   Colori: blu elettrico, argento, bianco — stile smart/tech
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* ── Root Variables ── */
:root {
  --primary-color: #1565C0;
  --primary-dark:  #0D47A1;
  --accent-color:  #00B4D8;
  --secondary-color: #B0BEC5;
  --text-dark:  #1a1a2e;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light:   #f8f9fa;
  --bg-dark:    #0d1b2a;
  --gradient-hero: linear-gradient(135deg, #0d1b2a 0%, #1565C0 60%, #00B4D8 100%);
  --shadow-card: 0 8px 32px rgba(21, 101, 192, 0.12);
  --radius: 12px;
}

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

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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

/* ── Navbar ── */
#mainNav {
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
  padding: 1.2rem 0;
}
#mainNav .navbar-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}
#mainNav .navbar-brand span {
  color: var(--accent-color);
}
#mainNav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem !important;
  transition: color 0.2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: var(--accent-color) !important;
}
#mainNav .nav-cta {
  background: var(--accent-color);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.4rem 1.2rem !important;
  margin-left: 0.5rem;
}
#mainNav .nav-cta:hover { background: #0094b3; color: #fff !important; }

#mainNav.scrolled {
  background: var(--bg-dark) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
  padding: 0.6rem 0;
}
.navbar-toggler {
  border-color: rgba(255,255,255,0.4);
}
.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(255,255,255,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300B4D8' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,180,216,0.18);
  border: 1px solid rgba(0,180,216,0.4);
  color: var(--accent-color);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.hero-title .highlight {
  color: var(--accent-color);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-color);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0,180,216,0.35);
}
.hero-cta:hover {
  background: #0094b3;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,180,216,0.45);
}
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.hero-cta-secondary:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Hero device illustration */
.hero-device {
  position: relative;
  z-index: 2;
}
.hero-device-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 360px;
  margin: 0 auto;
}
.hero-device-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0,180,216,0.5));
}
.hero-device-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hero-device-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  text-align: center;
  flex: 1;
  min-width: 90px;
}
.hero-stat strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  color: var(--accent-color);
  font-weight: 700;
}
.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
  display: block;
}

/* ── Section Utilities ── */
.section-label {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}
.section-divider {
  width: 50px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}
.section-divider.left { margin: 0 0 1.5rem; }

/* ── Chi Siamo ── */
#chi-siamo {
  padding: 6rem 0;
  background: #fff;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.about-feature-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-feature-text h6 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
}
.about-feature-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.about-visual {
  background: var(--gradient-hero);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-visual::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(0,180,216,0.15);
  border-radius: 50%;
}
.about-visual .big-icon {
  font-size: 5rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 0 20px rgba(0,180,216,0.5));
}
.about-visual h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.about-visual p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  margin: 0;
}
.price-badge {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  margin-top: 1.2rem;
}

/* ── Come Funziona ── */
#come-funziona {
  padding: 6rem 0;
  background: var(--bg-light);
}
.steps-container {
  position: relative;
}
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(21,101,192,0.18);
}
.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(21,101,192,0.4);
}
.step-icon {
  font-size: 2.6rem;
  color: var(--accent-color);
  margin: 1rem 0 1rem;
  display: block;
}
.step-card h5 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Vantaggi ── */
#vantaggi {
  padding: 6rem 0;
  background: #fff;
}
.tech-card {
  border: 1px solid #e8edf5;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: all 0.3s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-color);
  transition: height 0.3s;
  border-radius: 0 0 4px 0;
}
.tech-card:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.tech-card:hover::before { height: 100%; }
.tech-card-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: color 0.3s;
}
.tech-card:hover .tech-card-icon { color: var(--accent-color); }
.tech-card h5 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.tech-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Doppia tecnologia highlight */
.tech-highlight {
  background: var(--gradient-hero);
  border-radius: 16px;
  padding: 3rem 2rem;
  color: #fff;
  text-align: center;
  margin-top: 3rem;
}
.tech-highlight h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  margin: 0.3rem;
  transition: background 0.2s;
}
.tech-pill:hover { background: rgba(255,255,255,0.2); color: #fff; }
.tech-pill i { color: var(--accent-color); }

/* ── Pricing ── */
#pricing {
  padding: 6rem 0;
  background: var(--bg-light);
}
.pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 48px rgba(21,101,192,0.15);
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}
.pricing-card:hover { border-color: var(--accent-color); }
.pricing-card .price-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}
.pricing-card .price-unit {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 0.3rem;
}
.pricing-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  text-align: left;
}
.pricing-list li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid #f0f0f0;
}
.pricing-list li:last-child { border: none; }
.pricing-list li i { color: var(--accent-color); width: 16px; flex-shrink: 0; }
.btn-primary-custom {
  background: var(--primary-color);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  border: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21,101,192,0.4);
}
.btn-accent-custom {
  background: var(--accent-color);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  border: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,180,216,0.3);
}
.btn-accent-custom:hover {
  background: #0094b3;
  color: #fff;
  transform: translateY(-2px);
}

/* ── Contatti / Form ── */
#contatti {
  padding: 6rem 0;
  background: #fff;
}
.contact-card {
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 2.5rem;
  color: #fff;
  height: 100%;
}
.contact-card h4 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #fff;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.contact-item-icon {
  width: 42px;
  height: 42px;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-text strong {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 0.2rem;
}
.contact-item-text a,
.contact-item-text span {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.contact-item-text a:hover { color: var(--accent-color); }
.form-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 2.5rem;
}
.form-card h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}
.form-control, .form-select {
  border: 1.5px solid #dde3f0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.12);
}
.form-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}
.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-submit {
  background: var(--gradient-hero);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding: 0.9rem 2.5rem;
  border-radius: 8px;
  border: none;
  width: 100%;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(21,101,192,0.3);
}
.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}
.alert-success-custom {
  display: none;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.alert-error-custom {
  display: none;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ── Mappa ── */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 2rem;
}
.map-wrapper iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ── Footer ── */
#footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}
.footer-brand span { color: var(--accent-color); }
.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 2rem 0 1.5rem;
}
.footer-col h6 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
}
.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.6);
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-links a:hover { color: var(--accent-color); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.footer-contact-item i {
  color: var(--accent-color);
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--accent-color); }
.footer-copyright {
  background: rgba(0,0,0,0.3);
  padding: 1.2rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}
.footer-copyright a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-copyright a:hover { color: var(--accent-color); }

/* ── Scroll Animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  #hero { min-height: auto; padding: 7rem 0 5rem; }
  .hero-device-box { max-width: 280px; margin-top: 2.5rem; }
  #mainNav .nav-link { padding: 0.5rem 0 !important; }
  #mainNav .nav-cta { margin-left: 0; margin-top: 0.5rem; }
  .footer-col { margin-bottom: 2rem; }
}
@media (max-width: 767.98px) {
  .hero-title { font-size: 2rem; }
  .hero-stats { gap: 0.8rem; }
  .hero-stat { padding: 0.6rem 0.8rem; }
  #chi-siamo, #come-funziona, #vantaggi, #pricing, #contatti { padding: 4rem 0; }
  .pricing-card { padding: 2rem 1.5rem; }
  .contact-card, .form-card { padding: 1.8rem; }
  .tech-highlight { padding: 2rem 1.2rem; }
}
@media (max-width: 575.98px) {
  .hero-cta, .hero-cta-secondary { width: 100%; justify-content: center; }
  .hero-device-box { padding: 1.5rem; }
  .hero-device-icon { font-size: 3.5rem; }
}

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