/* =========================================================
   PRENOTAZIONI — π-factor
   ========================================================= */


/* =========================================================
   RESET PAGINA
   ========================================================= */

body.page-prenotazioni {
  background: #fff !important;
  background-image: none !important;
}

.page-prenotazioni main {
  overflow: hidden;
  background: #fff;
}

.page-prenotazioni .section {
  background-image: none !important;
}


/* =========================================================
   HERO — COMPONENTE GLOBALE
   ========================================================= */

.page-prenotazioni .site-hero {
  --hero-fit: contain;
  --hero-position: right center;
  --hero-mobile-position: 67% center;
}

.page-prenotazioni .site-hero-background {
  background: #fff;
}

.page-prenotazioni
.site-hero-benefit:nth-child(1)
.site-hero-benefit-icon {
  background: rgba(62,223,218,.18);
  border-color: rgba(62,223,218,.30);
  color: #173044;
}

.page-prenotazioni
.site-hero-benefit:nth-child(2)
.site-hero-benefit-icon {
  background: rgba(16,190,243,.16);
  border-color: rgba(16,190,243,.28);
  color: var(--blue);
}

.page-prenotazioni
.site-hero-benefit:nth-child(3)
.site-hero-benefit-icon {
  background: rgba(255,160,58,.17);
  border-color: rgba(255,160,58,.30);
  color: #d97812;
}


/* =========================================================
   APPUNTAMENTI
   ========================================================= */

.page-prenotazioni .booking-appointments {
  position: relative;
  overflow: visible;

  background:
    radial-gradient(
      circle at 7% 12%,
      rgba(62,223,218,.23),
      transparent 26%
    ),
    radial-gradient(
      circle at 94% 90%,
      rgba(255,160,58,.13),
      transparent 23%
    ),
    linear-gradient(
      135deg,
      rgba(62,223,218,.10),
      rgba(16,190,243,.045)
    ) !important;
}

.booking-container-wide {
  max-width: 1180px;
}


/* =========================================================
   INTRO
   ========================================================= */

.page-prenotazioni .booking-section-intro {
  max-width: 850px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.page-prenotazioni .booking-section-intro h2 {
  margin: .7rem 0 0;
  color: #173044;
  font-size: clamp(2.8rem,4.5vw,4.7rem);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 850;
}

.page-prenotazioni .booking-section-intro > p:last-child {
  max-width: 680px;
  margin: 1rem auto 0;
  color: #607585;
  font-size: 1.03rem;
  line-height: 1.65;
}


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

.booking-layout-with-access {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}

.booking-main-column {
  display: grid;
  gap: 1.4rem;
}


/* =========================================================
   BOX VALUTAZIONE / LEZIONI
   ========================================================= */

.booking-priority-box,
.booking-secondary-box {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border-radius: 27px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.90);
  box-shadow: 0 16px 38px rgba(23,48,68,.08);
}

.booking-priority-box {
  scroll-margin-top: 110px;

  background:
    linear-gradient(
      145deg,
      rgba(62,223,218,.16),
      rgba(255,255,255,.94) 48%
    );
}

.booking-secondary-box {
  scroll-margin-top: 110px;

  background:
    linear-gradient(
      145deg,
      rgba(16,190,243,.11),
      rgba(255,255,255,.95) 48%
    );
}


/* =========================================================
   TESTATA BOX
   ========================================================= */

.booking-box-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.booking-box-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: rgba(62,223,218,.18);
  border: 1px solid rgba(62,223,218,.27);
  color: #078f9c;
  font-size: .75rem;
  font-weight: 900;
}

.booking-secondary-box .booking-box-number {
  background: rgba(16,190,243,.15);
  color: var(--blue);
}

