/* ============================================================
   Somewhere — stili delle pagine di elenco e di contenuto
   (tpl_tours, tpl_calendario, tpl_blog, tpl_articolo, tpl_pagina,
   tpl_faq, tpl_contatti, tpl_regali, tpl_404).
   Ripresi dai mockup approvati (tours-mockup.php, calendar-mockup.php).
   Non toccare style.css del tema: gli override stanno qui e in custom.css.
   ============================================================ */

/* ── Intestazione di pagina (breadcrumb) ── */
.sw-intestazione { background: var(--theme-color2); padding: 56px 0 48px; position: relative; overflow: hidden; }
.sw-intestazione.con-foto { padding: 110px 0 90px; background-size: cover; background-position: center; }
.sw-intestazione.con-foto::before { content: ""; position: absolute; inset: 0; background: rgba(13,13,12,.55); }
.sw-intestazione .container { position: relative; z-index: 1; }
.sw-intestazione .breadcumb-title { font-size: 2.2rem; color: #fff; margin-bottom: 10px; }
.sw-intestazione .sw-sottotitolo { color: rgba(255,255,255,.85); max-width: 760px; margin: 0 auto 14px; font-size: 1.05rem; }
.sw-intestazione .breadcumb-menu { margin: 0; }
.sw-intestazione .breadcumb-menu li, .sw-intestazione .breadcumb-menu a { color: rgba(255,255,255,.85); }
.sw-intestazione .breadcumb-menu a:hover { color: #fff; }
@media (max-width: 575px) {
  .sw-intestazione { padding: 40px 0 34px; }
  .sw-intestazione .breadcumb-title { font-size: 1.6rem; }
}

/* Testo HTML dal CMS */
.sw-testo { font-size: 16px; line-height: 1.75; color: var(--body-color); }
.sw-testo img { max-width: 100%; height: auto; border-radius: 10px; }
.sw-testo iframe { max-width: 100%; }
.sw-testo h2, .sw-testo h3, .sw-testo h4 { margin-top: 1.4em; }
.sw-testo a { color: var(--theme-color); text-decoration: underline; }
.sw-testo table { width: 100%; margin-bottom: 1rem; }
.sw-testo table td, .sw-testo table th { border: 1px solid var(--border-color); padding: 6px 10px; }
.sw-intro { max-width: 860px; margin: 0 auto 40px; }
.sw-intro h2 { font-size: 28px; margin: 30px 0 12px; }
.sw-intro h2:first-child { margin-top: 0; }
.sw-intro h3 { font-size: 20px; margin: 22px 0 10px; }
.sw-intro ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.sw-intro ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.sw-intro ul li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--theme-color); }
/* "Leggi di più" (sw-sito.js) */
.sw-espandibile.chiuso { max-height: 360px; overflow: hidden; margin-bottom: 0;
  -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.sw-leggi-piu {
  display: block; margin: 14px auto 44px; padding: 10px 26px; border-radius: 30px;
  border: 1px solid var(--theme-color); background: #fff; color: var(--theme-color); font-weight: 600;
}
.sw-leggi-piu:hover, .sw-leggi-piu:focus-visible { background: var(--theme-color); color: #fff; }
.sw-espandibile:not(.chiuso) + .sw-leggi-piu { margin-top: -20px; }

/* Gallery */
.sw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 30px; }
.sw-gallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.sw-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sw-gallery a:hover img { transform: scale(1.05); }
.sw-foto-principale { border-radius: 14px; overflow: hidden; margin-bottom: 30px; }
.sw-foto-principale img { width: 100%; height: auto; display: block; }

/* ── Elenco tour: barra filtri (da tours-mockup) ── */
.tour-filter-bar { border-bottom: 1px solid var(--border-color); padding-bottom: 24px; }
.tour-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  display: inline-block; background: transparent; border: 1px solid var(--border-color); border-radius: 30px;
  padding: 7px 18px; font-size: 14px; font-weight: 500; color: var(--body-color);
  cursor: pointer; transition: all .2s; font-family: var(--body-font); line-height: 1.4;
}
.filter-pill:hover { border-color: var(--theme-color); color: var(--theme-color); }
.filter-pill.active { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.filter-select {
  height: 38px; padding: 0 26px 0 10px; border: 1px solid var(--border-color);
  border-radius: 8px; font-size: 13px; font-family: var(--body-font);
  color: var(--body-color); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236a0606'/%3E%3C/svg%3E") no-repeat right 8px center;
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s; min-width: 100px;
}
.filter-select:focus, .filter-select:hover { outline: none; border-color: var(--theme-color); }
.tour-view-controls { display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.view-btn {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 6px;
  border: 1px solid var(--border-color); color: var(--body-color); font-size: 15px; transition: all .2s; background: #fff;
}
.view-btn:hover, .view-btn.active { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.tour-count-label { font-size: 13px; color: var(--body-color); }
@media (max-width: 991px) { .tour-view-controls { justify-content: flex-start; } .tour-count-label { text-align: left !important; } }

/* Avviso ricerca attiva (data / persone / testo) */
.sw-ricerca-attiva {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; margin-bottom: 28px;
  background: #fbf5f5; border: 1px solid #f0dede; border-radius: 10px; font-size: 14px; color: var(--title-color);
}
.sw-ricerca-attiva i { color: var(--theme-color); }
.sw-ricerca-attiva a { color: var(--theme-color); font-weight: 600; text-decoration: underline; margin-left: auto; }

/* ── Card tour ── */
.sw-tours-griglia .tour-box { height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.sw-tours-griglia .tour-box .tour-content { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.sw-tours-griglia .tour-action { margin-top: auto; }
.tour-box_img { position: relative; overflow: hidden; aspect-ratio: 16/10; background: #eee; }
.tour-box_img img { width: 100%; height: 100%; object-fit: cover; }
.tour-box_img .sw-senza-foto { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #bbb; font-size: 2.5rem; background: #f3eeee; }
.tour-badge { position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 20px; z-index: 2; text-transform: uppercase; }
.badge-bestseller { background: var(--theme-color); color: #fff; }
.badge-new        { background: #1a7f4e; color: #fff; }
.badge-exclusive  { background: #1a1a2e; color: #fff; }
.badge-family     { background: #e07b20; color: #fff; }
.tour-meta-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.tour-category { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--theme-color); }
.tour-lang     { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--body-color); }
.sw-tours-griglia .box-title { font-size: 20px; margin-bottom: 8px; }
.sw-tours-griglia .box-title a { color: var(--title-color); }
.sw-tours-griglia .box-title a:hover { color: var(--theme-color); }
.tour-tagline { font-size: 13.5px; color: var(--body-color); line-height: 1.5; margin-bottom: 10px; }
.tour-info-strip {
  display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--body-color);
  margin-bottom: 14px; padding: 10px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}
.tour-info-strip span { display: flex; align-items: center; gap: 5px; }
.tour-info-strip i { color: var(--theme-color); }
.tour-price-wrap { display: flex; align-items: baseline; gap: 3px; }
.tour-box .tour-action .tour-price-from, .tour-price-from { font-size: 12px; color: var(--body-color); }
.tour-box .tour-action .tour-price-unit { font-size: 12px; color: var(--body-color); }
.tour-box .tour-action .tour-price-val, .tour-price-val { font-size: 22px; font-weight: 700; color: var(--theme-color); font-family: var(--title-font); }
.tour-price-unit { font-size: 12px; color: var(--body-color); }
.tour-action { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sw-orari { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sw-orari span { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 14px; background: #fbf0f0; color: var(--theme-color); }

/* Vista lista: stesse card, disposte in orizzontale */
.sw-tours-griglia.is-lista > .sw-tour-col { flex: 0 0 100%; max-width: 100%; }
.sw-tours-griglia.is-lista .tour-box { flex-direction: row; }
.sw-tours-griglia.is-lista .tour-box_img { width: 300px; min-width: 300px; aspect-ratio: auto; }
@media (max-width: 767px) {
  .sw-tours-griglia.is-lista .tour-box { flex-direction: column; }
  .sw-tours-griglia.is-lista .tour-box_img { width: 100%; min-width: 0; aspect-ratio: 16/10; }
}
.sw-tour-col.hidden { display: none !important; }
.filter-reset-btn { background: none; border: none; color: var(--theme-color); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: inherit; padding: 0; }
.sw-vuoto { text-align: center; padding: 60px 20px; }
.sw-vuoto > i { font-size: 3rem; color: var(--theme-color); opacity: .5; display: block; margin-bottom: 16px; }

/* Banner "tour su misura" */
.sw-banner-misura { background: var(--theme-color2); }
.sw-banner-misura h3 { font-size: 28px; }
.th-btn.btn-white { background: #fff; color: var(--theme-color); border-color: #fff; }
.th-btn.btn-white:hover { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }

/* ── Calendario (da calendar-mockup) ── */
.cal-wrap { padding: 40px 0 80px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #e0d8d8; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: .9rem; color: var(--title-color);
  transition: background .15s, border-color .15s; flex-shrink: 0;
}
.cal-nav-btn:hover:not(:disabled) { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.cal-nav-btn:disabled { opacity: .35; cursor: default; }
.cal-month-label { font-size: 1.35rem; font-weight: 800; color: var(--title-color); min-width: 180px; text-align: center; }
.cal-view-toggle { display: flex; gap: 4px; background: #f0eeee; border-radius: 8px; padding: 4px; }
.cal-view-btn {
  border: none; background: none; border-radius: 6px; padding: 6px 14px; font-size: .82rem; font-weight: 600;
  color: #777; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background .15s, color .15s;
}
.cal-view-btn.active { background: #fff; color: var(--theme-color); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.cal-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; min-height: 34px; }
.cal-filters::-webkit-scrollbar { display: none; }
.filter-chip {
  border: 1.5px solid #e0d8d8; background: #fff; border-radius: 20px; padding: 6px 14px; font-size: .78rem;
  font-weight: 600; color: #666; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px;
  transition: all .15s; flex-shrink: 0; max-width: 260px; overflow: hidden; text-overflow: ellipsis;
}
.filter-chip .chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.filter-chip.active { color: #fff; border-color: transparent; }
.filter-chip.active .chip-dot { background: #fff !important; }
.cal-grid, .cal-agenda { display: none; }
.cal-grid.active, .cal-agenda.active { display: block; }
.cal-grid-head { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 2px; }
.cal-grid-head-cell { text-align: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #999; padding: 6px 0; }
.cal-grid-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  min-height: 88px; background: #fff; border: 1px solid #f0eaea; border-radius: 6px; padding: 6px 4px 4px;
  cursor: default; transition: background .15s; position: relative; min-width: 0; text-align: left; font: inherit; color: inherit;
}
/* i giorni con partenze sono <button>: il contenuto va in alto come nelle celle vuote */
button.cal-day { width: 100%; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.cal-day.has-tours { cursor: pointer; }
.cal-day.has-tours:hover, .cal-day.has-tours:focus-visible { background: #fdf8f8; border-color: #d4b8b8; outline: none; }
.cal-day.today { border-color: var(--theme-color); background: #fff8f8; }
.cal-day.other-month { background: #fafafa; opacity: .5; }
.cal-day-num { font-size: .82rem; font-weight: 700; color: #bbb; margin-bottom: 4px; line-height: 1; }
.cal-day.has-tours .cal-day-num { color: var(--title-color); }
.cal-day.today .cal-day-num {
  color: #fff; background: var(--theme-color); width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .75rem; margin-bottom: 5px;
}
.cal-day-pills { display: flex; flex-direction: column; gap: 2px; }
.cal-pill {
  border-radius: 3px; padding: 2px 4px; font-size: .65rem; font-weight: 600; color: #fff; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.cal-pill.sold-out { background: #e8e0e0 !important; color: #999; text-decoration: line-through; }
.cal-more { font-size: .65rem; color: var(--theme-color); font-weight: 700; margin-top: 2px; text-align: center; }
.cal-day-dots { display: none; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.cal-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cal-dot.sold-out { opacity: .3; }
.cal-dots-count { font-size: .58rem; color: var(--theme-color); font-weight: 700; margin-top: 2px; width: 100%; }
@media (max-width: 767px) { .cal-day-pills { display: none; } .cal-day-dots { display: flex; } .cal-day { min-height: 56px; } }
.cal-stato { text-align: center; padding: 40px 20px; color: #999; }
.cal-stato i { font-size: 2rem; display: block; margin-bottom: 10px; }
.cal-grid.loading .cal-grid-body, .cal-agenda.loading { opacity: .45; pointer-events: none; }
.cal-legenda { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: .78rem; color: #888; }
.cal-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legenda i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; }

.agenda-day { margin-bottom: 24px; }
.agenda-day-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.agenda-day-num { font-size: 2rem; font-weight: 800; color: var(--theme-color); line-height: 1; min-width: 48px; }
.agenda-day-label { font-size: .85rem; color: #888; }
.agenda-day-name { font-weight: 700; font-size: 1rem; color: var(--title-color); }
.agenda-slot {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #fff; border: 1px solid #f0eaea;
  border-radius: 10px; margin-bottom: 8px; transition: border-color .15s, box-shadow .15s;
}
.agenda-slot:hover { border-color: #d4b8b8; box-shadow: 0 2px 8px rgba(106,6,6,.08); }
.agenda-slot.sold-out { opacity: .6; }
.agenda-slot-color { width: 4px; border-radius: 4px; align-self: stretch; flex-shrink: 0; min-height: 40px; }
.agenda-slot-time { font-size: .82rem; font-weight: 700; color: #888; min-width: 48px; flex-shrink: 0; }
.agenda-slot-body { flex: 1; min-width: 0; }
.agenda-slot-name { font-size: .9rem; font-weight: 700; color: var(--title-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
a.agenda-slot-name:hover { color: var(--theme-color); }
.agenda-slot-posti { font-size: .75rem; color: #888; margin-top: 2px; }
.agenda-slot-posti.low { color: #c0620f; font-weight: 600; }
.agenda-slot-posti.sold { color: #aaa; }
.agenda-slot-btn {
  background: var(--theme-color); color: #fff; border: none; border-radius: 7px; padding: 7px 14px; font-size: .78rem;
  font-weight: 700; cursor: pointer; flex-shrink: 0; font-family: var(--body-font); transition: background .15s; display: inline-block;
}
.agenda-slot-btn:hover { background: var(--theme-color2); color: #fff; }
.agenda-slot-btn.disabled { background: #e0d8d8; color: #999; cursor: default; }

/* Pannello del giorno: foglio dal basso su telefono, finestra centrata da desktop */
.day-drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1100; }
.day-drawer-overlay.open { display: block; }
.day-drawer {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 20px 20px 0 0; z-index: 1101;
  max-height: 85vh; overflow-y: auto; transform: translateY(100%); transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding: 0 0 40px; visibility: hidden;
}
.day-drawer.open { transform: translateY(0); visibility: visible; }
@media (min-width: 768px) {
  .day-drawer { left: 50%; right: auto; bottom: auto; top: 50%; width: 600px; max-width: calc(100% - 40px); border-radius: 16px;
    transform: translate(-50%, -45%); opacity: 0; transition: transform .25s, opacity .25s; padding-bottom: 24px; }
  .day-drawer.open { transform: translate(-50%, -50%); opacity: 1; }
  .day-drawer-handle { display: none; }
}
.day-drawer-handle { width: 40px; height: 4px; background: #e0d8d8; border-radius: 2px; margin: 12px auto 0; }
.day-drawer-header { padding: 16px 56px 12px 20px; border-bottom: 1px solid #f0eaea; position: sticky; top: 0; background: #fff; z-index: 1; }
.day-drawer-title { font-size: 1.1rem; font-weight: 800; color: var(--title-color); }
.day-drawer-subtitle { font-size: .82rem; color: #888; margin-top: 2px; }
.day-drawer-close {
  position: absolute; top: 14px; right: 16px; background: #f0eeee; border: none; border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .85rem; color: #666;
}
.day-drawer-body { padding: 16px 20px 0; }
@media (max-width: 575px) {
  .cal-month-label { font-size: 1.1rem; min-width: 130px; }
  .cal-day { min-height: 52px; padding: 4px 3px 3px; }
  .cal-day-num { font-size: .72rem; }
  .cal-grid-head-cell { font-size: .65rem; }
  .filter-chip { font-size: .74rem; padding: 5px 11px; }
  .agenda-slot { gap: 10px; padding: 10px; }
}

/* ── Blog ── */
.sw-blog .blog-box { height: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.sw-blog .blog-box .blog-img { margin-bottom: 0; border-radius: 0; }
.sw-blog .blog-box .blog-img img { border-radius: 0; }
.sw-blog .blog-img { aspect-ratio: 3/2; overflow: hidden; background: #f3eeee; }
.sw-blog .blog-img img { width: 100%; height: 100%; object-fit: cover; }
.sw-blog .blog-box_content { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.sw-blog .blog-box_content .th-btn { margin-top: auto; align-self: flex-start; }
.sw-blog .blog-meta { font-size: 13px; color: var(--body-color); margin-bottom: 8px; }
.sw-blog .blog-meta i { color: var(--theme-color); margin-right: 5px; }
.sw-blog .blog-box .box-title { font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.sw-blog .blog-box .blog-meta { margin: 0 0 8px; }
.sw-blog .box-title a { color: var(--title-color); }
.sw-blog .box-title a:hover { color: var(--theme-color); }
.sw-estratto { font-size: 14px; color: var(--body-color); line-height: 1.6; margin-bottom: 16px; }
.th-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; list-style: none; }
.th-pagination li { margin: 0; }
.th-pagination a, .th-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--border-color); color: var(--title-color); font-weight: 600; background: #fff;
}
.th-pagination a:hover, .th-pagination a.active { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.th-pagination span.gap { border: none; background: none; min-width: 20px; }

/* Articolo */
.sw-articolo-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--body-color); margin-bottom: 20px; }
.sw-articolo-meta i { color: var(--theme-color); margin-right: 6px; }
.sw-articolo-corpo { max-width: 860px; margin: 0 auto; }
.sw-torna { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--theme-color); }
.sw-correlati { background: var(--smoke-color, #f7f4f4); }

/* ── FAQ ── */
.sw-faq-elenco { max-width: 900px; margin: 0 auto; }
.sw-faq-elenco .accordion-card { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.sw-faq-elenco .accordion-button {
  width: 100%; text-align: left; background: #fff; border: none; padding: 18px 56px 18px 22px; font-weight: 700;
  font-size: 16px; color: var(--title-color); position: relative; box-shadow: none;
}
.sw-faq-elenco .accordion-button::after { content: "\2b"; font-family: var(--icon-font, "Font Awesome 6 Pro"); position: absolute; right: 22px; top: 50%; transform: translateY(-50%); background: none; width: auto; height: auto; color: var(--theme-color); }
.sw-faq-elenco .accordion-button:not(.collapsed) { color: var(--theme-color); }
.sw-faq-elenco .accordion-button:not(.collapsed)::after { content: "\f068"; }
.sw-faq-elenco .accordion-body { padding: 0 22px 20px; }

/* ── Contatti ── */
.sw-contatti-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; padding: 22px; height: 100%; }
.sw-contatti-card .ic { width: 48px; height: 48px; border-radius: 50%; background: #fbf0f0; color: var(--theme-color); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.sw-contatti-card h3 { font-size: 16px; margin-bottom: 4px; }
.sw-contatti-card p { margin: 0; font-size: 15px; }
.sw-contatti-card a { color: var(--body-color); }
.sw-contatti-card a:hover { color: var(--theme-color); }
.sw-modulo { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,.07); }
.sw-modulo label { font-weight: 600; font-size: 14px; color: var(--title-color); margin-bottom: 6px; display: block; }
.sw-modulo .form-control { border-radius: 8px; border: 1px solid var(--border-color); padding: 12px 14px; height: auto; font-size: 15px; background: #fff; }
.sw-modulo .form-control:focus { border-color: var(--theme-color); box-shadow: none; }
.sw-modulo .is-invalid { border-color: #c0392b !important; }
.sw-modulo .sw-err { color: #c0392b; font-size: 13px; margin-top: 4px; }
.sw-modulo .form-check-label { font-weight: 400; display: inline; }
.sw-modulo .form-check-input:checked { background-color: var(--theme-color); border-color: var(--theme-color); }
.sw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sw-avviso { border-radius: 10px; padding: 16px 18px; margin-bottom: 24px; font-size: 15px; }
.sw-avviso.ok { background: #eaf6ef; color: #17613a; border: 1px solid #bfe3cd; }
.sw-avviso.err { background: #fbeeee; color: #8a1c1c; border: 1px solid #f0cccc; }
.sw-mappa { border-radius: 16px; overflow: hidden; line-height: 0; }
.sw-mappa iframe { width: 100%; height: 380px; border: 0; }
/* da desktop la mappa scende fino in fondo al modulo accanto (prima lasciava un vuoto sotto) */
@media (min-width: 992px) {
  .sw-col-mappa { display: flex; flex-direction: column; }
  .sw-col-mappa .sw-mappa { flex: 1 1 auto; min-height: 380px; position: relative; background: #e5e3df; }
  .sw-col-mappa .sw-mappa iframe { position: absolute; inset: 0; height: 100%; }
}

/* ── Regali ── */
.sw-passi .sw-passo { text-align: center; padding: 28px 22px; background: #fff; border-radius: 16px; height: 100%; box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.sw-passi .sw-passo .num { width: 54px; height: 54px; border-radius: 50%; background: var(--theme-color); color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.sw-passi h3 { font-size: 18px; margin-bottom: 8px; }
.sw-passi p { font-size: 14px; margin: 0; }

/* ── 404 ── */
.sw-404-box { text-align: center; max-width: 720px; margin: 0 auto; }
.sw-404-box .codice { font-size: 7rem; font-weight: 800; line-height: 1; color: var(--theme-color); opacity: .15; }
.sw-404-box form { display: flex; gap: 8px; max-width: 480px; margin: 24px auto; }
.sw-404-box form input { flex: 1; border: 1px solid var(--border-color); border-radius: 8px; padding: 12px 14px; }
.sw-404-box .sw-link-utili { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* Titolo dell'articolo: il sec-title del tema è pensato per le sezioni, qui va ridotto */
.sw-titolo-articolo { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; }
.sw-modulo .form-check { padding-left: 1.9em; }
.sw-modulo .form-check .form-check-input { margin-left: -1.9em; }
.sw-404-box h1 { font-size: clamp(30px, 4vw, 48px); }
