/* --- VARIABILI COLORI --- */
:root {
  --primary: #7127b3;
  --primary-light: #853dc8;
  --primary-dark: #480092;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --text-dark: #1a1a1a;
  --text-gray: #555555;
  --border-radius: 8px;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}
h1,
h2,
h3,
h4,
.btn {
  font-family: "Montserrat", sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.bg-light {
  background-color: var(--off-white);
}
.bg-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  margin-bottom: 50px;
}

/* --- HEADER --- */
.header {
  background-color: var(--primary-dark);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 35px;
  display: block;
}
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-menu a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #dcbfff;
}
.hamburger {
  display: none;
  cursor: pointer;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--white);
}

/* --- HERO --- */
.hero {
  background: linear-gradient(
    to bottom,
    var(--primary-dark) 0%,
    var(--primary) 100%
  );
  color: var(--white);
  padding: 120px 0 100px;
  text-align: center;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background-color: var(--white);
  color: var(--primary);
}
.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- HERO BUTTONS HOME --- */
.hero-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.btn-note {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* --- HIGHLIGHT PREZZO SITO WEB --- */
.btn-note.highlight-price strong {
  color: #ffd700; /* Giallo oro per far cadere l'occhio sull'importo */
  font-size: 1.1rem;
  font-weight: 800;
}

.price-badge {
  background-color: #ffd700;
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* --- HERO BUTTONS LAYOUT --- */
.hero-buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Wrapper centrato per il pulsante WhatsApp */
.whatsapp-hero-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Link WhatsApp Glassmorphism */
.whatsapp-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.whatsapp-hero-link svg {
  stroke: #25d366;
  transition: transform 0.3s ease;
}

.whatsapp-hero-link strong {
  color: #25d366;
}

.whatsapp-hero-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #25d366;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.whatsapp-hero-link:hover svg {
  transform: scale(1.15) rotate(-5deg);
}

/* --- ADATTAMENTO MOBILE --- */
@media (max-width: 850px) {
  .hero-buttons-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .whatsapp-hero-wrapper {
    margin-top: 5px;
  }
}

/* --- SHOWCASE HOME --- */
.showcase-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1000px;
  margin: 0 auto;
}
.showcase-card {
  background: var(--white);
  border-radius: 16px;
  padding: 35px 25px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(113, 39, 179, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}
.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(113, 39, 179, 0.15);
  border-color: var(--primary-light);
}
.card-badge {
  display: inline-block;
  background: rgba(113, 39, 179, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.showcase-card h3 {
  font-size: 1.6rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  max-width: 320px;
  line-height: 1.5;
}
.mockup-display-area {
  position: relative;
  width: 100%;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.purple-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--primary);
  opacity: 0.18;
  filter: blur(45px);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
}
.showcase-card:hover .purple-glow {
  opacity: 0.35;
}
.phone-mockup-home {
  max-width: 145px;
  height: auto;
  border-radius: 28px;
  border: 6px solid #1a1a1a;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  z-index: 2;
  transition: transform 0.4s ease;
}
.showcase-card:hover .phone-mockup-home {
  transform: scale(1.05) rotate(-2deg);
}
.browser-mockup-home {
  width: 100%;
  max-width: 330px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border: 1px solid #dcdce1;
  background: #ffffff;
  z-index: 2;
  transition: transform 0.4s ease;
}
.showcase-card:hover .browser-mockup-home {
  transform: scale(1.03) rotate(1.5deg);
}
.browser-header-home {
  height: 28px;
  background: #e5e5ea;
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
  border-bottom: 1px solid #d1d1d6;
}
.browser-header-home .dots {
  display: flex;
  gap: 5px;
}
.browser-header-home .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.browser-header-home .dot.red {
  background-color: #ff5f56;
}
.browser-header-home .dot.yellow {
  background-color: #ffbd2e;
}
.browser-header-home .dot.green {
  background-color: #27c93f;
}
.browser-img-home {
  width: 100%;
  height: auto;
  display: block;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 25px;
}
.card-tags span {
  background: #f0f0f5;
  color: #444;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e0e0e8;
}

.btn-showcase {
  margin-top: auto;
  background-color: var(--primary);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}
.btn-showcase span {
  transition: transform 0.3s ease;
}
.btn-showcase:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(113, 39, 179, 0.3);
}
.btn-showcase:hover span {
  transform: translateX(4px);
}

