/* Santa Tecla – Pop-up Open Day & Settimana di prova gratuita (v1)
   Palette: crema #f5efe4, inchiostro #2f3b36, terracotta #b5603f, oliva #7d8a5c */
.st-pop[hidden]{display:none!important}
.st-pop-lock{overflow:hidden}
.st-pop-trigger{display:none}
.js .st-pop-trigger{display:inline-flex}

.st-pop{
  position:fixed;
  inset:0;
  z-index:900;
  display:grid;
  place-items:center;
  padding:.65rem;
  background:rgba(47,59,54,.62);
  backdrop-filter:blur(4px);
}
@media (min-width:640px){
  .st-pop{padding:1.25rem}
}

.st-pop-card{
  width:min(1120px,100%);
  max-height:calc(100dvh - 1.3rem);
  overflow-y:auto;
  overscroll-behavior:contain;
  background:#f5efe4;
  color:#2f3b36;
  border-radius:20px;
  border:1.5px solid #d9ceba;
  box-shadow:0 24px 64px rgba(24,32,28,.34);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.55;
}
@media (min-width:640px){
  .st-pop-card{max-height:calc(100dvh - 2.5rem);border-radius:24px}
}
.st-pop-card :focus-visible{
  outline:3px solid #b5603f;
  outline-offset:2px;
}

.st-pop-top{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.85rem;
  padding:.85rem 1rem;
  background:#f5efe4;
  border-bottom:1.5px solid #dfd5c2;
}
@media (min-width:880px){
  .st-pop-top{padding:.75rem 1.45rem}
}

.st-pop-brand{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-width:0;
}
.st-pop-brand img{
  width:40px;
  height:auto;
  flex:none;
}
.st-pop-kicker{
  margin:0;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:#4c5733;
}
.st-pop-slogan{
  margin:.1rem 0 0;
  font-family:var(--font-head);
  font-size:clamp(1.05rem,2.5vw,1.38rem);
  font-weight:700;
  line-height:1.2;
  color:#2f3b36;
}

.st-pop-close{
  flex:none;
  display:inline-grid;
  place-items:center;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1.5px solid #c9bea8;
  background:#fcf9f3;
  color:#2f3b36;
  font-size:1.5rem;
  line-height:1;
  cursor:pointer;
  transition:background .15s,border-color .15s;
}
.st-pop-close:hover{
  background:#2f3b36;
  border-color:#2f3b36;
  color:#f5efe4;
}

.st-pop-cols{
  display:grid;
  grid-template-columns:1fr;
  gap:1.15rem;
  padding:1rem;
}
@media (min-width:880px){
  .st-pop-cols{
    grid-template-columns:.84fr 1.26fr;
    gap:1.2rem;
    padding:1.05rem 1.45rem 1rem;
    align-items:stretch;
  }
}

.st-pop-col{
  border-radius:16px;
  padding:1.2rem 1.15rem;
}
@media (min-width:640px){
  .st-pop-col{padding:1.15rem 1.25rem}
}

.st-pop-col-left{
  background:#ede4d3;
  border:1.5px solid #d8cbb4;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:1rem;
}
.st-pop-col-right{
  background:#fcf9f3;
  border:1.5px solid #ddd3c0;
}

.st-pop-pill{
  display:inline-block;
  padding:.28rem .78rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.st-pop-pill.terra{
  background:#f5dfd6;
  color:#893e22;
  border:1px solid #dfb6a5;
}
.st-pop-pill.olive{
  background:#e7ecdc;
  color:#414b2b;
  border:1px solid #c3cda9;
}

.st-pop-col h2{
  margin:.4rem 0 .35rem;
  font-family:var(--font-head);
  font-size:clamp(1.3rem,2.4vw,1.58rem);
  line-height:1.18;
  color:#2f3b36;
}
.st-pop-lead{
  margin:0 0 .68rem;
  font-size:.97rem;
  color:#2f3b36;
}

.st-pop-datebox{
  background:#fcf9f3;
  border:1px solid #dccfb9;
  border-left:5px solid #b5603f;
  border-radius:12px;
  padding:.85rem 1rem;
  margin-bottom:.95rem;
}
.st-pop-datebox strong{
  display:block;
  font-family:var(--font-head);
  font-size:1.25rem;
  color:#2f3b36;
  margin-bottom:.2rem;
}
.st-pop-datebox span{
  display:block;
  font-size:.95rem;
  color:#46534d;
}

.st-pop-facts{
  list-style:none;
  margin:0 0 1rem;
  padding:0;
  display:grid;
  gap:.5rem;
  font-size:.96rem;
}
.st-pop-facts li{
  position:relative;
  padding-left:1.3rem;
}
.st-pop-facts li::before{
  content:"";
  position:absolute;
  left:0;
  top:.52em;
  width:.52rem;
  height:.52rem;
  border-radius:50%;
  background:#7d8a5c;
}

.st-pop-actions{
  display:grid;
  gap:.65rem;
}
.st-pop-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:46px;
  padding:.72rem 1.2rem;
  border-radius:999px;
  font-family:var(--font-body);
  font-size:1rem;
  font-weight:800;
  text-decoration:none;
  border:2px solid transparent;
  cursor:pointer;
  text-align:center;
  transition:background .15s,border-color .15s,transform .15s;
}
.st-pop-btn:hover{transform:translateY(-1px)}
.st-pop-btn:disabled{opacity:.6;cursor:wait;transform:none}

