
/* Stella Placidia - custom theme
   Palette extracted from provided schema:
   Navy #1B1E67, Indigo #33407D, Azure #3B6DA3, Sky #ACCCE3, Slate #72829E, Mist #97AFBD, Gold #FFE8A2, Cream #F2E5C2
*/
:root{
  --sp-navy:#1B1E67;
  --sp-indigo:#33407D;
  --sp-azure:#3B6DA3;
  --sp-sky:#ACCCE3;
  --sp-slate:#72829E;
  --sp-mist:#97AFBD;
  --sp-gold:#FFE8A2;
  --sp-cream:#F2E5C2;
  --sp-white:#FFFFFF;

  --sp-bg: #0f153b;
  --sp-text: #0e1224;
  --sp-muted: #5b6680;

  --sp-radius: 18px;
  --sp-shadow: 0 18px 55px rgba(15,21,59,.22);
}

html, body { height: 100%; }
body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--sp-text);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 35%, #ffffff 100%);
}

h1,h2,h3,h4,h5{
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: .2px;
}

a { color: var(--sp-indigo); }
a:hover { color: var(--sp-navy); }

.navbar{
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(51,64,125,.12);
}

.navbar .navbar-brand{
  display:flex; align-items:center; gap:.65rem;
}
.brand-mark{
  width: 40px; height:40px; border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, var(--sp-gold), var(--sp-sky));
  box-shadow: 0 10px 24px rgba(27,30,103,.18);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.brand-mark img{ width: 38px; height:38px; object-fit: contain; }
.brand-title{ line-height:1.05; }
.brand-title .it{ font-weight: 700; }
.brand-title .en{ font-family: "Inter", sans-serif; font-size:.82rem; color: var(--sp-muted); }

.nav-link{ color: rgba(15,18,36,.82); }
.nav-link:hover, .nav-link:focus{ color: var(--sp-navy); }
.navbar .btn{
  border-radius: 999px;
}

.btn-sp{
  color: #0f153b;
  background: linear-gradient(135deg, var(--sp-gold), #fff3c6);
  border: 1px solid rgba(255,232,162,.65);
  box-shadow: 0 14px 32px rgba(255,232,162,.25);
}
.btn-sp:hover{
  color: #0f153b;
  background: linear-gradient(135deg, #fff1bf, var(--sp-gold));
}

.btn-sp-outline{
  color: var(--sp-white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
}
.btn-sp-outline:hover{
  color: var(--sp-white);
  background: rgba(255,255,255,.12);
}

.section{
  padding: 86px 0;
}
.section-sm{
  padding: 64px 0;
}
.section-title{
  margin-bottom: 1.25rem;
}
.kicker{
  display:inline-flex;
  gap:.45rem;
  align-items:center;
  color: var(--sp-azure);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
}

.hero{
  position: relative;
  min-height: 92vh;
  display:flex;
  align-items:center;
  color: var(--sp-white);
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(120deg, rgba(27,30,103,.82), rgba(59,109,163,.58)),
    url("../img/landing_01.png") center/cover no-repeat;
  transform: scale(1.03);
}
.hero::after{
  content:"";
  position:absolute; inset:-80px -80px;
  background: radial-gradient(circle at 75% 20%, rgba(255,232,162,.32), transparent 45%),
              radial-gradient(circle at 20% 70%, rgba(172,204,227,.22), transparent 55%);
  pointer-events:none;
}
.hero .container{
  position: relative;
  z-index: 2;
}
.hero-card{
  border-radius: var(--sp-radius);
  background: rgba(15,21,59,.45);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 80px rgba(10,12,30,.35);
}

.hero-badges{
  display:flex; flex-wrap:wrap; gap:.6rem;
}
.badge-soft{
  padding:.55rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 600;
  font-size: .9rem;
}

.card{
  border: 1px solid rgba(51,64,125,.10);
  border-radius: var(--sp-radius);
  box-shadow: 0 10px 35px rgba(15,21,59,.08);
}
.card-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.88));
}

