/* Reset dei margini e padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  padding-bottom: 80px;
}

/* Disclaimer */
.disclaimer {
  margin: 16px auto;
  font-size: 0.9rem;
  color: #555;
  background: #f8f8f8;
  padding: 12px;
  border-left: 4px solid red;
  border-radius: 8px;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / .04);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 240, 240, 0.95) 50%,
    rgba(255, 255, 255, 0.95) 100%
  );
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.navbar .logo img {
  height: 45px;
  width: auto;
}

.navbar .cta-phone {
  margin-right: 0px;
}

.navbar .cta-phone a {
  color: rgb(255, 255, 255);
  font-size: 1rem;
  text-decoration: none;
}

/* Sezione 1 */
.section-1 {
  padding: 100px 20px 50px;
  position: relative;
  text-align: center;
  margin-top: 0px;
  background: radial-gradient(
    circle at center,
    #7133c2 0%,
    #522399 45%,
    #371565 100%
  );
  min-height: 300px;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.3);
}

.section-1 h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #ececec;
}

.section-1 h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #3f3f3f;
}

.section-1 p {
  font-size: 1rem;
  color: #8d8d8d;
}

/* Sezione 2 */
.section-2 {
  display: flex;
  justify-content: space-between;
  padding: 20px 10px;
  column-gap: 0px;
}

