*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #e8e4de;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── ANIMAZIONI SCROLL (REVEAL) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── LOGO ── */
.logo-img {
  height: 110px;
  width: auto;
  display: block;
}
.logo-img--light {
  filter: brightness(0) invert(1);
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #e8e4de;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; color: #1a1a1a;
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  color: #555; text-decoration: none; font-size: .9rem; font-weight: 400; transition: color .15s;
}
.nav-links a:hover { color: #1a1a1a; }
.nav-phone {
  background: #1a1a1a;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .875rem !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background .15s;
}
.nav-phone:hover { background: #333 !important; }

/* ── HAMBURGER ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.nav-mobile {
  display: none;
}


/* ── HERO ── */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 100px;
}
.hero-location {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; color: #555; font-weight: 400; margin-bottom: 20px;
}
.hero-location-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
#hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: #1a1a1a;
  margin-bottom: 20px;
}
#hero h1 i { font-style: italic; font-weight: 700; }
.hero-sub {
  font-size: 1rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 440px;
}
.hero-sub b { color: #1a1a1a; font-weight: 600; }
/* ── HERO BADGE ── */
.hero-badge-row {
  margin-top: 36px;
  display: flex;
  justify-content: flex-start;
}
.hero-badge {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hero-badge-icon {
  width: 18px; height: 18px;
  color: #5a6fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge-icon svg { width: 18px; height: 18px; }
.hero-badge-text {
  font-size: .85rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 36px;
  background: #e8e4de;
  border-radius: 12px;
  border: none;
  overflow: hidden;
}
.hero-stat-item {
  padding: 16px 18px;
  display: flex; align-items: center; gap: 10px;
  border-right: 1px solid #d4cfc9;
}
.hero-stat-item:last-child { border-right: none; }
.hero-stat-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #555;
}
.hero-stat-text { font-size: .8rem; font-weight: 500; color: #1a1a1a; line-height: 1.3; }

.hero-video-box {
  background: #d4cfc9;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  cursor: pointer;
}
.hero-video-box video,
.hero-video-box iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: none;
}
.video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(240,238,234,.7);
}
.play-btn {
  width: 56px; height: 56px;
  background: #5a6fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(90,111,255,.4);
  transition: transform .2s, background .2s;
}
.play-btn:hover { transform: scale(1.08); background: #4a5fee; }
.play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.video-cta-text {
  font-size: .8rem; font-weight: 600; color: #1a1a1a; letter-spacing: .03em;
  text-transform: uppercase;
}
.video-placeholder-text { font-size: .78rem; color: #aaa; margin-top: 4px; }
.video-duration {
  position: absolute; bottom: 10px; left: 12px;
  font-size: .72rem; color: #fff; background: rgba(0,0,0,.5);
  padding: 2px 7px; border-radius: 4px;
}

/* ── SECTION TAG ── */
.stag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 100px;
  padding: 7px 16px;
  font-size: .8rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 20px;
}
.stag svg { width: 14px; height: 14px; color: #888; }

/* ── SECTION TITLE ── */
.stitle {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #1a1a1a;
  margin-bottom: 48px;
}
.stitle i { font-style: italic; }

/* ── ADVANTAGE ── */
#advantage {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  text-align: left;
}
.adv-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  border: 1px solid #e5e5e5;
  transition: transform .25s ease, box-shadow .25s ease, opacity .6s ease;
}
.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.adv-card-icon {
  width: 36px; height: 36px;
  color: #5a6fff;
  margin-bottom: 16px;
}
.adv-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.adv-card p { font-size: .875rem; color: #666; line-height: 1.7; }

/* ── BEFORE / AFTER ── */
#beforeafter {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.ba-box {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  text-align: left;
}
.ba-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.ba-tab {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: #888;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s;
  user-select: none;
}
.ba-tab.active {
  background: #f5f5f5;
  border-color: #e5e5e5;
  color: #1a1a1a;
}
.ba-content { display: none; padding: 36px; gap: 40px; align-items: flex-start; background: #fff; }
.ba-content.active { display: flex; }
.ba-info { flex: 1; }
.ba-company-row {
  display: flex; align-items: center; gap: 12px;
  background: #f8f8f8;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.ba-company-avatar {
  width: 36px; height: 36px;
  background: #e0e0e0;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.ba-company-avatar svg { width: 18px; height: 18px; color: #999; }
.ba-company-name { font-size: .9rem; font-weight: 600; }
.ba-company-addr { font-size: .78rem; color: #888; margin-top: 1px; }
.ba-metrics { display: flex; flex-direction: column; gap: 14px; }
.ba-metric {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.ba-metric-label { font-size: .9rem; color: #333; font-weight: 400; }
.ba-metric-val {
  font-size: .82rem; font-weight: 700;
  padding: 4px 12px; border-radius: 6px;
  min-width: 52px; text-align: center;
}
.before-content .ba-metric-val { background: #fee2e2; color: #dc2626; }
.after-content .ba-metric-val  { background: #dcfce7; color: #16a34a; }
.ba-map { flex: 1; border-radius: 10px; overflow: hidden; min-height: 340px; }

/* ── PROCESS ── */
#process {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.process-list { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.process-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform .25s ease, box-shadow .25s ease, opacity .6s ease;
}
.process-item:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.process-icon {
  width: 32px; height: 32px;
  flex-shrink: 0;
  color: #888;
  display: flex; align-items: center; justify-content: center;
}
.process-icon svg { width: 22px; height: 22px; }
.process-num { font-size: .85rem; font-weight: 700; color: #1a1a1a; min-width: 40px; }
.process-title { font-size: .95rem; font-weight: 700; margin-right: 8px; }
.process-desc { font-size: .875rem; color: #666; }

/* ── FAQ ── */
#faq {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.faq-list { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.faq-btn {
  width: 100%; background: none; border: none;
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 500;
  color: #1a1a1a; text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color .15s;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: #888;
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 16px 24px 20px;
  font-size: .9rem; color: #666; line-height: 1.75;
  border-top: 1px solid #f5f5f5;
}

/* ── CONTACT ── */
#contatti {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.contact-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e5e5;
  padding: 36px 32px;
}
.contact-card h3 {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px;
}
.contact-card > p {
  font-size: .875rem; color: #666; line-height: 1.7; margin-bottom: 24px;
}
.contact-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.contact-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: #555; line-height: 1.5;
}
.contact-features li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #1a1a1a; flex-shrink: 0; margin-top: 6px;
}

/* ── FORM ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fg label { font-size: .75rem; font-weight: 500; color: #888; text-transform: uppercase; letter-spacing: .07em; }
.fg input, .fg textarea {
  background: #f8f8f8;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  color: #1a1a1a;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  transition: border-color .2s;
}
.fg input::placeholder, .fg textarea::placeholder { color: #bbb; }
.fg input:focus, .fg textarea:focus { border-color: #5a6fff; background: #fff; }
.fg textarea { resize: vertical; min-height: 100px; }
.btn-primary {
  width: 100%;
  background: #5a6fff;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .9rem; font-weight: 600;
  border: none; border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  transition: background .15s, transform .15s;
  margin-top: 4px;
}
.btn-primary:hover { background: #4a5fee; transform: translateY(-1px); }
.success-msg {
  display: none; text-align: center; padding: 40px 20px;
}
.success-msg strong { font-size: 1.05rem; font-weight: 700; }
.success-msg p { color: #888; font-size: .875rem; margin-top: 6px; }

/* ── FOOTER ── */
footer {
  background: #e8e4de;
  padding: 48px 40px 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
}
.foot-brand { display: flex; align-items: center; text-decoration: none; color: #1a1a1a; margin-bottom: 10px; }
.foot-tagline { font-size: 1.3rem; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; letter-spacing: -.02em; }
.foot-sub { font-size: .82rem; color: #888; }
.foot-legal h4 { font-size: .75rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.foot-legal a { display: block; font-size: .875rem; color: #555; text-decoration: none; margin-bottom: 4px; }
.foot-legal a:hover { color: #1a1a1a; }
.footer-bottom {
  border-top: 1px solid #d4cfc9;
  padding-top: 20px;
  font-size: .78rem; color: #aaa; text-align: center;
}

/* ── TERMS PAGE ── */
.terms-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px;
}
.terms-wrap h1 {
  font-size: clamp(2rem,4vw,3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 48px;
}
.terms-wrap h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 36px 0 10px;
  letter-spacing: -.02em;
}
.terms-wrap h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
}
.terms-wrap p {
  font-size: .9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}
.terms-wrap ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}
.terms-wrap ul li {
  font-size: .9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  nav { padding: 0 20px; }
  .logo-img { height: 60px; }
  #hero { grid-template-columns: 1fr; padding: 48px 20px 64px; }
  .hero-right { order: -1; }
  #advantage, #beforeafter, #process, #faq, #contatti { padding: 60px 20px; }
  .adv-grid { grid-template-columns: 1fr; }
  .ba-content.active { flex-direction: column; }
  .contact-cards { grid-template-columns: 1fr; }
  footer { padding: 36px 20px 24px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile {
    display: block;
    position: sticky;
    top: 68px;
    z-index: 199;
    background: #e8e4de;
    border-bottom: 1px solid transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, border-color .35s ease;
  }
  .nav-mobile.open {
    max-height: 400px;
    border-color: #d4cfc9;
  }
  .nav-mobile ul {
    list-style: none;
    padding: 12px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .nav-mobile ul li a {
    display: block;
    padding: 12px 16px;
    color: #555;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background .15s, color .15s;
  }
  .nav-mobile ul li a:hover,
  .nav-mobile ul li a:active { background: #dedad4; color: #1a1a1a; }
  .nav-mobile-cta {
    display: block;
    background: #1a1a1a !important;
    color: #fff !important;
    text-align: center;
    border-radius: 100px !important;
    margin-top: 8px;
    font-weight: 600 !important;
    padding: 13px 16px !important;
  }
  /* ── HERO BADGE ── */
.hero-badge-row {
  margin-top: 36px;
  display: flex;
  justify-content: flex-start;
}
.hero-badge {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.hero-badge-icon {
  width: 18px; height: 18px;
  color: #5a6fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge-icon svg { width: 18px; height: 18px; }
.hero-badge-text {
  font-size: .85rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
}

.hero-stats-row { grid-template-columns: 1fr; }
  .hero-stat-item { border-right: none; border-bottom: 1px solid #e5e5e5; }
  .hero-stat-item:last-child { border-bottom: none; }
  .terms-wrap { padding: 48px 20px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── MODALE PROVIDER EMAIL ── */
.email-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.email-modal-overlay.active {
  display: flex;
}
.email-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  text-align: center;
}
.email-modal-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.email-modal-card p {
  font-size: .9rem;
  color: #555;
  margin-bottom: 28px;
}
.email-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.email-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.email-provider-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}
.email-provider-btn--gmail {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #ddd;
}
.email-provider-btn--outlook {
  background: #0078D4;
  color: #fff;
  border: none;
}
.email-provider-btn--default {
  background: #f0ede8;
  color: #1a1a1a;
  border: none;
}
.email-modal-cancel {
  background: none;
  border: none;
  color: #888;
  font-size: .85rem;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
}
.email-modal-cancel:hover { color: #1a1a1a; }
@media (max-width: 480px) {
  .email-modal-card { padding: 28px 20px; }
}
