/*==================================================
PAGINA PROVA GRATUITA
==================================================*/

body {
  background: #ffffff;
}

/*==================================================
PAGINA PROVA
==================================================*/

.trial-hero {
  padding: 180px 0 120px;

  background: #143a5a;

  color: #fff;
}

.trial-content {
  max-width: 700px;
}

.trial-content h1 {
  font-size: 4rem;

  line-height: 1.1;

  margin: 28px 0;
}

.trial-content p {
  font-size: 1.3rem;

  line-height: 1.8;

  max-width: 600px;

  margin-bottom: 40px;
}

.trial-buttons {
  display: flex;

  gap: 18px;

  flex-wrap: wrap;
}

.trial-grid {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  align-items: center;

  gap: 70px;
}

.trial-image img {
  width: 100%;

  border-radius: 28px;

  display: block;

  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

/*==================================================
FEATURES
==================================================*/

.trial-features {
  margin-top: 28px;

  max-width: 320px;

  display: flex;

  flex-direction: column;

  gap: 18px;
}

.trial-feature {
  display: flex;

  align-items: center;

  gap: 14px;

  font-size: 1.05rem;

  font-weight: 500;

  color: rgba(255, 255, 255, 0.95);
}

.trial-feature i {
  width: 34px;

  height: 34px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: rgba(255, 255, 255, 0.12);

  color: #6cff93;

  font-size: 1rem;
}

/*==================================================
COME FUNZIONA
==================================================*/

.trial-steps {
  padding: 110px 0;

  background: #ffffff;
}

.section-heading {
  text-align: center;

  max-width: 700px;

  margin: 0 auto 70px;
}

.section-heading h2 {
  font-size: 3rem;

  color: #143a5a;

  margin: 22px 0;
}

.section-heading p {
  font-size: 1.2rem;

  color: #6b7280;

  line-height: 1.8;
}

.steps-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 32px;
}

.step-card {
  background: #ffffff;

  border-radius: 24px;

  padding: 42px;

  text-align: center;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);

  transition: 0.3s;
}

.step-card:hover {
  transform: translateY(-8px);
}

.step-number {
  width: 70px;

  height: 70px;

  margin: 0 auto 28px;

  border-radius: 50%;

  background: #d6007f;

  color: #ffffff;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 1.8rem;

  font-weight: 800;
}

.step-card h3 {
  color: #143a5a;

  margin-bottom: 18px;
}

.step-card p {
  color: #6b7280;

  line-height: 1.7;
}

/*==================================================
FORM
==================================================*/

.trial-form-section {
  padding: 120px 0;

  background: #f8fafc;
}

.form-layout {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 70px;

  align-items: center;
}

.form-intro h2 {
  font-size: 3rem;

  color: #143a5a;

  margin: 20px 0;
}

.form-intro p {
  font-size: 1.15rem;

  line-height: 1.8;

  color: #6b7280;

  margin-bottom: 30px;
}

.form-benefits {
  list-style: none;

  padding: 0;

  margin: 0;

  display: flex;

  flex-direction: column;

  gap: 18px;

  font-weight: 600;

  color: #143a5a;
}

.trial-form {
  background: #ffffff;

  border-radius: 28px;

  padding: 50px;

  box-shadow:
    0 30px 80px rgba(20, 58, 90, 0.08),
    0 8px 20px rgba(20, 58, 90, 0.05);

  border: 1px solid rgba(20, 58, 90, 0.06);

  display: flex;

  flex-direction: column;

  gap: 22px;
}

.form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 18px;
}

.trial-form input,
.trial-form select,
.trial-form textarea {
  width: 100%;

  padding: 18px 20px;

  border: 2px solid #e7edf5;

  border-radius: 16px;

  background: #ffffff;

  font-size: 1rem;

  font-family: inherit;

  color: #143a5a;

  transition: all 0.25s ease;

  outline: none;

  min-height: 56px;

  border-radius: 18px;

  font-weight: 500;
}