.media-frame{
  border-radius: calc(var(--sp-radius) + 6px);
  overflow:hidden;
  box-shadow: var(--sp-shadow);
  border: 1px solid rgba(51,64,125,.10);
  /* background: #fff; */
}
.media-frame img{
  width:100%;
  height:auto;
  display:block;
}

.icon-pill{
  width: 46px; height:46px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, rgba(172,204,227,.55), rgba(255,232,162,.35));
  border: 1px solid rgba(51,64,125,.10);
  color: var(--sp-navy);
}

.feature-list{
  display:grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.feature{
  display:flex; gap:.75rem; align-items:flex-start;
}
.feature i{ font-size: 1.1rem; color: var(--sp-azure); margin-top:.15rem;}
.feature .lbl{ font-weight: 600; }
.feature .sub{ color: var(--sp-muted); font-size: .95rem;}

.gallery-grid{
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px){
  .gallery-grid{ grid-template-columns: repeat(3, 1fr); }
}
.gallery-item{
  position:relative;
  border-radius: 16px;
  overflow:hidden;
  cursor:pointer;
  border: 1px solid rgba(51,64,125,.12);
  box-shadow: 0 18px 45px rgba(15,21,59,.10);
}
.gallery-item img{
  width:100%;
  height: 230px;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .45s ease;
}
.gallery-item:hover img{ transform: scale(1.08); }
.gallery-item .cap{
  position:absolute; left:0; right:0; bottom:0;
  padding: 1.15rem .95rem .8rem;
  background: linear-gradient(180deg, transparent, rgba(15,21,59,.82));
  color:#fff;
  font-weight: 600;
  font-size:.9rem;
  opacity:.92;
  transition: opacity .25s ease;
}
.gallery-item:hover .cap{ opacity:1; }

@media (min-width: 992px){
  .gallery-item .cap{ opacity:0; }
  .gallery-item:hover .cap,
  .gallery-item:focus-within .cap{ opacity:1; }
}

@media (max-width: 767.98px){
  .gallery-item img{ height: 180px; }
}

.mosaic-band{
  position: relative;
  overflow:hidden;
  border-radius: calc(var(--sp-radius) + 10px);
  border: 1px solid rgba(51,64,125,.10);
  background: linear-gradient(135deg, rgba(27,30,103,.06), rgba(172,204,227,.10));
}
.mosaic-band::before{
  content:"";
  position:absolute; inset:0;
  background: url("../img/mosaico_big.png") center/cover no-repeat;
  opacity: .10;
  filter: saturate(1.15);
}
.mosaic-band > * { position:relative; }

.location-card{
  border-radius: calc(var(--sp-radius) + 10px);
  overflow:hidden;
  border: 1px solid rgba(51,64,125,.10);
  box-shadow: var(--sp-shadow);
}
.map-frame{
  width:100%;
  height: 360px;
  border:0;
  display:block;
}

.form-control, .form-select{
  border-radius: 14px;
  border: 1px solid rgba(51,64,125,.14);
  padding: .85rem .95rem;
}
.form-control:focus, .form-select:focus{
  border-color: rgba(59,109,163,.55);
  box-shadow: 0 0 0 .2rem rgba(59,109,163,.18);
}

.footer{
  padding: 42px 0;
  color: rgba(255,255,255,.82);
  background: linear-gradient(135deg, var(--sp-navy), #0c1030);
}
.footer a{ color: rgba(255,232,162,.95); text-decoration:none; }
.footer a:hover{ color: #fff; text-decoration:underline; }

.small-note{
  color: var(--sp-muted);
  font-size: .92rem;
}

.divider{
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(51,64,125,.18), transparent);
}


.highlights-section{
  padding-bottom: 28px;
}

/* Stella Placidia - mobile navigation refinement */
@media (max-width: 991.98px){
  #mainNav .container{
    position: relative;
  }

  #navLinks{
    margin-top: .75rem;
    padding: .75rem;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(51,64,125,.12);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15,21,59,.14);
  }

  #navLinks .navbar-nav{
    gap: .15rem;
  }

  #navLinks .nav-link{
    padding: .7rem .8rem;
    border-radius: 10px;
  }

  #navLinks .nav-link:hover,
  #navLinks .nav-link:focus{
    background: rgba(51,64,125,.06);
  }

  #navLinks .nav-item.ms-lg-3{
    margin-top: .55rem;
  }

  #navLinks .btn{
    width: 100%;
    text-align: center;
    padding-top: .7rem;
    padding-bottom: .7rem;
  }
}

