/* ==========================================================================
   Silvi Sabina Experience — stile auto-contenuto, scoped in .sce-page
   Non dipende dal tema: definisce i propri token e classi (prefisso sce-),
   così non entra in conflitto con Bootstrap/Cardinal (.btn, .container, .section).
   ========================================================================== */

/* Nasconde la barra-titolo nativa del tema (es. .page-heading di Cardinal) SOLO
   sulle pagine Eventi (lì il plugin ha il suo hero .sce-ev-hero, si evita il
   doppione). Sulla pagina Experience invece l'header del tema (Fancy, con foto)
   resta visibile ed è quello ufficiale. */
.single-evento .page-heading,
.post-type-archive-evento .page-heading,
.tax-evento_categoria .page-heading { display: none !important; }

.sce-page {
  --cream: #f7f5f2;
  --cream-2: #efece6;
  --black: #16150f;
  --ink: #16150f;
  --muted: #6b6a64;
  --line: #dcd8d0;
  --olive: #5c6b3f;
  --olive-dark: #3e4a2b;
  --gold: #a9873f;
  --white: #ffffff;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Nunito Sans", var(--font-body);
  --font-logo: "Cinzel", "Times New Roman", serif;
  --radius: 3px;
  --ease: cubic-bezier(.22,.61,.36,1);

  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.6;
}
.sce-page *, .sce-page *::before, .sce-page *::after { box-sizing: border-box; }
.sce-page img { max-width: 100%; height: auto; display: block; }
.sce-page h1, .sce-page h2, .sce-page h3, .sce-page h4 {
  font-family: var(--font-head); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--black);
}
.sce-page p { margin: 0 0 1em; }
.sce-page a { color: var(--olive); }

.sce-container { width: min(100% - 40px, 1180px); margin-inline: auto; }

.sce-section { padding: clamp(44px, 5vw, 82px) 0; }
.sce-section--tight { padding: clamp(32px, 4vw, 60px) 0; }

.sce-head { max-width: 720px; margin: 0 auto clamp(26px,3vw,42px); text-align: center; }
.sce-head h2 { font-family: var(--font-logo); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0; }
.sce-head h2::after { content: ""; display: block; width: 150px; height: 16px; margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='140'%20height='16'%20viewBox='0%200%20140%2016'%3E%3Cline%20x1='0'%20y1='8'%20x2='54'%20y2='8'%20stroke='%23a9873f'%20stroke-width='1'/%3E%3Cline%20x1='86'%20y1='8'%20x2='140'%20y2='8'%20stroke='%23a9873f'%20stroke-width='1'/%3E%3Cpath%20d='M70%203C66%206%2066%2010%2070%2013C74%2010%2074%206%2070%203Z'%20fill='%23a9873f'/%3E%3C/svg%3E") center/contain no-repeat; }
.sce-head p { color: var(--muted); font-size: 16px; margin: 16px 0 0; }
.sce-head--left { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
.sce-head--left h2::after { margin-left: 0; margin-right: 0; }

/* Buttons */
.sce-btn {
  display: inline-block; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: .04em; text-decoration: none;
  padding: 14px 28px; border: 1px solid var(--black); color: var(--black);
  background: transparent; border-radius: var(--radius);
  transition: all .3s var(--ease);
}
.sce-btn:hover { background: var(--black); color: var(--cream); }
.sce-btn--light { border-color: var(--cream); color: var(--cream); }
.sce-btn--light:hover { background: var(--cream); color: var(--black); }
.sce-btn--solid { background: var(--black); color: var(--cream); }
.sce-btn--solid:hover { background: var(--olive-dark); border-color: var(--olive-dark); color: #fff; }

/* Placeholder immagine */
.sce-ph { width: 100%; height: 100%; min-height: 200px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--olive) 0%, var(--olive-dark) 100%); position: relative; }
.sce-ph::after { content: "Silvi Sabina"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-logo); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); font-size: 13px; }

/* HERO */
.sce-hero { background: var(--olive-dark); background-size: cover; background-position: center;
  color: var(--cream); text-align: center; padding: clamp(64px,9vw,112px) 0 clamp(54px,7vw,82px); }