.trial-form input:focus,
.trial-form select:focus,
.trial-form textarea:focus {
  border-color: #d6007f;

  background: #ffffff;

  box-shadow:
    0 0 0 4px rgba(214, 0, 127, 0.12),
    0 10px 25px rgba(214, 0, 127, 0.1);

  transform: translateY(-2px);
}

.trial-form input::placeholder,
.trial-form textarea::placeholder {
  color: #9ca3af;
}

.trial-form button {
  width: 100%;

  min-height: 58px;

  font-size: 1.05rem;

  font-weight: 700;

  border-radius: 18px;

  transition: 0.3s;
}

.trial-form button:hover {
  transform: translateY(-3px);

  box-shadow: 0 18px 35px rgba(214, 0, 127, 0.25);
}

.trial-form select {
  appearance: none;

  -webkit-appearance: none;

  -moz-appearance: none;

  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23143a5a' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5L8 12l6.5-6.5' stroke='%23143a5a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;

  background-position: right 18px center;

  background-size: 16px;

  padding-right: 55px;
}

.privacy-check {
  padding: 12px 0;

  align-items: flex-start;
}

.privacy-check input {
  margin-top: 4px;

  flex-shrink: 0;

  width: 18px;

  height: 18px;

  accent-color: #d6007f;
}

.form-title {
  font-size: 1.8rem;

  color: #143a5a;

  margin-bottom: 6px;
}

.form-subtitle {
  color: #6b7280;

  margin-bottom: 18px;

  line-height: 1.6;
}

/*==================================================
FAQ
==================================================*/

.trial-faq {
  padding: 120px 0;

  background: #ffffff;
}

.faq-list {
  max-width: 900px;

  margin: 60px auto 0;
}

.faq-item {
  background: #ffffff;

  border: 1px solid #e6edf4;

  border-radius: 18px;

  margin-bottom: 18px;

  overflow: hidden;

  transition: 0.3s;
}

.faq-item:hover {
  box-shadow: 0 10px 30px rgba(20, 58, 90, 0.08);
}

.faq-item summary {
  cursor: pointer;

  list-style: none;

  padding: 24px 28px;

  font-size: 1.15rem;

  font-weight: 700;

  color: #143a5a;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";

  font-size: 1.6rem;

  color: #d6007f;

  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 28px 24px;

  color: #6b7280;

  line-height: 1.8;
}

/*==================================================
CTA FINALE
==================================================*/