/* Stella Placidia - booking */

.booking-stay-summary{
  min-height:48px;
  display:flex;
  align-items:center;
  padding:.75rem .9rem;
  border:1px solid rgba(51,64,125,.12);
  border-radius:10px;
  background:rgba(172,204,227,.08);
  color:var(--sp-navy);
  line-height:1.35;
}

.booking-section{
  background: linear-gradient(180deg, rgba(172,204,227,.08), rgba(255,255,255,0));
}

.booking-calendar,
.booking-summary{
  border: 1px solid rgba(51,64,125,.12);
  box-shadow: 0 18px 45px rgba(15,21,59,.08);
}

.booking-calendar-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1rem;
}

.booking-month-title{
  font-family: "Cinzel", serif;
  font-weight:600;
  text-transform:capitalize;
  color:var(--sp-navy);
}

.booking-weekdays,
.booking-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:6px;
}

.booking-weekdays{
  margin-bottom:6px;
}

.booking-weekdays span{
  text-align:center;
  font-size:.78rem;
  font-weight:600;
  color:var(--sp-muted);
  padding:.35rem 0;
}

.booking-day{
  aspect-ratio:1/1;
  min-height:42px;
  border:1px solid rgba(51,64,125,.10);
  border-radius:10px;
  background:#fff;
  color:var(--sp-navy);
  font-weight:600;
  transition:transform .15s ease, border-color .15s ease, background .15s ease;
}

.booking-day:not(:disabled):hover{
  transform:translateY(-1px);
  border-color:rgba(59,109,163,.45);
  background:rgba(172,204,227,.15);
}

.booking-day.is-outside,
.booking-day.is-past{
  opacity:.28;
}

.booking-day.is-busy{
  background:rgba(15,21,59,.06);
  color:rgba(15,21,59,.38);
  text-decoration:line-through;
}

.booking-day.is-unverified{
  background:rgba(15,21,59,.035);
  color:rgba(15,21,59,.34);
  border-color:rgba(51,64,125,.07);
  cursor:not-allowed;
}

.booking-day.is-selected{
  background:var(--sp-navy);
  color:#fff;
  border-color:var(--sp-navy);
}

.booking-day.is-range{
  background:rgba(172,204,227,.30);
  border-color:rgba(59,109,163,.18);
}

.booking-legend{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem 1rem;
  font-size:.82rem;
  color:var(--sp-muted);
}

.booking-legend span{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
}

.booking-dot{
  width:.7rem;
  height:.7rem;
  border-radius:50%;
  display:inline-block;
  border:1px solid rgba(51,64,125,.15);
}

.booking-dot.available{ background:#fff; }
.booking-dot.unavailable{ background:rgba(15,21,59,.12); }
.booking-dot.selected{ background:var(--sp-navy); }
.booking-dot.unverified{ background:rgba(15,21,59,.08); }

.booking-sync-notice{
  border-radius:12px;
  padding:.8rem .95rem;
  font-size:.88rem;
  background:rgba(172,204,227,.15);
  color:var(--sp-muted);
}

.booking-sync-notice.is-ok{
  background:rgba(34,139,94,.08);
  color:#226b4b;
}

.booking-sync-notice.is-warning{
  background:rgba(180,126,33,.09);
  color:#7a5a1b;
}

.booking-price-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  font-size:1.05rem;
}

.booking-price-row strong{
  font-size:1.35rem;
  color:var(--sp-navy);
}

@media (max-width: 575.98px){
  .booking-weekdays,
  .booking-calendar-grid{
    gap:4px;
  }

  .booking-day{
    min-height:36px;
    border-radius:8px;
    font-size:.86rem;
  }
}

/* Riduce solo su mobile lo spazio tra Prenota e Contatti */
@media (max-width: 575.98px){
  .booking-section{
    padding-bottom:48px;
  }

  #contatti.section{
    padding-top:48px;
  }
}

