/* ==========================================================================
   THEME / TOKENS
   Bootstrap 5.3-friendly cleanup
   ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:200,200i,300,300i,400,400i,500,500i,600,600i,700,700i');

:root {
  /* Brand */
  --brand-primary: #9bc43c;
  --brand-primary-hover: #b0d94f;

  --brand-1: #1cd04d;
  --brand-1-hover: #3fe46d;
  --brand-2: #eccd00;
  --brand-2-hover: #ffd964;
  --brand-3: #ff8800;
  --brand-3-hover: #f5a466;
  --brand-4: #fb3d8b;
  --brand-4-hover: #fc81c1;


  /* Supporting palette */
  --green-02: #a2e59c;
  --green-03: #c4eac1;
  --green-04: #c2da91;
  --green-05: #90bc35;
  --green-06: #77e290;
  --green-07: #abce62;

  /* Neutrals */
  --color-title: #242731;
  --color-title-2: #1c2444;
  --color-text: #666666;

  --white: #ffffff;
  --black: #000000;
  --black-alpha: rgba(0, 0, 0, 0.12);

  --gray-50: #fafafa;
  --gray-100: #f6f6f6;
  --gray-150: #f6f5f1;
  --gray-200: #f2f2f2;
  --gray-300: #dddddd;
  --gray-400: #cccccc;
  --gray-500: #999999;
  --gray-700: #2f2f2f;

  /* Semantic aliases */
  --surface: var(--white);
  --surface-soft: var(--gray-100);
  --surface-muted: var(--gray-50);
  --border-color: var(--gray-300);
  --text-color: var(--color-text);
  --heading-color: var(--color-title);
  --link-color: #007AFF;
  --link-hover-color: #006DE5;

  /* Gradients */
  --gradient-section-how: linear-gradient(    135deg,    #f0f0f0,    var(--green-02),    var(--green-03)  );
  --gradient-title: linear-gradient(90deg, var(--green-04), var(--green-05));
  --gradient-icon: linear-gradient(135deg, var(--green-06), var(--green-07));

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 30px var(--black-alpha);
  --shadow-card: 0 10px 50px var(--black-alpha);

  /* Typography */
  --font-family-base: "Montserrat", sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-xs: 0.75rem;

  /* Components */
  --btn-padding-y: 0.875rem;
  --btn-padding-x: 1.25rem;
  --btn-radius: 5px;
  --form-radius: 5px;

  /* Bootstrap overrides */
  --bs-body-color: var(--text-color);
  --bs-body-font-family: var(--font-family-base);
  --bs-border-color: var(--border-color);
  --bs-primary: var(--brand-primary);
  --bs-primary-rgb: 155, 196, 60;
  --bs-link-color: var(--link-color);
  --bs-link-hover-color: var(--link-hover-color);
  --bs-accordion-active-bg: #cccccc;
}

/* ==========================================================================
   BASE
   ========================================================================== */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  color: var(--text-color);
}

