@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --dark: #111318;
  --dark-2: #191c22;
  --text: #25272d;
  --muted: #737780;
  --light: #f5f5f2;
  --white: #ffffff;
  --accent: rgba(102, 37, 128);
  --accent-dark: rgba(102, 37, 128);
  --border: #e4e4df;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(17, 19, 24, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  display: inline-flex;
  flex-direction: column;
  line-height: .95;
}

.logo span {
  font-size: 9px;
  letter-spacing: .25em;
  margin-top: 5px;
  font-weight: 700;
}

.main-menu { display: flex; align-items: center; gap: 28px; }
.main-menu a { font-size: 14px; font-weight: 600; color: #111; transition: .2s; }
.main-menu a:hover { color: var(--dark); }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 25px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-dark); }
.btn-small { min-height: 44px; padding-inline: 19px; }
.btn-outline { background: transparent; color: var(--dark); border: 1px solid #cfd0cc; }
.btn-outline:hover { background: var(--light); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px auto; }

.hero {
  background: var(--light);
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 17px;
  color: #777a80;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero h1, h2 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.hero h1 { font-size: clamp(43px, 5vw, 72px); max-width: 700px; }
.hero h1 span, h2 span { color: var(--accent-dark); }
.hero-copy > p {
  max-width: 590px;
  margin: 25px 0 32px;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust-row {
  display: flex;
  gap: 28px;
  margin-top: 42px;
}
.trust-row div { display: flex; flex-direction: column; }
.trust-row strong { font-family: 'Manrope'; font-size: 21px; }
.trust-row span { font-size: 11px; color: var(--muted); }

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: visible;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.image-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.floating-card {
  position: absolute;
  left: -30px;
  bottom: 30px;
  padding: 18px 22px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.floating-card strong { font-size: 14px; }
.floating-card span { color: var(--muted); font-size: 12px; }

.stats { background: var(--dark); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid > div { padding: 34px 20px; text-align: center; border-right: 1px solid #30333a; }
.stats-grid > div:last-child { border: 0; }
.stats strong { display: block; font-family: 'Manrope'; font-size: 30px; color: var(--accent); }
.stats span { color: #a9abb0; font-size: 12px; }

.section { padding: 105px 0; }
.section-heading { margin-bottom: 50px; }
.section-heading.centered { text-align: center; }
.section-heading h2 { font-size: clamp(34px, 4vw, 52px); }
.section-heading p { margin-top: 17px; color: var(--muted); }

.services { background: white; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: white; transition: .25s; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-image { min-height: 245px; border-radius: 0; }
.service-content { padding: 28px; }
.number { font-size: 11px; color: var(--accent-dark); font-weight: 800; }
.service-content h3 { font-family: 'Manrope'; font-size: 28px; margin: 5px 0 12px; }
.service-content p { color: var(--muted); font-size: 14px; }
.service-content ul { list-style: none; margin: 20px 0; }
.service-content li { padding: 6px 0; font-size: 14px; }
.service-content li::before { content: '✓'; margin-right: 9px; color: var(--accent-dark); font-weight: 800; }
.service-content a { font-size: 13px; font-weight: 800; }

.process { background: var(--light); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-item { padding: 20px 30px; border-left: 1px solid #d7d7d1; }
.process-item:first-child { border-left: 0; }
.process-item > span { color: var(--accent-dark); font-weight: 800; font-size: 13px; }
.process-item h3 { font-family: 'Manrope'; margin: 13px 0 8px; }
.process-item p { color: var(--muted); font-size: 13px; }

.why { background: var(--dark); color: white; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.why h2 { font-size: clamp(35px, 4vw, 53px); }
.why p { color: #aeb0b5; max-width: 540px; margin-top: 22px; }
.check-list { display: grid; gap: 14px; }
.check-list div { display: flex; gap: 15px; align-items: center; padding: 18px 0; border-bottom: 1px solid #30333a; }
.check-list b { color: var(--accent); }
.check-list span { font-weight: 600; }

.reviews { background: var(--light); }
.rating { margin-top: 20px; font-size: 20px; letter-spacing: 3px; }
.rating strong { letter-spacing: 0; margin-left: 10px; }
.rating small { color: var(--muted); letter-spacing: 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
blockquote { background: white; padding: 30px; border-radius: var(--radius); min-height: 190px; box-shadow: 0 8px 25px rgba(0,0,0,.04); }
.stars { color: var(--accent-dark); letter-spacing: 3px; }
blockquote p { margin: 18px 0; font-size: 15px; }
blockquote cite { font-size: 12px; font-style: normal; font-weight: 800; color: var(--muted); }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); padding: 20px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; font-size: 20px; }
details[open] summary::after { content: '−'; }
details p { margin-top: 12px; color: var(--muted); font-size: 14px; }

.contact { background: var(--dark); color: white; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.contact h2 { font-size: clamp(36px, 4vw, 56px); }
.contact-copy > p { color: #aeb0b5; margin: 20px 0 30px; }
.contact-line { display: flex; flex-direction: column; gap: 2px; padding: 17px 0; border-bottom: 1px solid #30333a; }
.contact-line strong { font-size: 15px; }
.contact-line span { color: #9699a0; font-size: 12px; }

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  min-width: 260px;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
}

.contact-button .button-icon {
  font-size: 22px;
}

.contact-button strong {
  display: block;
  font-size: 15px;
}

.contact-button small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: .7;
}
.phone-button {
  background: var(--dark);
  color: var(--white);
  border: 1px solid white;
}
.whatsapp-button {
  background: rgba(102, 37, 128);
  color: #fff;
}

.contact-form { background: white; color: var(--text); padding: 35px; border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 18px; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 14px;
  border: 1px solid #dcded9;
  border-radius: 10px;
  background: white;
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-dark); }
textarea { resize: vertical; }
.privacy { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); }
.privacy input { width: auto; margin-top: 2px; }

.map-section {
  background: #0b0c0f;
  height: 420px;
  padding: 35px 0;
}

.map-container {
  height: 100%;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #e9e9e5;
}

.map-placeholder iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer { background: #0b0c0f; color: white; padding: 70px 0 25px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 60px; }
.footer p, .footer a { color: #898c93; font-size: 13px; }
.footer-grid > div > p { margin-top: 18px; max-width: 330px; }
.footer h4 { margin-bottom: 15px; font-family: 'Manrope'; }
.footer-grid > div:nth-child(2) a { display: block; margin: 8px 0; }
.footer-bottom { margin-top: 55px; padding-top: 20px; border-top: 1px solid #24262b; display: flex; justify-content: space-between; color: #707279; font-size: 11px; }

@media (max-width: 900px) {
  .main-menu {
    position: absolute;
    left: 20px; right: 20px; top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .main-menu.open { display: flex; }
  .main-menu a { padding: 12px; }
  .menu-toggle { display: block; }
  .hero-grid, .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 45px; }
  .hero { padding-top: 65px; }
  .hero-image { order: -1; }
  .image-placeholder { min-height: 380px; }
  .floating-card { left: 20px; }
  .services-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-item:nth-child(3) { border-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid > div:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- PULSANTE FLUTTUANTE WHATSAPP --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: rgba(102, 37, 128);
  color: #ffffff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  background-color: rgba(102, 37, 128);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}


/* --- PULSANTE CON CONTORNO (OUTLINE) --- */
.btn-card-outline {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background-color: rgba(102, 37, 128); /* Sfondo chiaro soft */
  color: #ffffff; /* Colore del testo scuro */
  border: 2px solid rgba(102, 37, 128); /* Bordo scuro ben definito */
  border-radius: 12px; /* Angoli arrotondati */
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-card-outline:hover {
  transform: translateY(-2px);
}

/* Adattamento per schermi piccoli */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 600px) {
  .logo img {
    max-width: 145px;
}
  .container { width: min(100% - 28px, 1180px); }
  .nav { min-height: 68px; }
  .hero { padding: 45px 0 50px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 18px; margin-top: 30px; }
  .image-placeholder { min-height: 310px; border-radius: 22px; }
  .floating-card { bottom: 18px; left: 12px; right: 12px; }
  .section { padding: 75px 0; }
  .section-heading { margin-bottom: 35px; }
  .services-grid, .reviews-grid, .process-grid, .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-right: 0; border-bottom: 1px solid #30333a; }
  .process-item, .process-item:nth-child(3) { border-left: 0; border-top: 1px solid #d7d7d1; padding: 25px 0; }
  .process-item:first-child { border-top: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 23px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .map-section {
    height: 350px;
    padding: 22px 0;
  }
  .map-placeholder {
    border-radius: 16px;
  }
  .trust-row {
      justify-content: center; /* Centra gli elementi orizzontalmente */
      text-align: center;      /* Centra il testo e i numeri all'interno di ogni blocchetto */
    }


  }


/*-----------------------------------------------*/
/* --- PAGINE LEGALI (Privacy & Cookie Policy) --- */
/* --- PAGINE LEGALI (Contenitore centrato, testo a sinistra) --- */
.legal-page {
  padding: 60px 0 90px;
  max-width: 800px;
  margin-inline: auto; /* Centra il blocco principale nella pagina */
  text-align: left;    /* Mantiene il testo allineato a sinistra */
}

.legal-page h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: -.04em;
  margin-bottom: 10px;
  text-align: center;  /* Se desideri solo il titolo principale centrato */
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 45px;
  text-align: center;  /* Centra la data di aggiornamento sotto al titolo */
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--dark);
}

.legal-section h3 {
  font-size: 17px;
  margin: 20px 0 10px;
  color: var(--dark-2);
}

.legal-section p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 20px;
  margin: 15px 0;
  color: var(--text);
  font-size: 15px;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-section a:hover {
  color: var(--accent-dark);
}

/* --- BANNER COOKIE --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: var(--dark);
  color: #fff;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;

  /* Nasconde il banner fuori dallo schermo mantenendo l'animazione */
  transform: translateY(calc(100% + 40px));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-content p {
  font-size: 13px;
  line-height: 1.5;
  color: #ccc;
  margin: 0;
}

.cookie-content a {
  color: #fff;
  text-decoration: underline;
}

.cookie-content button {
  align-self: flex-start;
}