/* --- METODO & CHI SONO --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.step {
  text-align: center;
  padding: 20px;
}
.step-number {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(113, 39, 179, 0.2);
  margin-bottom: 10px;
}
.step h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.tech-tags span {
  display: inline-block;
  background-color: var(--off-white);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-right: 5px;
  margin-top: 10px;
  border: 1px solid #ddd;
  font-weight: 600;
}

/* --- FORM RICHIESTA (Aggiunto per richiesta.html) --- */
.form-wrapper {
  background-color: var(--white);
  border-radius: var(--border-radius);
  width: 100%;
  color: var(--text-dark);
}
.form-wrapper h2 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.form-wrapper p {
  color: var(--text-gray);
  margin-bottom: 30px;
  font-size: 0.95rem;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-wrapper input,
.form-wrapper select,
.form-wrapper textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.3s;
}
.form-wrapper textarea {
  resize: none;
}
.form-wrapper input:focus,
.form-wrapper select:focus,
.form-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(113, 39, 179, 0.1);
}
.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 0;
}
.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.btn-full {
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 15px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 10px;
}
.btn-full:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(113, 39, 179, 0.2);
}

/* --- FOOTER --- */
.site-footer {
  background-color: #2e005e;
  color: var(--white);
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-light);
  border-radius: 2px;
}
.brand-col .footer-logo {
  width: 140px;
  margin-bottom: 20px;
  display: block;
}
.brand-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 350px;
}
.contacts-col ul {
  list-style: none;
  padding: 0;
}
.contacts-col li {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}
.contacts-col a {
  transition: color 0.3s;
}
.contacts-col a:hover {
  color: #dcbfff;
}
.social-col .social-icons {
  display: flex;
  gap: 15px;
}
.social-col a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}
.social-col a:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(113, 39, 179, 0.4);
}
.footer-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  margin: 0 0 30px 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom .copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  gap: 25px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--white);
}

/* --- FOOTER CONTACTS STYLING --- */
.contacts-col .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts-col .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  padding: 4px 0;
}

.contacts-col .contact-icon {
  flex-shrink: 0;
  stroke: var(--primary-light);
  transition: all 0.25s ease;
}

/* Hover e interattività sui link */
.contacts-col a.contact-item:hover {
  color: var(--white);
  transform: translateX(4px);
}

.contacts-col a.contact-item:hover .contact-icon {
  stroke: var(--white);
  transform: scale(1.1);
}

/* Tocco speciale per l'icona WhatsApp */
.contacts-col a.contact-item:hover .wa-icon {
  stroke: #25d366;
}

/* Elemento non cliccabile (Sede) */
.contacts-col .contact-item.static {
  cursor: default;
}

/* Adattamento Mobile Centrato */
@media (max-width: 850px) {
  .contacts-col .contact-list {
    align-items: center;
  }

  .contacts-col a.contact-item:hover {
    transform: translateY(
      -2px
    ); /* Su mobile trasla verso l'alto anziché a destra */
  }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 850px) {
  .header .container {
    position: relative;
    justify-content: center;
  }
  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    gap: 0;
    flex-direction: column;
    background-color: var(--primary-dark);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.3s;
    z-index: 1000;
    padding-top: 100px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 40px;
  }
  .nav-menu a {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero-buttons-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .brand-col .footer-logo,
  .brand-col p {
    margin: 0 auto 20px auto;
  }
  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .social-col .social-icons {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    gap: 15px;
  }
}