.trial-cta {
  padding: 120px 0;

  background: linear-gradient(135deg, #143a5a 0%, #1b4c73 100%);
}

.trial-cta-box {
  max-width: 900px;

  margin: 0 auto;

  text-align: center;

  color: #ffffff;
}

.trial-cta-box h2 {
  font-size: 3rem;

  margin: 24px 0;

  color: #ffffff;

  font-weight: 800;

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.trial-cta-box p {
  font-size: 1.2rem;

  line-height: 1.8;

  max-width: 700px;

  margin: 0 auto 45px;

  color: rgba(255, 255, 255, 0.88);
}

.trial-cta-buttons {
  display: flex;

  justify-content: center;

  gap: 20px;

  flex-wrap: wrap;
}

/*==================================================
TABLET
==================================================*/

@media (max-width: 1024px) {
  .trial-grid {
    grid-template-columns: 1fr;

    gap: 50px;

    text-align: center;
  }

  .trial-content {
    max-width: 100%;

    margin: auto;
  }

  .trial-content p {
    max-width: 100%;
  }

  .trial-buttons {
    justify-content: center;
  }

  .trial-features {
    max-width: 100%;

    flex-direction: row;

    justify-content: center;

    flex-wrap: wrap;
  }

  .form-layout {
    grid-template-columns: 1fr;

    gap: 60px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/*==================================================
SMARTPHONE
==================================================*/

@media (max-width: 768px) {
  /* HERO */

  .trial-hero {
    padding: 140px 0 80px;
  }

  .trial-content h1 {
    font-size: 2.5rem;

    line-height: 1.15;
  }

  .trial-content p {
    font-size: 1.05rem;
  }

  .trial-buttons {
    flex-direction: column;

    align-items: stretch;
  }

  .trial-buttons .button {
    width: 100%;

    text-align: center;
  }

  /* FEATURES */

  .trial-features {
    flex-direction: column;

    align-items: flex-start;

    margin: 40px auto 0;
  }

  /* TITOLI */

  .section-heading h2,
  .form-intro h2,
  .trial-cta-box h2 {
    font-size: 2rem;
  }

  /* CARD */

  .step-card {
    padding: 30px 24px;
  }

  /* FORM */

  .trial-form {
    padding: 30px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;

    gap: 16px;
  }

  .trial-form input,
  .trial-form select,
  .trial-form textarea {
    font-size: 16px;

    padding: 16px;
  }

  .trial-form button {
    width: 100%;
  }

  /* FAQ */

  .faq-item summary {
    padding: 20px;

    font-size: 1rem;
  }

  .faq-item p {
    padding: 0 20px 20px;
  }

  /* CTA */

  .trial-cta-buttons {
    flex-direction: column;
  }

  .trial-cta-buttons .button {
    width: 100%;

    text-align: center;
  }
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
}

/* ==================================================
FORM ALA - MODULO NATIVO
================================================== */

.ala-trial-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  color: #143a5a;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-field label > span:not(.optional) {
  color: #d6007f;
}

.form-field label .optional {
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 500;
}

.ala-trial-form input,
.ala-trial-form select,
.ala-trial-form textarea {
  box-sizing: border-box;
}

.ala-trial-form textarea {
  resize: vertical;
  min-height: 120px;
}

.ala-trial-form .privacy-check {
  display: flex;
  gap: 10px;
  margin: 2px 0 0;
  padding: 4px 0;
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ala-trial-form .privacy-check input {
  margin-top: 3px;
}

.ala-trial-form .privacy-check a {
  color: #143a5a;
  font-weight: 700;
  text-decoration: underline;
}

.ala-trial-form .privacy-check strong {
  color: #d6007f;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  background: #d6007f !important;
  color: #fff !important;
}

.form-submit:hover {
  background: #b10067 !important;
}

.form-required-note {
  margin: -4px 0 0;
  color: #8a94a3;
  font-size: 0.78rem;
  text-align: right;
}

.form-required-note span {
  color: #d6007f;
  font-weight: 700;
}

/* ===== Pulsanti pagina Prova ===== */

/* PROVA GRATUITA nel menu */
.nav-cta.button,
.nav-cta.button-primary {
  background-color: #d6007f !important;
  background: #d6007f !important;
  border-color: #d6007f !important;
  color: #ffffff !important;
}

/* PRENOTA ORA */
.trial-buttons a.button-primary,
.trial-cta-buttons a.button-primary {
  background-color: #d6007f !important;
  background: #d6007f !important;
  border-color: #d6007f !important;
  color: #ffffff !important;
}

/* CHIAMACI */
.trial-buttons a.button-secondary,
.trial-cta-buttons a.button-secondary {
  background-color: #16a34a !important;
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

/* Hover magenta */
.trial-buttons a.button-primary:hover,
.trial-cta-buttons a.button-primary:hover,
.nav-cta.button:hover,
.nav-cta.button-primary:hover {
  background-color: #b10067 !important;
  background: #b10067 !important;
  border-color: #b10067 !important;
  color: #ffffff !important;
}

/* Hover verde */
.trial-buttons a.button-secondary:hover,
.trial-cta-buttons a.button-secondary:hover {
  background-color: #15803d !important;
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}


/* ==================================================
CORREZIONE CAMPO DATA SU MOBILE
================================================== */

.trial-form input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 56px;
}

@media (max-width: 768px) {
  .trial-form input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 56px;
    min-height: 56px;
    padding: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
  }
}