@media (max-width: 767.98px) {
  body {
    font-size: 0.875rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

::selection {
  background: var(--brand-primary);
  color: var(--white);
}

::-moz-selection {
  background: var(--brand-primary);
  color: var(--white);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: var(--link-hover-color);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--heading-color);
  font-weight: 600;
}

h2 small,
h3 small {
  display: block;
  font-size: 50%;
  font-weight: 400;
}

hr {
  margin: 2rem 0;
}

.container {
  position: relative;
}

.text-justify {
  text-align: justify;
}

.bg-grey {
  background: var(--surface-soft);
}

.rellax {
  transition: transform 5s cubic-bezier(0, 1, 0.5, 1);
}

.interno .testo * {
  line-height: inherit;
}

/* ==========================================================================
   UTILITIES / THEME HELPERS
   ========================================================================== */

.linea_ { color: var(--brand-primary); }
.linea_b { color: var(--brand-primary-hover); }
.linea_ > span { color: var(--brand-primary-hover); }

.linea_1 { color: var(--brand-1); }
.linea_1b { color: var(--brand-1-hover); }
.linea_1 > span { color: var(--brand-1-hover); }

.linea_2 { color: var(--brand-2); }
.linea_2b { color: var(--brand-2-hover); }
.linea_2 > span { color: var(--brand-2-hover); }

.linea_3 { color: var(--brand-3); }
.linea_3b { color: var(--brand-3-hover); }
.linea_3 > span { color: var(--brand-3-hover); }

.linea_4 { color: var(--brand-4); }
.linea_4b { color: var(--brand-4-hover); }
.linea_4 > span { color: var(--brand-4-hover); }

.bg-color01 { background: var(--brand-1); }
.bg-color02 { background: var(--brand-2); }
.bg-color03 { background: var(--brand-3); }
.bg-color04 { background: var(--brand-4); }

/* ==========================================================================
   LAYOUT / CONTENT
   ========================================================================== */

.content {
  overflow: hidden;
}

.content .container {
  position: relative;
  z-index: 3;
}

.content section {
  position: relative;
  display: block;
}

.content > section {
  padding: 2rem 1.875rem;
}

@media (max-width: 767.98px) {
  .content > section {
    padding: 2rem 1rem;
  }
}

header {
  position: relative;
  margin-bottom: -2.2rem;
  text-align: right;
}

header .logo {
  margin: 4vw 6rem;
}

header h1 {
  position: absolute;
  bottom: 3.6rem;
}

@media (max-width: 991px) {
	header {text-align: center}
  header .logo {
    width: 150px;
  }

  header h1 {
    bottom: 5rem;
  }
}

.content h2 {
  margin: 2rem 0 0;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 700;
}

.content h2 small {
  font-size: 1.8rem;
  font-weight: 400;
}

.content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.content h4 {
  font-size: 1.2rem;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .content h2 small {
    font-size: 50%;
  }
}

@media (max-width: 768px) {
	.content h3 {  font-size: 1.3rem;}
	.content h3 small{  font-size: 0.8rem;}
}

/* ==========================================================================
   DECORATIVE CIRCLES
   ========================================================================== */

.cerchio-grande {
  position: absolute;
  z-index: 3;
  width: 50vw;
  height: 30vw;
}

.sinistra { left: -30vw; top: -20vw; }
.destra { right: -20vw; top: -5vw; }
.destra2 { right: -15vw; top: 10vw; }
.sinistra2 { left: -34vw; top: -10vw; }
.alto { top: -10vw; }
.basso { bottom: -10vw; }

/* ==========================================================================
   BOXES
   ========================================================================== */

.box-contenuti {
  position: relative;
  top: -3rem;
  padding: 30px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
@media (max-width: 768px) {
	.box-contenuti {padding: 20px;top: -2rem;}
}

.registrazione {
  position: relative;
}

/* ==========================================================================
   SECTION: COME FUNZIONA
   ========================================================================== */

section.comefunziona {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 2rem 0;
  font-size: 0.9rem;
  background: var(--gradient-section-how);
}

section.comefunziona .container {
  z-index: 4;
}

section.comefunziona h3,
section.comefunziona h4 {
  font-weight: 700;
}

section.comefunziona h3 {
  margin-bottom: 2rem;
}

section.comefunziona h4 {
  font-size: 1.3rem;
}

section.comefunziona .punto {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
}

section.comefunziona .row > div:nth-child(even) .punto {
  background: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   SECTION: REGISTRAZIONE
   ========================================================================== */

section.registrazione {
  padding: 0;
  background: var(--surface);
}

section.registrazione .container {
  z-index: 4;
  margin-top: -2%;
}

section.registrazione h2 {
  margin-top: 0;
  font-size: 3rem;
}

section.registrazione .box-contenuti h2 {
  color: transparent;
  text-shadow: none;
  background: var(--gradient-title);
  background-clip: text;
  -webkit-background-clip: text;
}

@media (max-width: 1200px) {
  section.registrazione h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991px) {
  section.registrazione .container {
    padding-inline: 15px;
  }
  section.registrazione h2 {
    font-size: 1.7rem;
	  line-height: 1.8rem;
  }	
}
.thankyou{padding:5vw}
/* ==========================================================================
   BUTTONS
   Nota: sfrutta .btn di Bootstrap, qui fai solo theming/custom variants
   ========================================================================== */

.btn {
  position: relative;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  padding: 1rem;
  border: 0;
  border-radius: var(--btn-radius);
  font-weight: 600;
  border-bottom:1px solid var(--black-alpha);
}

.btn i {
  position: absolute;
  margin-left: 20px;
  font-size: 25px;
}
.btn i.prima{margint:0px;left:0px}
.btn-white {
  color: var(--brand-primary);
  background: var(--white);
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active {
  color: var(--brand-primary);
  background: var(--white);
}

.btn-light {
  color: var(--gray-700);
  background: var(--surface-soft);
  border: 1px solid var(--white);
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
  color: var(--brand-primary);
  background: var(--white);
  border: 1px solid var(--brand-primary);
}

.btn-bordo {
  color: var(--brand-primary);
  background: transparent;
  border: 1px solid var(--brand-primary);
}

.btn-bordo:hover,
.btn-bordo:focus,
.btn-bordo:active {
  color: var(--white);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-fb {
  color: var(--white);
  background: #4267b4;
}

.btn-fb:hover,
.btn-fb:focus,
.btn-fb:active {
  color: var(--white);
  background: #577bc7;
}

.btn-tik {
  color: var(--black);
  background: var(--white);
  border-color: var(--black);
  border: 1px solid var(--black);
}

.btn-tik:hover,
.btn-tik:focus,
.btn-tik:active {
  color: var(--white);
  background: var(--black);
}
.btn-x {
  color: var(--white);
  background: var(--gray-700);
  border-color: var(--black);
  border: 1px solid var(--black);
}

.btn-x:hover,
.btn-x:focus,
.btn-x:active {
  color: var(--white);
  background: var(--black);
}

.btn-tw {
  color: var(--white);
  background: #1da1f2;
}

.btn-tw:hover,
.btn-tw:focus,
.btn-tw:active {
  color: var(--white);
  background: #3ab4fe;
}

/* Bootstrap 5: preferisci .w-100 invece di .btn-block */
.btn-block {
  width: 100%;
}
.btn-principale {
  color: #fff;
  background: var(--brand-primary);
}

.btn-principale:hover,
.btn-principale:focus,
.btn-principale:active {
  color: #fff;
  background: var(--brand-primary-hover);
}
/* ==========================================================================
   FORMS
   Nota: .custom-select e .custom-control-label sono legacy Bootstrap 4
   ========================================================================== */

.boxcampi {
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.form-control {
  padding: 1rem;
  background: var(--surface-muted);
  border: 0;
  border-radius: var(--form-radius);
  border-bottom:1px solid var(--border-color);
	
}
@media (max-width: 768px) {
	
.boxcampi {  padding: 1rem;}
}



textarea.form-control {
  min-height: 100px;
}

.privacy-checkbox {
  margin-top: 15px;
  font-size: 1.3rem;

}
.privacy-checkbox input{margin-top: 8px}
.privacy-checkbox label{

	font-size: 12px; 
	font-weight: 400;

}
.privacy-checkbox span{display: flex;font-size: 12px; line-height:14px;font-weight: 400;}
.privacy-checkbox a{font-weight: 600}

.invio {
  margin-top: 15px;
}

/* ==========================================================================
   STEPPER
   ========================================================================== */

.step-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 1rem 0;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.line {
  width: 48px;
  height: 2px;
  background: #cfd4dc;
}

.step {
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 1.5px solid #b8bec8;
  border-radius: 50%;
}

.step.active {
  background: #1e88ff;
  border-color: #1e88ff;
}

/* ==========================================================================
   ICON CARD
   Nota: .badge confligge con Bootstrap, rinominare in markup sarebbe meglio
   ========================================================================== */

.icon-card-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.icon-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: var(--gradient-icon);
  border-radius: 14px;
}

.icon-placeholder {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Consigliato rinominare in .icon-badge */
.icon-badge {
  position: absolute;
  top: -14px;
  left: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #222;
  font-size: 20px;
  font-weight: 700;
  background: #e9e9e9;
  border: 4px solid #f4f4f4;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   CAROUSEL FADE
   Nota: qui c'era sintassi legacy Bootstrap 4.
   In Bootstrap 5 conviene usare il fade nativo (.carousel-fade).
   Tieni solo questo se devi forzare durata/transizione.
   ========================================================================== */

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}
/* wrapper struttura */
.punto-top {
  display: block;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 767.98px) {
  .punto-top {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
  }

  .punto-top .icon-card-wrapper {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .punto-top .icon-card {
    width: 72px;
    height: 72px;
  }

  .punto-top .icon-placeholder {
    width: 36px;
    height: 36px;
  }

  .punto-top .icon-badge {
    width: 28px;
    height: 28px;
    font-size: 14px;
    top: -8px;
    left: -8px;
  }

  .punto-top h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.1;
  }

  .punto p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
  }
}
/* ==========================================================================
   FANCYBOX / OVERLAY
   ========================================================================== */

body.overlay {
  padding: 30px;
}

@media (max-width: 768px) {
  body.overlay {
    padding: 15px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  position: relative;
  z-index: 3;
  color: var(--color-text);
}

footer {
  display: block;
  padding: 30px 15px;
  font-size: 12px;
  background: var(--surface-soft);
}

footer a {
  color: var(--black);
  transition: color 0.6s ease, background-color 0.6s ease;
}

footer a:hover {
  color: var(--brand-primary-hover);
}

footer strong {
  color: var(--black);
}

footer .container {
  position: relative;
}

footer .logo {
  width: 50px;
}

footer .logo-footer {
  display: inline-block;
  height: 40px;
  margin-right: 1rem;
}

footer ul {
  margin: 0;
  padding: 0;
}

footer ul li {
  margin: 10px 0;
  list-style: none;
}

footer .copyright {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 10px;
  border-top: 1px solid var(--black-alpha);
}

@media (max-width: 1200px) {
  footer .logo-footer {
    height: 35px;
  }
}

@media (max-width: 991px) {
  footer {
    margin-bottom: 10px;
  }

  .footer .accordion * {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 15px;
  }
}

@media (max-width: 565px) {
  footer .container {
    padding: 0;
  }
}

/* Social icons */

.social-icons {
  width: 100%;
  margin: 0;
  padding: 0;
}

.social-icons.mobile {
  display: inline;
}

.social-icons li {
  display: inline-block;
  margin: 0;
  padding: 0;
  text-align: center;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 3px 3px 0;
  color: var(--black);
  line-height: 42px;
  font-size: 25px;
  background-color: var(--gray-300);
  border-radius: 36px;
}

.social-icons a:hover {
  color: var(--brand-primary);
  background-color: var(--white);
}

.footer .social-icons i,
.footer .social-icons a {
  font-size: 25px;
}

.social-icons.mobile a {
  width: 35px;
  height: 35px;
  margin-left: 5px;
  line-height: 35px;
  font-size: 15px;
}

/* Footer accordion */

.footer .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.footer .accordion .accordion-body {
  padding: 0;
}

.footer .accordion-button {
  padding: 0;
  color: var(--black);
  font-weight: 700;
  background: none;
}

.footer .accordion-item {
  background: none;
  border: 0;
}

.footer .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23415d76'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.footer .accordion-header strong {
  display: none;
}

@media (min-width: 992px) {
  .footer .accordion-header .accordion-button {
    display: none;
    padding: 0;
    font-weight: 700;
    background: none;
  }

  .footer .accordion-header strong {    display: block;  }

  .footer .collapse:not(.show) {    display: block;  }
}

@media (max-width: 991px) {
  .footer .accordion-header .accordion-button {    padding: 15px 0;  }
}