.booking-box-kicker {
  margin: 0 0 .35rem;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.booking-box-heading h3 {
  margin: 0;
  color: #173044;
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 850;
}

.booking-box-heading p:last-child {
  max-width: 680px;
  margin: .55rem 0 0;
  color: #607585;
  line-height: 1.55;
}


/* =========================================================
   GRIGLIA CARD
   ========================================================= */

.booking-grid-two-cols {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .9rem;
}

.booking-grid-compact {
  max-width: none;
  margin: 0;
}


/* =========================================================
   CARD APPUNTAMENTI
   ========================================================= */

.booking-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(16,162,247,.09);
  box-shadow: 0 10px 25px rgba(23,48,68,.055);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.booking-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(23,48,68,.10);
}

.booking-card-inner {
  height: 100%;
  padding: 1.35rem;
  border-top: 5px solid var(--aqua);
}

.booking-maturity-online .booking-card-inner {
  border-top-color: var(--turquoise);
}

.booking-lesson-online .booking-card-inner {
  border-top-color: var(--blue);
}

.booking-lesson-bedano .booking-card-inner {
  border-top-color: var(--aqua);
}

.booking-lesson-flex .booking-card-inner {
  border-top-color: var(--turquoise);
}

.booking-parents .booking-card-inner {
  border-top-color: var(--orange);
}

.booking-kicker {
  margin: 0 0 .55rem;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.booking-card h3 {
  margin: 0 0 .55rem;
  color: #173044;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 850;
}

.booking-card p {
  margin: 0 0 .8rem;
  color: #607585;
  font-size: .92rem;
  line-height: 1.5;
}

.booking-meta {
  color: #415968 !important;
  font-size: .78rem !important;
  font-weight: 750;
}

.booking-card .btn {
  margin-top: .25rem;
  min-height: 44px;
  padding: .72rem 1rem;
  font-size: .88rem;
}


/* =========================================================
   AREA STUDENTI
   ========================================================= */

.student-access-card {
  position: sticky;
  top: 100px;
  overflow: hidden;
  padding: 1.55rem;
  border-radius: 25px;

  background:
    linear-gradient(
      145deg,
      rgba(16,162,247,.96),
      rgba(16,190,243,.94)
    );

  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 18px 42px rgba(23,48,68,.14);
  color: #fff;
}

.student-access-card::after {
  content: "π";
  position: absolute;
  right: -25px;
  bottom: -60px;
  color: rgba(255,255,255,.08);
  font-size: 11rem;
  line-height: 1;
  font-weight: 900;
}

.student-access-card > * {
  position: relative;
  z-index: 2;
}

.student-access-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1.3rem;
  border-radius: 16px;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
}

.student-access-card .booking-box-kicker {
  color: rgba(255,255,255,.77);
}

.student-access-card h2 {
  margin: 0 0 .7rem;
  color: #fff;
  font-size: 1.55rem;
}

.student-access-card > p {
  color: rgba(255,255,255,.92);
  line-height: 1.55;
}

.student-access-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: .7rem 0 1rem;
  padding: .78rem 1rem;
  background: #fff;
  color: #173044;
  border-color: #fff;
  box-shadow: 0 12px 26px rgba(23,48,68,.12);
}

.student-access-card .note {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: .82rem;
}


/* =========================================================
   CORSI ESTIVI — FORM
   ========================================================= */

.summer-interest-section {
  position: relative;
  overflow: hidden;
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;

  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(255,160,58,.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 7% 90%,
      rgba(62,223,218,.19),
      transparent 26%
    ),
    var(--gray) !important;
}

.summer-interest-box {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.91);
  box-shadow: 0 20px 48px rgba(23,48,68,.09);
}


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

.summer-interest-heading {
  max-width: 780px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.summer-interest-heading h2 {
  margin: .7rem 0 0;
  color: #173044;
  font-size: clamp(2.5rem,4vw,4rem);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 850;
}

.summer-interest-intro {
  max-width: 690px;
  margin: 1rem auto 0;
  color: #607585;
  line-height: 1.65;
}

.summer-interest-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.4rem;
}

.summer-interest-highlights span {
  padding: .55rem .8rem;
  border-radius: 999px;
  background: rgba(62,223,218,.13);
  border: 1px solid rgba(62,223,218,.22);
  color: #173044;
  font-size: .8rem;
  font-weight: 750;
}