.sce-hero__kicker { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 800; color: var(--gold); margin: 0 0 14px; }
.sce-hero__title { font-family: var(--font-logo); font-weight: 600; color: var(--cream); font-size: clamp(30px, 4.2vw, 50px); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.sce-hero__sub { max-width: 600px; margin: 0 auto 28px; font-size: clamp(15px,1.6vw,18px); color: rgba(255,255,255,.88); }

/* INTRO */
.sce-intro { padding-bottom: clamp(16px,2.5vw,32px); }
.sce-intro__text { max-width: 740px; margin: 0 auto; text-align: center; font-size: 16.5px; line-height: 1.7; color: #4a4944; }
.sce-exp { padding-top: clamp(28px,3.5vw,52px); }

/* INFO */
.sce-info__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(18px,3vw,38px) clamp(24px,4vw,56px); }
.sce-info__item { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.sce-ico { flex: 0 0 auto; width: 40px; height: 40px; color: var(--olive); }
.sce-ico svg { width: 100%; height: 100%; }

/* ESPERIENZE */
.sce-exp__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(22px,2.6vw,34px); }
.sce-exp-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid #d9d4ca; border-radius: 8px; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sce-exp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.sce-exp-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.sce-exp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sce-exp-card__num { position: absolute; top: 14px; left: 14px; font-family: var(--font-logo); font-size: 15px; letter-spacing: .1em; color: var(--cream); background: rgba(0,0,0,.35); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.sce-exp-card__season { position: absolute; top: 16px; right: 16px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; background: var(--gold); color: #fff; padding: 6px 10px; border-radius: 100px; }
.sce-exp-card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sce-exp-card__title { font-family: var(--font-logo); font-weight: 600; font-size: 18px; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; text-align: center; margin: 0; line-height: 1.25; }
.sce-exp-card__lead { color: var(--ink); margin: 14px 0 2px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; }
.sce-exp-card__meta { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.sce-exp-card__meta span { display: block; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--olive); margin-bottom: 3px; }
.sce-exp-card__meta--plus span { color: var(--gold); }
.sce-exp-card__btn { align-self: center; margin-top: 18px; }

/* MAPPA */
.sce-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.sce-map iframe { display: block; }

/* BOOKING */
.sce-booking { background: var(--cream-2); }
.sce-booking__cal { max-width: 920px; margin: 0 auto; background: var(--white); padding: clamp(16px,3vw,32px); border-radius: var(--radius); border: 1px solid var(--line); }
.sce-notice { border: 1px dashed var(--line); background: var(--cream); padding: 24px; border-radius: var(--radius); color: var(--muted); }
.sce-notice p { margin: 0 0 .5em; }

/* EVENTI */
.sce-events__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(24px,3vw,40px); }
.sce-event-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sce-event-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.sce-event-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.sce-event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sce-event-card.is-past .sce-event-card__media img, .sce-event-card.is-past .sce-ph { filter: grayscale(.35) opacity(.9); }
.sce-event-card__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.sce-event-card__date { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800; color: var(--gold); margin: 0; }
.sce-event-card__title { font-size: 22px; margin: 0; }
.sce-event-card__title a { color: var(--black); text-decoration: none; }
.sce-event-card__title a:hover { color: var(--olive); }
.sce-event-card__excerpt { color: var(--muted); font-size: 15px; margin: 0; }
.sce-link-more { font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--olive); margin-top: auto; }
.sce-link-more:hover { color: var(--olive-dark); }
.sce-events__cta { text-align: center; margin-top: clamp(32px,5vw,52px); }
.sce-events__pasthead { margin-top: clamp(52px,8vw,90px); }
.sce-empty { text-align: center; color: var(--muted); }