.language-switch{
  gap:.12rem;
  white-space:nowrap;
}

.language-switch .nav-link{
  padding-left:.28rem;
  padding-right:.28rem;
  font-size:.82rem;
}

.language-switch .nav-link.active{
  font-weight:700;
  color:var(--sp-navy);
}

.language-sep{
  opacity:.35;
  font-size:.8rem;
}

/* BOOKING_PUBLIC_PREVIEW
   Calendario pubblico attivo; checkout disabilitato finche Stripe non e operativo. */


/* WELCOME_LAYOUT_TUNING */
.sp-welcome-section {
  padding-bottom: 2.5rem;
}
.sp-welcome-section + #posizione {
  padding-top: 2.5rem;
}
.sp-recommend-card h3 {
  color: #18233a;
}
.sp-recommend-card .small-note {
  color: #334155;
  font-weight: 400;
}

/* AMENITIES_PRESTIGE */
.amenities-prestige {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(24,35,58,.10);
}
.amenities-prestige-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}
.amenity-chip {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(24,35,58,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #334155;
  font-size: .92rem;
  line-height: 1.25;
}
.amenity-chip i {
  flex: 0 0 auto;
  color: #2d5f9a;
}


/* BOOKING_UI_RESTYLE_20260816_V2 */

#prenota .booking-calendar,
#prenota .booking-summary {
  border-radius: 22px;
  overflow: hidden;
}

#prenota .booking-calendar .card-body,
#prenota .booking-summary .card-body {
  padding: 2rem;
}

#prenota .booking-calendar-toolbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#prenota #bookingMonthTitle {
  text-align: center;
  color: #203a6b;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

#prenota #bookingPrevMonth,
#prenota #bookingNextMonth {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(32,58,107,.18);
  color: #203a6b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#prenota #bookingPrevMonth:hover,
#prenota #bookingNextMonth:hover {
  background: #f4f7fb;
  border-color: rgba(32,58,107,.35);
}

#prenota .booking-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .42rem;
  margin-bottom: .5rem;
  color: #65738a;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
}

#prenota .booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .42rem;
}

#prenota .booking-day {
  width: 100%;
  min-height: 58px;
  padding: .55rem;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
  background: #fff;
  color: #1f3764;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .16s ease, box-shadow .16s ease,
              transform .16s ease, background .16s ease;
}

#prenota .booking-day:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: #9fb3cf;
  box-shadow: 0 7px 16px rgba(32,58,107,.10);
}

#prenota .booking-day.is-outside {
  background: #fafbfd;
  color: #c4ccd8;
  border-color: #f0f2f5;
}

#prenota .booking-day.is-past {
  background: #f7f8fa;
  color: #c0c7d0;
  border-color: #eceff3;
  text-decoration: line-through;
}

#prenota .booking-day.is-busy {
  background: #e8ecf1;
  color: #8c98a8;
  border-color: #d8dee6;
  text-decoration: line-through;
}

#prenota .booking-day.is-range {
  background: #e8eff8;
  color: #203a6b;
  border-color: #c7d6e8;
  text-decoration: none;
}

#prenota .booking-day.is-selected {
  background: #203a6b;
  color: #fff;
  border-color: #203a6b;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(32,58,107,.20);
}

#prenota .booking-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: #65738a;
  font-size: .82rem;
}

#prenota #bookingSyncNotice {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  font-size: .88rem;
}

#prenota #bookingSyncNotice.is-ok {
  background: #e8f2ec;
  color: #35634b;
}

#prenota #bookingSyncNotice.is-warning {
  background: #fff4df;
  color: #7a612b;
}

#prenota .booking-summary {
  position: sticky;
  top: 100px;
}

#prenota .booking-stay-summary,
#prenota .form-select {
  border-radius: 12px;
}

#prenota #bookingCheckoutBtn {
  min-height: 52px;
  border-radius: 12px;
}

#prenota #bookingCheckoutBtn:disabled {
  opacity: 1;
  background: #f3e4ac;
  border-color: #dec878;
  color: #77652d;
  cursor: not-allowed;
}