.section-2 .box {
  background: #522399;
  border-radius: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.section-2 .box-with-bottom-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.section-2 .box h2,
.section-2 .box-form h2 {
  background: linear-gradient(131deg, rgba(242,68,117,1) 34%, rgba(162,60,176,1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.section-2 .box h3 {
  color: #686769;
  font-size: 16px;
}

.section-2 .box p {
  font-size: 16px !important;
  margin-bottom: 20px;
  text-align: center;
}

.section-2 .box-with-bottom-content > p {
  flex: 1 1 auto;
}

.section-2 .box-with-bottom-content .bottom-box {
  margin-top: auto;
}

.section-2 .box-info {
  background-color: #cdbee6;
  border-radius: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  padding: 30px;
}

.section-2 .box-info p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.section-2 .box-form h3 {
  text-align: center;
  color: #333;
  font-size: 0.9rem;
}

/* Pulsanti CTA */
.btn-cta {
  display: inline-block;
  background: linear-gradient(
    131deg,
    rgba(242, 68, 117, 1) 34%,
    rgba(162, 60, 176, 1) 100%
  );
  color: white;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.btn-cta.btn-phone {
  display: inline-block;
  background: linear-gradient(
    131deg,
    rgba(242, 68, 117, 1) 34%,
    rgba(162, 60, 176, 1) 100%
  );
  color: #ffffff;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.btn-cta.btn-orange {
  display: inline-block;
  background: linear-gradient(131deg, #ff8c00 0%, #ff6347 100%);
  color: #ffffff;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.btn-cta.btn-orange:hover {
  background: linear-gradient(131deg, #ff7700 0%, #ff5533 100%);
  transform: scale(1.05);
}

.btn-cta.btn-phone2 {
  display: inline-block;
  background: linear-gradient(
    131deg,
    rgb(255, 255, 255) 34%,
    rgb(255, 255, 255) 100%
  );
  color: #000000;
  padding: 12px 30px;
  font-size: 14px;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
}

.btn-cta.btn-phone2:hover {
  background: white;
}

.btn-cta i {
  margin-right: 8px;
}

.section-1 .cta-phone .btn-cta {
  padding: 12px 20px;
}

.section-1 .cta-phone .btn-cta i {
  margin-right: 8px;
  margin-left: 0;
}

.btn-cta:hover,
.btn-cta.btn-phone:hover,
.additional-box:hover,
.contact-form .btn button:hover {
  transform: scale(1.05);
}

.btn-cta:hover,
.btn-phone:hover {
  background: linear-gradient(
    131deg,
    rgba(242, 68, 117, 1) 34%,
    rgba(162, 60, 176, 1) 100%
  );
}

.btn-phone i {
  margin-right: 10px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #333;
  color: white;
  position: relative;
  z-index: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  height: 60px;
}

.footer-info p {
  font-size: 0.9rem;
}

/* Banda mobile fissa */
.cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 240, 240, 0.95) 50%,
    rgba(255, 255, 255, 0.95) 100%
  );
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  backdrop-filter: blur(5px);
}

.cta-mobile a {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
}

.cta-mobile .cta-whatsapp {
  background-color: #25d366;
  border-radius: 50%;
}

.cta-mobile .cta-phone-mobile {
  background: linear-gradient(
    131deg,
    rgba(242, 68, 117, 1) 34%,
    rgba(162, 60, 176, 1) 100%
  );
  border-radius: 35px;
  font-size: 0.9rem;
  font-weight: bold;
}

.cta-mobile .cta-phone-mobile:hover {
  background: linear-gradient(
    131deg,
    rgba(242, 68, 117, 1) 34%,
    rgba(162, 60, 176, 1) 100%
  );
}

/* Box principale */
.box {
  background-color: #bbd4db;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.box p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Box aggiuntivi */
.additional-boxes {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.additional-box {
  padding: 20px;
  border-radius: 15px;
  width: 30%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.additional-box .box-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  color: #ffffff;
}

.additional-box .box-header i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.additional-box .box-header h3 {
  color: white;
  font-size: 1rem;
}

.additional-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.additional-box p {
  font-size: 1rem;
  color: #dddddd;
}

/* Stili per il contenitore del form */
.box-form {
  background: linear-gradient(
    131deg,
    rgba(247, 233, 241, 1) 34%,
    rgba(235, 233, 245, 1) 100%
  );
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Stili per il form di contatto */
.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 25px;
  font-family: "Segoe UI", sans-serif;
  box-sizing: border-box;
}

/* Stili per le checkbox */
.checkbox-container {
  margin-top: 20px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.form-check-input {
  margin-right: 10px;
  margin-top: 4px;
}

.form-check-label {
  font-size: 12px;
  color: #333;
  line-height: 1.4;
  text-align: left;
  max-width: 90%;
  word-break: break-word;
}

.form-check-label a {
  font-weight: 600;
  color: #1e88e5;
  text-decoration: none;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.manage-options {
  margin-top: 10px;
}

.btn-toggle {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
}

.btn-toggle .arrow {
  margin-left: 5px;
}

.extra-checkboxes {
  display: none;
  margin-top: 10px;
}

.contact-form .btn {
  text-align: center;
  margin-top: 20px;
}

.contact-form .btn button {
  background-color: #6e48cf;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  padding: 10px 30px;
  border: none;
  border-radius: 35px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Animazioni */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.fade-in.loaded {
  opacity: 1;
}

/* Cookiebot Widget */
#CookiebotWidget {
  position: fixed !important;
  bottom: 100px !important;
}

/* Pre-footer Section */
.pre-footer {
  background-color: #9b7ccd !important;
  padding: 30px 0 24px 0;
  color: white !important;
  margin: 20px 0 0 0;
}

.pre-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.pre-footer-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.logo-container {
  padding-right: 30px;
}

.logo-subtext {
  font-size: 0.9rem;
  color: white !important;
  margin-top: 10px;
  line-height: 1.4;
}

.pre-footer-logo {
  margin-bottom: 10px;
}

.footer-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.pre-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  flex: 1;
}

.pre-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  transition: transform 0.3s ease;
}

.pre-footer-item:hover {
  transform: translateY(-5px);
}

.pre-footer-item i {
  font-size: 2rem;
  color: #522399;
  margin-bottom: 10px;
}

.pre-footer-item span {
  font-size: 0.9rem;
  color: white !important;
  font-weight: 500;
}

.full-width-banner {
  background-color: #9b7ccd !important;
  padding: 20px 30px;
  margin-top: 20px;
  border-radius: 8px;
  text-align: center;
}

.full-width-banner p {
  margin: 0;
  color: white !important;
  line-height: 1.6;
  font-size: 1rem;
}

/* Media Queries Desktop */
@media (min-width: 1024px) {
  .section-2 {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }

  .section-2 .box,
  .section-2 .box-info {
    width: calc(50% - 20px);
  }

  .section-2 .box-info {
    width: 48%;
  }
}

/* Media Queries Mobile */
@media (max-width: 768px) {
  .section-2 {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .section-2 .box {
    width: 100%;
    margin-bottom: 20px;
  }

  .section-2 .box-info {
    width: 100%;
    margin-top: 20px;
  }

  .cta-mobile {
    display: flex;
  }

  .navbar .cta-phone a {
    font-size: 0;
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar .cta-phone a i {
    font-size: 1.2rem;
    margin-right: 0;
  }

  .section-1 .cta-phone {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .section-1 .cta-phone .btn-phone {
    width: 100%;
    flex-basis: 100%;
    margin-bottom: 10px;
  }

  .section-1 .cta-phone .btn-cta:not(.btn-phone) {
    min-width: 45%;
  }

  body {
    padding-bottom: 80px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-info p {
    text-align: center;
  }

  .additional-boxes {
    flex-direction: column;
    align-items: center;
  }

  .additional-box {
    width: 80%;
    margin-bottom: 20px;
  }

  .form-check {
    flex-wrap: wrap;
  }

  .pre-footer-header {
    flex-direction: column;
  }

  .logo-container {
    width: 100%;
    margin-bottom: 20px;
    padding-right: 0;
    text-align: center;
  }

  .pre-footer-grid {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .pre-footer-item {
    padding: 10px;
  }

  .pre-footer-item i {
    font-size: 1.5rem;
  }

  .pre-footer-item span {
    font-size: 0.8rem;
  }

  .full-width-banner {
    padding: 15px;
  }

  .full-width-banner p {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .pre-footer-header {
    flex-direction: column;
  }

  .logo-container {
    width: 100%;
    margin-bottom: 20px;
    padding-right: 0;
    text-align: center;
  }

  .pre-footer-grid {
    width: 100%;
  }
}
