/* --- 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: 100px 0 80px;
  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);
}

/* --- HERO ACTIONS & WHATSAPP LINK --- */
.hero-actions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
}

.whatsapp-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.whatsapp-hero-link svg {
  stroke: #25d366; /* Verde icona WhatsApp */
  transition: transform 0.3s ease;
}

.whatsapp-hero-link strong {
  color: #25d366; /* Risalta la parola WhatsApp */
}

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

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

/* --- PACCHETTI WEB & CARDS --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  border-top: 4px solid var(--primary);
}
.card:hover {
  transform: translateY(-5px);
}
.card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}
.card p {
  color: var(--text-gray);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card .price {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 15px;
}
.pricing-card .divider {
  border: none;
  height: 1px;
  background-color: #eee;
  margin: 15px 0;
}
.features-list {
  text-align: left;
  flex-grow: 1;
  margin-bottom: 15px;
}
.features-list li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.btn-outline-dark {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
}
.btn-outline-dark:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* --- STILE PROMO E SCONTO ACCATTIVANTE --- */
.card.pricing-card.promo-card {
  border-top: 4px solid #ff3b30; /* Bordo rosso/arancio promo anziché viola */
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.12);
  position: relative;
  overflow: hidden;
}

/* Ribbon "Offerta" in alto a destra */
.promo-ribbon {
  position: absolute;
  top: 18px;
  right: -30px;
  background: linear-gradient(135deg, #ff3b30, #ff9500);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 30px;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Wrapper del prezzo */
.price-discount-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 59, 48, 0.05);
  border: 1px dashed rgba(255, 59, 48, 0.3);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 10px 0 15px;
}

.price-stack {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 0.82rem;
  color: #8e8e93;
  text-decoration: line-through;
  font-weight: 600;
}

.pricing-card .price.promo-price {
  font-size: 1.35rem;
  color: #ff3b30;
  margin-bottom: 0;
  line-height: 1.1;
}

.pricing-card .price.promo-price strong {
  font-size: 1.7rem;
  font-weight: 900;
}

/* Badge con evidenziatore risparmio */
.discount-badge {
  background: #34c759;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.25);
}

/* Pulsante dedicato per la card promo */
.btn-promo-cta {
  border-color: #ff3b30 !important;
  color: #ff3b30 !important;
}

.btn-promo-cta:hover {
  background-color: #ff3b30 !important;
  color: #ffffff !important;
}

/* --- DISCLAIMER PACCHETTI --- */
.pricing-disclaimer {
  margin-top: 40px;
  background-color: var(--white);
  border-left: 4px solid var(--primary);
  padding: 18px 24px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.pricing-disclaimer p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.pricing-disclaimer strong {
  color: var(--primary-dark);
}

/* --- CAROSELLO LAPTOP MACBOOK --- */
.web-carousel-container {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0 30px;
}
.mac-browser-window {
  background: #ffffff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 5px 15px rgba(113, 39, 179, 0.08);
  border: 1px solid #d0d0d8;
  position: relative;
  z-index: 2;
}
.mac-browser-header {
  height: 38px;
  background: #e3e3e8;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #d0d0d5;
  position: relative;
}
.mac-dots {
  display: flex;
  gap: 8px;
  z-index: 2;
}
.mac-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.mac-dots .dot.red {
  background-color: #ff5f56;
}
.mac-dots .dot.yellow {
  background-color: #ffbd2e;
}
.mac-dots .dot.green {
  background-color: #27c93f;
}

.mac-laptop-base {
  height: 16px;
  background: linear-gradient(to bottom, #e0e0e5 0%, #b8b8c0 100%);
  border-radius: 0 0 20px 20px;
  margin: 0 auto;
  width: 104%;
  margin-left: -2%;
  position: relative;
  z-index: 1;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}
.mac-laptop-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12%;
  height: 6px;
  background: #a0a0a8;
  border-radius: 0 0 5px 5px;
}

/* SWIPER CAROUSEL */
.webSwiper {
  width: 100%;
  height: auto;
  padding-bottom: 30px;
}
.webSwiper .swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}
.webSwiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.webSwiper .swiper-button-next,
.webSwiper .swiper-button-prev {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.webSwiper .swiper-button-next:after,
.webSwiper .swiper-button-prev:after {
  font-size: 1.1rem;
  font-weight: bold;
}
.webSwiper .swiper-button-next:hover,
.webSwiper .swiper-button-prev:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.webSwiper .swiper-pagination-bullet-active {
  background: var(--primary);
}

/* --- CTA BANNER CUSTOM --- */
.cta-banner {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 50px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(72, 0, 146, 0.2);
}
.cta-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--white);
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  font-size: 1.05rem;
}
.cta-banner .btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s;
  display: inline-block;
}
.cta-banner .btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

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

  /* NASCONDE LE FRECCE DEL CAROSELLO SU MOBILE */
  .webSwiper .swiper-button-next,
  .webSwiper .swiper-button-prev {
    display: none;
  }

  .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;
  }
}