@media (max-width: 991.98px) {
  #prenota .booking-summary {
    position: static;
  }

  #prenota .booking-calendar .card-body,
  #prenota .booking-summary .card-body {
    padding: 1.4rem;
  }
}

@media (max-width: 575.98px) {
  #prenota .booking-calendar-grid,
  #prenota .booking-weekdays {
    gap: .25rem;
  }

  #prenota .booking-day {
    min-height: 44px;
    padding: .3rem;
    border-radius: 9px;
    font-size: .88rem;
  }

  #prenota .booking-calendar-toolbar {
    grid-template-columns: 38px 1fr 38px;
  }

  #prenota #bookingPrevMonth,
  #prenota #bookingNextMonth {
    width: 36px;
    height: 36px;
  }
}

/* BOOKING_UI_CONTRAST_FINAL */
#prenota .booking-day.is-outside,
#prenota .booking-day.is-past {
  background: #fafbfc;
  color: #d1d7df;
  border-color: #f1f3f5;
}

#prenota .booking-day.is-busy {
  background: #dfe5ec;
  color: #738196;
  border-color: #cbd4df;
  text-decoration: line-through;
}

#prenota .booking-day:not(.is-busy):not(.is-past):not(.is-outside):not(.is-selected):not(.is-range) {
  background: #ffffff;
  color: #17345f;
  border-color: #d9e1ea;
}

#prenota .booking-legend {
  font-size: .88rem;
  color: #4f5f77;
  font-weight: 500;
}

#prenota .booking-legend .booking-dot {
  width: 9px;
  height: 9px;
}

#prenota .booking-legend .booking-dot.available {
  background: #ffffff;
  border: 1px solid #9aa8ba;
}

#prenota .booking-legend .booking-dot.unavailable {
  background: #cbd4df;
  border: 1px solid #aeb9c7;
}

#prenota .booking-legend .booking-dot.selected {
  background: #203a6b;
  border: 1px solid #203a6b;
}

/* Offset per navbar fissa sui link ancora */
section[id] {
  scroll-margin-top: 90px;
}

/* Stella Placidia consiglia - feed eventi */
.stella-events-list {
  display: grid;
  gap: .65rem;
}

.stella-event {
  display: block;
  padding: .8rem .9rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  color: inherit;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.stella-event:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
  color: inherit;
}

.stella-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  margin-bottom: .25rem;
  font-size: .74rem;
  opacity: .78;
}

.stella-event-title {
  font-weight: 700;
  line-height: 1.25;
}

.stella-event-location {
  margin-top: .2rem;
  font-size: .8rem;
  opacity: .78;
}

/* === MIRABILANDIA PARTNER 2026 === */
.sp-mirabilandia-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.sp-mirabilandia-section {
  scroll-margin-top: 90px;
}

.sp-mirabilandia-partner-logo {
  display: block;
  width: min(260px, 70%);
  height: auto;
  margin-top: 1rem;
}

.sp-mirabilandia-info {
  padding-left: 1.2rem;
  margin-bottom: 1.25rem;
}

.sp-mirabilandia-info li {
  margin-bottom: .4rem;
}

@media (max-width: 767.98px) {
  .sp-mirabilandia-card-img {
    height: 190px;
  }

  .sp-mirabilandia-partner-logo {
    width: min(220px, 75%);
  }
}
/* === /MIRABILANDIA PARTNER 2026 === */

/* === STELLA NAV ACTIVE STATE === */

#mainNav #navLinks .nav-item:not(.language-switch) > .nav-link.sp-section-active {
  color: var(--sp-navy);
  font-weight: 700;
  position: relative;
}

@media (min-width: 992px) {
  #mainNav #navLinks .nav-item:not(.language-switch) > .nav-link.sp-section-active::after {
    content: "";
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: -.18rem;
    height: 2px;
    border-radius: 999px;
    background: var(--sp-gold);
  }
}

@media (max-width: 991.98px) {
  #mainNav #navLinks .nav-item:not(.language-switch) > .nav-link.sp-section-active {
    background: rgba(51,64,125,.09);
  }
}