.summer-interest-highlights span:nth-child(2) {
  background: rgba(16,190,243,.12);
  border-color: rgba(16,190,243,.20);
}

.summer-interest-highlights span:nth-child(3) {
  background: rgba(16,162,247,.10);
  border-color: rgba(16,162,247,.18);
}

.summer-interest-highlights span:nth-child(4) {
  background: rgba(255,160,58,.13);
  border-color: rgba(255,160,58,.22);
}


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

.summer-interest-form {
  display: grid;
  gap: 1rem;
}


/* =========================================================
   FIELDSET
   ========================================================= */

.form-step {
  margin: 0;
  padding: 1.45rem;
  border-radius: 21px;
  background: rgba(245,250,252,.75);
  border: 1px solid rgba(16,162,247,.10);
}

.form-step:nth-of-type(2) {
  background: rgba(62,223,218,.065);
}

.form-step:nth-of-type(3) {
  background: rgba(16,190,243,.055);
}

.form-step:nth-of-type(4) {
  background: rgba(255,160,58,.055);
}

.form-step legend {
  padding: 0 .45rem;
  color: #173044;
  font-size: 1rem;
  font-weight: 850;
}

.form-step legend span {
  margin-right: .45rem;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 900;
}


/* =========================================================
   INPUT
   ========================================================= */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}

.form-row + .form-row {
  margin-top: 1rem;
}

.form-grid .form-row + .form-row {
  margin-top: 0;
}

.form-row label {
  display: block;
  margin-bottom: .4rem;
  color: #173044;
  font-size: .9rem;
  font-weight: 750;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .82rem .9rem;
  border-radius: 12px;
  border: 1px solid rgba(23,48,68,.14);
  background: #fff;
  color: #173044;
  font-family: inherit;
  font-size: .95rem;
  outline: none;

  transition:
    border-color .2s ease,
    box-shadow .2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(16,162,247,.55);
  box-shadow: 0 0 0 4px rgba(16,162,247,.09);
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .6rem;
}

.checkbox-group-enhanced label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(16,162,247,.10);
  cursor: pointer;
}

.checkbox-group-enhanced input {
  width: auto;
}


/* =========================================================
   CONSENSI
   ========================================================= */

.consent-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consent-line {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  font-size: .9rem;
  line-height: 1.45;
}

.consent-line input {
  width: auto;
  margin-top: 4px;
}


/* =========================================================
   HELP / MESSAGE
   ========================================================= */

.form-help {
  margin: .65rem 0 0;
  color: #748793;
  font-size: .84rem;
  line-height: 1.5;
}

.form-message {
  margin: .8rem 0 0;
  font-weight: 750;
}

.form-message.success {
  color: #2f7d32;
}

.form-message.error {
  color: #b3261e;
}


/* =========================================================
   SUBMIT
   ========================================================= */

.summer-interest-submit {
  margin-top: .4rem;
  text-align: center;
}

.summer-interest-submit .btn {
  min-height: 52px;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


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

@media (max-width: 980px) {

  .booking-layout-with-access {
    grid-template-columns: 1fr;
  }

  .student-access-card {
    position: relative;
    top: auto;
    order: -1;
  }

}


/* =========================================================
   CARD MOBILE / TABLET
   ========================================================= */

@media (max-width: 820px) {

  .booking-grid-two-cols {
    grid-template-columns: 1fr;
  }

  .checkbox-group {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

}


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

@media (max-width: 760px) {

  .booking-priority-box,
  .booking-secondary-box {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .booking-box-heading {
    grid-template-columns: 1fr;
  }

  .summer-interest-box {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .form-grid,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .form-step {
    padding: 1.15rem;
  }

}
/* Richieste estive: stato non operativo, senza modulo di invio */
.summer-interest-unavailable { padding:1.5rem; border:2px solid #12657a; border-radius:1rem; background:#e9f8fa; color:#123744; }
.summer-interest-unavailable p { color:#123744; }
.summer-interest-unavailable .btn:focus-visible { outline:3px solid #153c60; outline-offset:4px; }
