:root {
  --primary: #e63946;
  --primary-hover: #c32f3a;
  --dark: #1a1a1b;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray: #636e72;
  --whatsapp: #25d366;
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--apple-font);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

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

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.w-100 {
  width: 100%;
}

.sf-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--whatsapp);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
}

/* --- HEADER --- */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: padding 0.3s ease, background 0.3s ease;
}

header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-download {
  background: var(--dark);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-download:hover {
  background: #333336;
  transform: translateY(-2px);
}

/* --- HERO --- */
#hero {
  padding: 180px 0 100px;
  background: radial-gradient(circle at 80% 20%, #f4f6f8 0%, #e9ecef 100%);
}

.badge {
  background: rgba(230, 57, 70, 0.08);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(230, 57, 70, 0.15);
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

h1 span,
.section-head h2 span,
.preventivo-card h2 span {
  color: var(--primary);
}

#hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--gray);
  max-width: 680px;
  margin-bottom: 35px;
  line-height: 1.55;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* --- BOTTONI --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(230, 57, 70, 0.35);
}

.btn-secondary {
  background: var(--dark);
  color: #ffffff;
}

.btn-secondary:hover {
  background: #333336;
  transform: translateY(-2px);
}

/* --- TRUST BAR --- */
.trust-bar {
  background: var(--dark);
  color: #ffffff;
  padding: 28px 0;
}

.bar-flex {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.trust-item .sf-icon {
  color: var(--primary);
}

/* --- SEZIONI --- */
.section {
  padding: 90px 0;
}

.section-head {
  margin-bottom: 45px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.section-head p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--gray);
  font-size: 1.1rem;
}

/* --- BENTO GRID CON ICONE 64px --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.bento-card {
  background: var(--light);
  padding: 40px 32px;
  border-radius: 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.bento-icon-box {
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(230, 57, 70, 0.06);
  border-radius: 20px;
}

.bento-icon {
  width: 64px;
  height: 64px;
  color: var(--primary);
  stroke-width: 1.8;
}

.bento-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  font-weight: 700;
}

.bento-card p {
  color: #555e62;
  font-size: 0.98rem;
  line-height: 1.55;
}

.bento-card:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}

.bento-card.highlight {
  background: var(--primary);
  color: #ffffff;
}

.bento-card.highlight .bento-icon-box {
  background: rgba(255, 255, 255, 0.15);
}

.bento-card.highlight p,
.bento-card.highlight .bento-icon {
  color: #ffffff;
}

/* --- VIDEO SECTION --- */
.section-video {
  background: #0d0d0e;
  padding: 90px 0;
  color: #ffffff;
  border-radius: 36px;
  margin: 20px auto;
  max-width: 1350px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.video-item {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #1c1c1e;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.video-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FORM PREVENTIVO --- */
.preventivo-card {
  background: var(--light);
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.p-info {
  background: var(--dark);
  color: #ffffff;
  padding: 55px 45px;
}

.p-info h2 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.p-info p {
  color: #a0a4a8;
  font-size: 0.95rem;
}

.p-contacts {
  margin-top: 35px;
}

.p-contacts p {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e5e5ea;
  font-size: 0.92rem;
}

.p-contacts .sf-icon {
  color: var(--primary);
}

.p-form {
  padding: 55px 45px;
  background: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.p-form input[type="text"],
.p-form input[type="email"],
.p-form input[type="tel"],
.p-form select,
.p-form textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #dcdce0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--dark);
  background: #fdfdfd;
  transition: border-color 0.2s ease;
  display: block;
}

.p-form input:focus,
.p-form select:focus,
.p-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
  background: #ffffff;
}

.p-form textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 18px;
}

/* --- PRIVACY BOX ALLINEATO --- */
.privacy-box {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 22px !important;
}

.privacy-box input[type="checkbox"] {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 2px 0 0 0 !important;
  cursor: pointer !important;
  accent-color: var(--primary) !important;
  flex-shrink: 0 !important;
}

.privacy-box label {
  font-size: 0.88rem !important;
  color: var(--gray) !important;
  line-height: 1.45 !important;
}

.privacy-box a {
  color: var(--primary);
  text-decoration: underline;
}

/* --- FOOTER --- */
footer {
  padding: 80px 0 40px;
  background: #ffffff;
  border-top: 1px solid #eee;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 35px;
}

.f-logo img {
  height: 55px;
  width: auto;
  margin-bottom: 12px;
}

.f-logo p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.f-logo p a {
  color: var(--dark);
  text-decoration: none;
}

.f-links h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.footer-legal-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-legal-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.f-social {
  display: flex;
  gap: 16px;
}

.f-social a {
  color: var(--dark);
  transition: color 0.2s ease;
}

.f-social a:hover {
  color: var(--primary);
}

.copyright {
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

.copyright a {
  color: var(--dark);
  text-decoration: none;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
  .preventivo-card {
    grid-template-columns: 1fr;
  }
  .p-info, .p-form {
    padding: 40px 30px;
  }
}

@media (max-width: 820px) {
  .mobile-menu-btn {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid #e5e5ea;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  }
  .nav-links.active {
    display: flex;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  #hero {
    padding: 140px 0 70px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .section {
    padding: 60px 0;
  }
}