#mainNav #navLinks .btn.sp-section-active {
  box-shadow:
    0 0 0 3px rgba(51,64,125,.20),
    0 14px 32px rgba(255,232,162,.25);
}

/* === /STELLA NAV ACTIVE STATE === */


/* === STELLA ALL EVENTS UI === */

.stella-event-source{
  margin-top:.65rem;
  padding-top:.55rem;
  border-top:1px solid rgba(20,45,90,.09);
  font-size:.72rem;
  line-height:1.3;
  color:rgba(20,35,65,.62);
}

/* contenitore della sezione completa */
.sp-all-events{
  scroll-margin-top:100px;
  width:min(1180px, calc(100% - 40px));
  margin:4rem auto 1rem !important;
  padding:2.8rem;
  border:1px solid rgba(20,45,90,.09);
  border-radius:26px;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.98),
      rgba(247,249,253,.98)
    );
  box-shadow:
    0 18px 55px rgba(20,35,70,.08);
}

/* intestazione */
.sp-all-events > .kicker{
  margin-bottom:.55rem;
}

.sp-all-events > .section-title{
  margin-bottom:.65rem;
  color:var(--sp-navy);
}

.sp-all-events > .small-note{
  max-width:720px;
  margin-bottom:1.8rem;
  font-size:.92rem;
  line-height:1.6;
  color:rgba(25,40,70,.68);
}

/* griglia */
.sp-all-events-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1rem;
  margin-top:1.5rem;
}

/* card */
.sp-all-events-list .stella-event{
  cursor:pointer;
  display:flex;
  flex-direction:column;
  min-height:175px;
  padding:1.15rem 1.2rem 1rem;
  border:1px solid rgba(20,45,90,.10);
  border-radius:17px;
  background:#fff;
  box-shadow:
    0 5px 18px rgba(20,35,70,.045);
  text-decoration:none;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.sp-all-events-list .stella-event:hover{
  transform:translateY(-3px);
  border-color:rgba(24,74,145,.30);
  box-shadow:
    0 12px 30px rgba(20,35,70,.12);
}

/* categoria + data */
.sp-all-events-list .stella-event-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.4rem .55rem;
  margin-bottom:.8rem;
}

.sp-all-events-list .stella-event-category{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:.22rem .58rem;
  border-radius:999px;
  background:rgba(38,96,168,.08);
  color:rgba(25,65,120,.9);
  font-size:.69rem;
  font-weight:600;
  line-height:1.2;
}

.sp-all-events-list .stella-event-date{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:.22rem .58rem;
  border-radius:999px;
  background:rgba(216,170,63,.12);
  color:rgba(105,75,15,.9);
  font-size:.69rem;
  font-weight:600;
  line-height:1.2;
}

/* titolo */
.sp-all-events-list .stella-event-title{
  margin:0 0 .55rem;
  color:var(--sp-navy);
  font-size:1.02rem;
  font-weight:700;
  line-height:1.28;
}

/* luogo */
.sp-all-events-list .stella-event-location{
  margin-bottom:auto;
  color:rgba(30,42,65,.78);
  font-size:.79rem;
  line-height:1.4;
}

/* fonte in fondo alla card */
.sp-all-events-list .stella-event-source{
  margin-top:1rem;
  padding-top:.7rem;
  border-top:1px solid rgba(20,45,90,.08);
  color:rgba(30,42,65,.66);
  font-size:.7rem;
}

/* tablet */
@media (max-width:1050px){
  .sp-all-events{
    width:min(920px, calc(100% - 30px));
    padding:2.2rem;
  }

  .sp-all-events-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* mobile */
@media (max-width:680px){
  .sp-all-events{
    width:calc(100% - 20px);
    margin-top:2.5rem !important;
    padding:1.35rem;
    border-radius:20px;
  }

  .sp-all-events-list{
    grid-template-columns:1fr;
    gap:.75rem;
  }

  .sp-all-events-list .stella-event{
    min-height:0;
    padding:1rem;
  }
}

/* === /STELLA ALL EVENTS UI === */