.st-pop-btn.primary{
  background:#b5603f;
  color:#fff;
  border-color:#b5603f;
}
.st-pop-btn.primary:hover{
  background:#964c30;
  border-color:#964c30;
  color:#fff;
}
.st-pop-btn.secondary{
  background:#fcf9f3;
  color:#2f3b36;
  border-color:#7d8a5c;
}
.st-pop-btn.secondary:hover{
  background:#e7ecdc;
  color:#2f3b36;
}
.st-pop-btn.subtle{
  background:transparent;
  color:#2f3b36;
  border-color:#c6baa4;
  min-height:40px;
  padding:.45rem .95rem;
  font-size:.9rem;
}
.st-pop-btn.subtle:hover{
  background:#e9dfd0;
  color:#2f3b36;
}

.st-pop-note-left{
  margin:0;
  font-size:.9rem;
  color:#46534d;
  border-top:1px solid #d5c7af;
  padding-top:.8rem;
}

/* Right column: rules, calendar, form */
.st-pop-rules{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem .55rem;
  margin:0 0 .72rem;
  padding:0;
  list-style:none;
}
.st-pop-rules li{
  background:#f5efe4;
  border:1px solid #d8ceba;
  border-radius:999px;
  padding:.25rem .72rem;
  font-size:.86rem;
  font-weight:700;
  color:#2f3b36;
}

