/* ============================================================
   Club Reservation® — Pagine legali (Termini, Privacy, Cookie)
   Tema: Dark professionale, coerente con la UI v2 del sito.
   Palette brand: viola #A137BF. Font: Figtree + Plus Jakarta Sans.
   Stila il markup esistente (.one_line_col, .box_primary,
   .expand-content, .cookie-table, .iub_footer, blockquote...).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --lg-bg:        #0a0a11;
  --lg-bg-2:      #0f0f1a;
  --lg-surface:   #14141f;
  --lg-surface-2: #1a1a27;
  --lg-border:    rgba(255, 255, 255, 0.08);
  --lg-border-2:  rgba(255, 255, 255, 0.14);
  --lg-text:      #e9e9f1;
  --lg-text-soft: #b6b6c6;
  --lg-text-mut:  #82828f;
  --lg-primary:   #A137BF;
  --lg-primary-l: #C477D9;
  --lg-primary-sf: rgba(161, 55, 191, 0.12);
  --lg-radius:    16px;
  --lg-radius-sm: 12px;
  --lg-font:      'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --lg-font-head: 'Plus Jakarta Sans', 'Figtree', sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background:
    radial-gradient(1100px 540px at 78% -8%, rgba(161, 55, 191, 0.16), transparent 60%),
    radial-gradient(900px 480px at 0% 0%, rgba(79, 34, 115, 0.18), transparent 55%),
    var(--lg-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--lg-font);
  color: var(--lg-text);
  font-size: 15px;
  line-height: 1.72;
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 28px 96px;
  background: transparent;
}

/* Logo in testa */
body > img {
  width: 132px !important;
  height: auto;
  margin-bottom: 34px;
  opacity: 0.96;
}

/* ---------- Titoli ---------- */
h1 {
  font-family: var(--lg-font-head);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 40px;
  color: #fff;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--lg-border);
}

h2 {
  font-family: var(--lg-font-head);
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
  margin: 44px 0 14px;
  padding-left: 16px;
  position: relative;
}
h1 + h2 { margin-top: 8px; }

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--lg-primary), var(--lg-primary-l));
}

h3 {
  font-family: var(--lg-font-head);
  font-size: 18px;
  font-weight: 700;
  color: #f2f2f7;
  margin: 0 0 8px;
}

h4 {
  font-family: var(--lg-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--lg-primary-l);
  margin: 18px 0 6px;
  letter-spacing: 0.01em;
}

/* ---------- Testo ---------- */
p {
  margin: 0 0 14px;
  color: var(--lg-text-soft);
}

strong { color: #fff; font-weight: 700; }

a {
  color: var(--lg-primary-l);
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 119, 217, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease;
}
a:hover { color: #fff; border-bottom-color: var(--lg-primary-l); }

/* ---------- Liste ---------- */
ul, ol { margin: 0 0 16px; padding-left: 0; }

ul { list-style: none; }
ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--lg-text-soft);
}
ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lg-primary);
  box-shadow: 0 0 0 4px rgba(161, 55, 191, 0.15);
}
ol { padding-left: 22px; }
ol li { margin-bottom: 10px; color: var(--lg-text-soft); }

/* ---------- Sezioni "one_line_col" ---------- */
.one_line_col { margin: 18px 0; }
.one_line_col h2 { margin-top: 36px; }
.one_line_col p { color: var(--lg-text-soft); }

/* ---------- Box espandibili ---------- */
.box_primary {
  border: 1px solid var(--lg-border);
  background: linear-gradient(180deg, var(--lg-surface), var(--lg-surface-2));
  border-radius: var(--lg-radius);
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.box_primary:hover {
  border-color: rgba(161, 55, 191, 0.42);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.box_primary h3 {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  padding-right: 30px;
  position: relative;
  transition: color 0.18s ease;
}
.box_primary h3:hover { color: var(--lg-primary-l); }

/* chevron per gli header cliccabili (puro CSS, nessuna dipendenza da icone) */
.box_primary h3.expand-click::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 42%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--lg-primary-l);
  border-bottom: 2px solid var(--lg-primary-l);
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.85;
}
/* stato aperto: supporta sia il toggle via classe (.expanded)
   sia il toggle via stile inline (display:block) usato da alcune pagine */
.expand.expanded h3.expand-click::after,
.box_primary.expanded h3.expand-click::after {
  transform: translateY(-50%) rotate(225deg);
}
.box_primary:has(> .expand-content[style*="block"]) h3.expand-click::after {
  transform: translateY(-50%) rotate(225deg);
}

/* icona decorativa eventuale negli header */
.box_primary h3 .w_icon_24,
.box_primary h3 [class^="policyicon"] { color: var(--lg-primary-l); }

.expand-content { display: none; }
.expand.expanded > .expand-content,
.box_primary.expanded > .expand-content { display: block; }
.expand-content {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--lg-border);
}
.expand-content p { color: var(--lg-text-soft); }

.wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius-sm);
  padding: 12px 16px;
  margin: 8px 0 12px;
}
.wrap p { margin-bottom: 0; }

.box_primary.definitions h4 { margin-top: 16px; }

ul.for_boxes { list-style: none; padding-left: 0; }
ul.for_boxes li { margin-bottom: 10px; }

hr {
  border: none;
  border-top: 1px solid var(--lg-border);
  margin: 20px 0;
}

/* ---------- Citazione / clausola in evidenza (Termini) ---------- */
blockquote {
  background: var(--lg-primary-sf) !important;
  border: 1px solid rgba(161, 55, 191, 0.28) !important;
  border-left: 4px solid var(--lg-primary) !important;
  border-radius: var(--lg-radius-sm);
  padding: 18px 22px !important;
  margin: 22px 0 !important;
  color: #efe6f5 !important;
}
blockquote em { color: #f3ecf8; font-style: italic; }

/* ---------- Tabella cookie ---------- */
.cookie-table-container { overflow-x: auto; margin-top: 22px; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--lg-surface);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-radius-sm);
  overflow: hidden;
  font-size: 14px;
}
.cookie-table th,
.cookie-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--lg-border);
}
.cookie-table th {
  background: rgba(161, 55, 191, 0.16);
  color: #fff;
  font-family: var(--lg-font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.cookie-table tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table td { color: var(--lg-text-soft); }

/* ---------- Ricerca locale (Cookie) ---------- */
.input-wrapper { position: relative; display: inline-block; margin-top: 22px; }
#ricercaLocale {
  padding: 12px 42px 12px 14px;
  border-radius: var(--lg-radius-sm);
  border: 1px solid var(--lg-border-2);
  background-color: var(--lg-surface);
  color: #fff;
  font-size: 14px;
  width: 280px;
  max-width: 100%;
  font-family: var(--lg-font);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#ricercaLocale::placeholder { color: var(--lg-text-mut); }
#ricercaLocale:focus {
  outline: none;
  border-color: var(--lg-primary);
  box-shadow: 0 0 0 3px rgba(161, 55, 191, 0.22);
}
.go-button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lg-primary-l);
  font-size: 16px;
  display: none;
}
.go-button.visible { display: block; }

/* ---------- Footer ---------- */
.iub_footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--lg-border);
  text-align: center;
}
.iub_footer p {
  color: var(--lg-text-mut);
  font-size: 13px;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { padding: 48px 18px 64px; font-size: 14.5px; }
  body > img { width: 112px !important; margin-bottom: 26px; }
  h2 { padding-left: 13px; }
  .box_primary { padding: 16px 16px; }
  blockquote { padding: 16px 16px !important; }
}