/* CTA */
.sce-cta__box { background: var(--olive); color: var(--cream); text-align: center; padding: clamp(40px,6vw,76px) clamp(24px,5vw,60px); border-radius: var(--radius); }
.sce-cta__box h2 { color: var(--cream); text-transform: uppercase; }
.sce-cta__box p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; }
.sce-cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* SINGLE EVENTO */
.sce-ev-hero { background: var(--cream-2); border-bottom: 1px solid var(--line); text-align: center; padding: clamp(60px,9vw,110px) 0 clamp(28px,4vw,44px); }
.sce-ev-hero h1 { font-size: clamp(32px,5vw,60px); text-transform: uppercase; margin: 10px 0 .2em; }
.sce-ev-hero__date { font-family: var(--font-head); font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.sce-badge { display: inline-block; font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; padding: 6px 12px; border-radius: 100px; background: var(--olive); color: var(--cream); }
.sce-badge.is-past { background: var(--muted); }
.sce-ev__grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.sce-ev__media { margin-bottom: 26px; border-radius: var(--radius); overflow: hidden; }
.sce-ev__content { font-size: 17px; }
.sce-ev__booking { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--line); }
.sce-ev__box { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.sce-ev__box h4 { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; margin-bottom: 16px; }
.sce-ev__meta { list-style: none; margin: 0 0 20px; padding: 0; }
.sce-ev__meta li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sce-ev__meta li:last-child { border-bottom: 0; }
.sce-ev__meta span { color: var(--muted); }
.sce-ev__cta { width: 100%; text-align: center; }

/* RESPONSIVE */
@media (max-width: 1040px) { .sce-exp__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) {
  .sce-info__grid { grid-template-columns: repeat(2,1fr); }
  .sce-events__grid { grid-template-columns: 1fr 1fr; }
  .sce-ev__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sce-info__grid { grid-template-columns: 1fr; }
  .sce-events__grid, .sce-exp__grid { grid-template-columns: 1fr; }
  .sce-cta__actions { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Form contatti / richiesta esperienza
   -------------------------------------------------------------------------- */
.sce-form { max-width: 820px; margin: 0 auto; background: var(--white); padding: clamp(20px,3vw,40px); border-radius: var(--radius); border: 1px solid var(--line); }
.sce-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sce-form__field { display: flex; flex-direction: column; margin: 0 0 18px; }
.sce-form__field label { font-weight: 700; font-size: 14px; letter-spacing: .02em; margin-bottom: 6px; color: var(--ink); }
.sce-form input,
.sce-form select,
.sce-form textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); width: 100%; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.sce-form input:focus,
.sce-form select:focus,
.sce-form textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(92,107,63,.15); background: var(--white); }
.sce-form textarea { resize: vertical; min-height: 110px; }
.sce-form__submit { margin: 6px 0 0; text-align: left; }
.sce-form__submit .sce-btn { cursor: pointer; }

/* honeypot antispam: invisibile agli utenti, visibile ai bot */
.sce-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* messaggi esito invio */
.sce-formmsg { max-width: 820px; margin: 0 auto 20px; padding: 14px 18px; border-radius: var(--radius); font-weight: 600; }
.sce-formmsg--ok { background: #eaf1e2; border: 1px solid var(--olive); color: var(--olive-dark); }
.sce-formmsg--err { background: #faeceb; border: 1px solid #c0493f; color: #8f2d25; }

@media (max-width: 600px) {
  .sce-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* --------------------------------------------------------------------------
   Card esperienza: sottotitolo + tariffa (contenuti reali Tour)
   -------------------------------------------------------------------------- */
.sce-exp-card__subtitle { text-align: center; margin: 6px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: .01em; line-height: 1.35; }
.sce-exp-card__meta--price { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.sce-exp-card__meta--price span { color: var(--gold); font-weight: 800; }

/* --------------------------------------------------------------------------
   Esperienze da WordPress: opzione 3 colonne + testo descrizione
   -------------------------------------------------------------------------- */
.sce-exp__grid--cols-3 { grid-template-columns: repeat(3,1fr); }
.sce-exp-card__lead p { margin: 0 0 .6em; }
.sce-exp-card__lead p:last-child { margin-bottom: 0; }

@media (max-width: 1040px) {
  .sce-exp__grid, .sce-exp__grid--cols-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .sce-exp__grid, .sce-exp__grid--cols-3 { grid-template-columns: 1fr; }
}

/* Rinforzo specificità contro eventuali stili h1/h2 del tema */
.sce-page .sce-hero__title { color: var(--cream); }
.sce-page .sce-head h2 { color: var(--gold); }