.st-cal-wrap{
  background:#f5efe4;
  border:1.5px solid #ddd2be;
  border-radius:14px;
  padding:.72rem .8rem;
  margin-bottom:.75rem;
}
.st-cal-head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin-bottom:.65rem;
}
.st-cal-title{
  font-weight:800;
  font-size:.98rem;
  color:#2f3b36;
}
.st-cal-months{
  display:flex;
  flex-wrap:wrap;
  gap:.35rem;
}
.st-cal-month{
  min-height:38px;
  padding:.35rem .8rem;
  border-radius:999px;
  border:1.5px solid #b6be9f;
  background:#fcf9f3;
  color:#2f3b36;
  font:inherit;
  font-size:.88rem;
  font-weight:800;
  cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.st-cal-month[aria-pressed="true"]{
  background:#7d8a5c;
  border-color:#7d8a5c;
  color:#fff;
}
.st-cal-month:hover:not([aria-pressed="true"]){
  background:#e7ecdc;
}

.st-cal-dow{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:.3rem;
  padding:0 .55rem .3rem;
  font-size:.76rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#4b5852;
  text-align:center;
}
.st-cal-dow .st-cal-dow-seats{display:none;text-align:right}

.st-cal-weeks{
  display:grid;
  gap:.4rem;
}
.st-cal-week{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:center;
  gap:.3rem;
  width:100%;
  min-height:42px;
  padding:.4rem .55rem;
  border-radius:11px;
  border:1.5px solid #d5cab5;
  background:#fcf9f3;
  color:#2f3b36;
  font:inherit;
  cursor:pointer;
  text-align:center;
  transition:border-color .15s,background .15s;
}
.st-cal-week:hover:not(:disabled){
  border-color:#b5603f;
  background:#fff;
}
.st-cal-week[aria-checked="true"]{
  border:2px solid #b5603f;
  background:#f6e6df;
}
.st-cal-week:disabled{
  background:#ebe5d8;
  border-color:#dcd3c2;
  color:#6a736e;
  cursor:not-allowed;
}
.st-cal-day{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  line-height:1.15;
  font-weight:800;
  font-size:.96rem;
}
.st-cal-day small{
  font-size:.66rem;
  font-weight:700;
  color:#515d57;
  text-transform:lowercase;
}
.st-cal-week:disabled .st-cal-day{
  text-decoration:line-through;
  opacity:.72;
}
.st-cal-badge{
  grid-column:1 / -1;
  justify-self:stretch;
  padding:.28rem .6rem;
  border-radius:999px;
  font-size:.86rem;
  font-weight:800;
  white-space:nowrap;
}
@media (min-width:560px){
  .st-cal-dow,
  .st-cal-week{grid-template-columns:repeat(5,1fr) minmax(150px,auto)}
  .st-cal-dow .st-cal-dow-seats{display:block}
  .st-cal-badge{grid-column:auto;justify-self:end}
}
.st-cal-badge.ok{
  background:#e7ecdc;
  color:#3c4627;
}
.st-cal-badge.low{
  background:#f5dfd6;
  color:#893e22;
}
.st-cal-badge.full{
  background:#ded8ca;
  color:#4f5753;
}

.st-cal-selected{
  margin:.65rem 0 0;
  font-size:.93rem;
  font-weight:700;
  color:#2f3b36;
}
.st-cal-selected strong{color:#8e4124}
.st-cal-meta{
  margin:.35rem 0 0;
  font-size:.84rem;
  color:#4b5852;
}

/* Form */
.st-pop-form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:.55rem .72rem;
}
@media (min-width:560px){
  .st-pop-form-grid{grid-template-columns:1fr 1fr}
}

.st-pop-field label{
  display:block;
  font-size:.9rem;
  font-weight:800;
  color:#2f3b36;
  margin-bottom:.25rem;
}
.st-pop-field input,
.st-pop-field select{
  width:100%;
  min-height:42px;
  padding:.45rem .75rem;
  border-radius:10px;
  border:1.5px solid #c7bca7;
  background:#fff;
  color:#2f3b36;
  font:inherit;
  font-size:1rem;
}
.st-pop-field input[aria-invalid="true"],
.st-pop-field select[aria-invalid="true"]{
  border-color:#b5603f;
  background:#fdf4f0;
}

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

.st-pop-consent{
  margin:.65rem 0 .7rem;
  padding:.6rem .78rem;
  border-radius:11px;
  background:#f5efe4;
  border:1px solid #ddd2be;
  font-size:.87rem;
  color:#2f3b36;
}
.st-pop-consent p{margin:0 0 .5rem;color:#46534d}
.st-pop-check{
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  font-weight:700;
  cursor:pointer;
}
.st-pop-check input{
  width:20px;
  height:20px;
  margin-top:.12rem;
  flex:none;
  accent-color:#b5603f;
}
.st-pop-check input[aria-invalid="true"]{
  outline:2px solid #b5603f;
  outline-offset:2px;
}

.st-pop-submit{
  width:100%;
  min-height:60px;
  font-size:1.2rem;
  letter-spacing:.01em;
  box-shadow:0 10px 22px -10px rgba(143,63,32,.65);
}

.st-pop-status{
  margin-top:.85rem;
  padding:.85rem 1rem;
  border-radius:12px;
  font-size:.95rem;
  font-weight:700;
  background:#e7ecdc;
  border:1.5px solid #7d8a5c;
  color:#2f3b36;
}
.st-pop-status.err{
  background:#f8e6df;
  border-color:#b5603f;
  color:#5b2410;
}
.st-pop-status p{margin:0 0 .55rem}
.st-pop-status p:last-child{margin-bottom:0}
.st-pop-fb-links{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin-top:.6rem;
}

.st-pop-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.6rem 1rem;
  padding:.8rem 1rem 1rem;
  border-top:1.5px solid #dfd5c2;
  font-size:.88rem;
  color:#46534d;
}
@media (min-width:880px){
  .st-pop-foot{padding:.85rem 1.6rem 1rem}
}
.st-pop-foot a{
  color:#2f3b36;
  font-weight:800;
}

.st-nowrap{white-space:nowrap}

/* Two Open Day event cards in the left column */
.st-od-event{
  background:#fcf9f3;
  border:1.5px solid #dccfb9;
  border-left:5px solid #b5603f;
  border-radius:14px;
  padding:.85rem .95rem .95rem;
  margin-top:.85rem;
}
.st-od-event + .st-od-event{
  border-left-color:#7d8a5c;
}
.st-od-kind{
  margin:0 0 .2rem;
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#893e22;
}
.st-od-event + .st-od-event .st-od-kind{color:#414b2b}
.st-od-event h3{
  margin:0 0 .4rem;
  font-family:var(--font-head);
  font-size:clamp(1.12rem,2.1vw,1.32rem);
  line-height:1.2;
  color:#2f3b36;
}
.st-od-date{margin:0 0 .7rem}
.st-od-date strong{
  display:block;
  font-family:var(--font-head);
  font-size:1.12rem;
  color:#2f3b36;
  margin-bottom:.12rem;
}
.st-od-date span{
  display:block;
  font-size:.88rem;
  color:#46534d;
}
.st-od-actions{
  display:grid;
  gap:.45rem;
}
@media (min-width:520px){
  .st-pop-col-left .st-od-actions{
    grid-template-columns:1fr 1fr;
  }
}
.st-od-actions .st-pop-btn{
  min-height:42px;
  padding:.55rem .55rem;
  font-size:.86rem;
  white-space:nowrap;
}


/* ===== «Prenota la tua settimana»: pulsanti ben visibili (colori del sito) ===== */
.st-cta-prova{
  display:none;
  align-items:center;
  justify-content:center;
  gap:.75rem;
  background:var(--terra,#b4532f);
  color:#fff;
  border:3px solid var(--terra-dark,#8f3f20);
  border-radius:999px;
  min-height:60px;
  padding:.8rem 1.6rem;
  font:inherit;
  font-size:1.2rem;
  font-weight:800;
  line-height:1.15;
  text-align:left;
  cursor:pointer;
  box-shadow:0 12px 26px -10px rgba(143,63,32,.7);
  transition:transform .15s,background .15s,box-shadow .15s;
}
.js .st-cta-prova{display:inline-flex}
.st-cta-prova:hover,
.st-cta-prova:focus-visible{background:var(--terra-dark,#8f3f20);color:#fff;transform:translateY(-2px)}
.st-cta-prova:focus-visible{outline:3px solid var(--green-900,#173a26);outline-offset:3px}
.st-cta-prova .ico{width:1.7em;height:1.7em}
.st-cta-txt{display:block}
.st-cta-txt small{display:block;margin-top:.15rem;font-size:.8rem;font-weight:700;opacity:.95;letter-spacing:.02em}
.hero-cta-row{align-items:stretch}
.hero-cta-row .st-cta-prova{flex:1 1 100%}
@media (min-width:640px){
  .hero-cta-row .st-cta-prova{flex:0 1 auto;font-size:1.3rem;padding:.9rem 2rem}
}

.prova-band{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:1.2rem 2rem;
  margin:1.4rem 0 0;
  padding:1.6rem 1.4rem;
  background:var(--green-900,#173a26);
  color:#fff;
  border-radius:var(--r-l,40px);
  box-shadow:var(--shadow,0 10px 30px -12px rgba(23,58,38,.28));
}
@media (min-width:760px){.prova-band{padding:2rem 2.4rem}}
.prova-band-text{flex:1 1 320px;min-width:0}
.prova-band-tag{
  display:inline-block;
  margin-bottom:.5rem;
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--green-leaf,#8dc63f);
}
.prova-band h2{color:#fff;font-size:clamp(1.45rem,3.4vw,2.1rem);margin:0 0 .35em}
.prova-band p{margin:0;color:#f3efe2;max-width:46rem}
.prova-band-act{display:flex;flex-direction:column;align-items:stretch;gap:.7rem;flex:1 1 100%}
@media (min-width:760px){.prova-band-act{flex:0 0 auto;align-items:center}}
.st-cta-prova-lg{font-size:1.25rem;min-height:66px;padding:.9rem 2rem;border-color:#fff;box-shadow:0 14px 28px -12px rgba(0,0,0,.6)}
.st-cta-prova-lg:hover,.st-cta-prova-lg:focus-visible{border-color:#fff}
.st-cta-prova-lg:focus-visible{outline-color:#fff}
.prova-band-link{
  display:none;
  background:none;
  border:0;
  padding:.4rem;
  font:inherit;
  font-weight:700;
  color:#fff;
  text-decoration:underline;
  text-underline-offset:4px;
  cursor:pointer;
  min-height:44px;
  align-items:center;
  justify-content:center;
}
.js .prova-band-link{display:inline-flex}
.prova-band-link:hover{color:var(--green-leaf,#8dc63f)}
.prova-band-link:focus-visible{outline:3px solid #fff;outline-offset:2px;border-radius:6px}

/* Barra «Prenota la tua settimana» in cima al pop-up (solo mobile/tablet) */
.st-pop-cta-bar{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  padding:.8rem 1rem;
  background:#f6e6df;
  border-bottom:1.5px solid #e3c5b8;
}
.st-pop-cta-bar p{margin:0;font-size:.95rem;color:#2f3b36}
.st-pop-cta-go{width:100%;min-height:54px;font-size:1.12rem;background:#b4532f;border-color:#8f3f20;box-shadow:0 8px 18px -10px rgba(143,63,32,.8)}
@media (min-width:880px){.st-pop-cta-bar{display:none}}

.st-cal-cta-title{
  margin:0 0 .55rem;
  font-family:var(--font-head);
  font-size:1.45rem;
  font-weight:600;
  line-height:1.15;
  color:#8e4124;
}
.st-form-title{margin:.9rem 0 .5rem}
#st-cal-anchor{scroll-margin-top:4.5rem}
@media (prefers-reduced-motion:reduce){.st-cta-prova,.st-pop-btn{transition:none}.st-cta-prova:hover{transform:none}}
