:root {
  --bg-top: #0b1c33;
  --bg-bottom: #113a5d;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --line: #d8e2ee;
  --text: #13253a;
  --muted: #5f7187;
  --brand: #ff7a1c;
  --brand-strong: #e95f00;
  --accent: #ff6600;
  --accent-strong: #ff6600;
  --nav: #10385d;
  --shadow-lg: 0 22px 48px rgba(8, 24, 48, 0.24);
  --shadow-sm: 0 8px 20px rgba(15, 35, 64, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--text);
  font-family: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(1400px 500px at 10% -10%, rgba(17, 153, 142, 0.28), transparent 60%),
    radial-gradient(900px 400px at 90% 0%, rgba(255, 122, 28, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  min-height: 100vh;
}

.page-wrap {
  width: min(1140px, calc(100% - 28px));
  margin: 18px auto;
  animation: page-enter 460ms ease-out;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #dce9f7;
  font-size: 12px;
  margin-bottom: 10px;
  padding: 4px 8px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-switch a {
  color: #f4fbff;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.9;
}

.lang-switch a:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-header {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(120deg, #ff8a31, #ff5f16 55%, #f04f00);
}

.brand-bar {
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  height: clamp(50px, 7vw, 78px);
  width: auto;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.28));
}

.support {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.old-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: linear-gradient(90deg, #0e304f, #174a74);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 10px 12px;
}

.old-nav a {
  color: #e8f4ff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 140ms ease, background-color 140ms ease;
}

.old-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.box,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.box h2,
.panel h3 {
  margin: 0 0 9px;
  color: #0f3f69;
  font-family: "Rockwell", "Georgia", serif;
  font-size: 19px;
  line-height: 1.15;
  text-align: left;
  text-decoration: none;
}

.mini-text {
  margin: 0;
  color: var(--muted);
}

.offers ul,
.info-list ul {
  margin: 0;
  padding-left: 20px;
}

.offers li,
.info-list li {
  margin: 5px 0;
}

.intro-panel p,
.panel p {
  margin: 0;
}

.hero-panel {
  background: linear-gradient(140deg, #ffffff 0%, #eef6ff 55%, #e9fbf7 100%);
  border-color: #cfe1f4;
}

.hero-body {
  display: grid;
  gap: 12px;
}

.hero-body p {
  color: #35506a;
  font-size: 15px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c4d8eb;
  border-radius: 999px;
  background: #f4f9ff;
  color: #24547c;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-link {
  color: #175d8f;
  font-weight: 800;
  text-decoration: none;
}

.hero-link:hover {
  text-decoration: underline;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.trust-item {
  border: 1px solid #d6e4f3;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f3f9ff);
  padding: 10px;
  box-shadow: 0 6px 14px rgba(19, 50, 84, 0.07);
}

.trust-item h4 {
  margin: 0 0 4px;
  color: #17517e;
  font-size: 14px;
}

.trust-item p {
  margin: 0;
  color: #54708a;
  font-size: 13px;
}

.news-strip {
  margin: 0 0 12px;
}

.news-strip > h3 {
  margin: 0 0 10px;
  color: #19517e;
  font-family: "Rockwell", "Georgia", serif;
  font-size: 22px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.news-card {
  border: 1px solid #d6e4f3;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f3f9ff);
  padding: 10px;
}

.news-card h4 {
  margin: 0 0 6px;
  color: #1a537f;
  font-size: 15px;
}

.news-card p {
  margin: 0;
  color: #56718a;
  font-size: 13px;
}

.widget-panel {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.widget-shell {
  min-height: 235px;
  background: var(--surface-soft);
  border: 1px dashed #b7cadc;
  border-radius: 10px;
  padding: 10px;
}

.wl-shell {
  display: grid;
  gap: 12px;
}

#tpwl-search,
#tpwl-tickets {
  width: 100%;
}

.widget-fallback {
  border: 1px solid #d4e2f2;
  border-radius: 10px;
  padding: 12px;
  background: #f7fbff;
}

.widget-fallback p {
  margin: 0 0 10px;
}

.fallback-inline-note {
  margin-top: 10px;
  color: #4f6780;
  font-size: 12px;
}

.fallback-inline-frame {
  width: 100%;
  min-height: 560px;
  border: 1px solid #c8d8e8;
  border-radius: 10px;
  background: #fff;
}

.widget-fallback a,
.go-link,
.fallback-search button {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease;
}

.widget-fallback a:hover,
.go-link:hover,
.fallback-search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.fallback-search {
  display: grid;
  gap: 7px;
}

.fallback-search label {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
}

.fallback-search input,
.bo-edit-form input,
.bo-edit-form textarea,
.bo-modal input {
  border: 1px solid #c3d0dd;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  background: #fff;
}

.fallback-search input:focus,
.bo-edit-form input:focus,
.bo-edit-form textarea:focus,
.bo-modal input:focus {
  outline: 2px solid rgba(255, 102, 0, 0.28);
  border-color: #ff6600;
}

.content-page-main {
  min-height: 420px;
}

.content-page-main p,
.content-page-main li {
  font-size: 14px;
}

.cms-widget-image {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d3dfeb;
  margin-bottom: 10px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.center-box {
  text-align: left;
  padding-block: 18px;
}

.site-footer {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e4f1ff;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(13, 46, 74, 0.46);
  backdrop-filter: blur(3px);
}

/* Backoffice */
.bo-main {
  padding: 14px 0 4px;
}

.bo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f9ff;
  border: 1px solid #cfdeed;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.bo-lang-hint {
  font-size: 12px;
  color: var(--muted);
}

.bo-lang-select {
  margin: 0 6px;
  border: 1px solid #afc7de;
  border-radius: 8px;
  background: #fff;
  color: #2b4f72;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.bo-page-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bo-tab {
  padding: 8px 13px;
  border: 1px solid #afc7de;
  border-radius: 999px;
  background: #fff;
  color: #2b4f72;
  font-size: 12px;
  font-weight: 800;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 140ms ease;
}

.bo-tab.active {
  background: linear-gradient(120deg, #23649c, #18466d);
  color: #fff;
  border-color: #18466d;
}

.bo-tab:hover:not(.active) {
  background: #ebf4ff;
}

.bo-builder {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  align-items: start;
}

.bo-col-wrap h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #19517e;
}

.bo-col {
  min-height: 72px;
  border: 2px dashed #c3d6e9;
  border-radius: 10px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 140ms ease, background 140ms ease;
}

.bo-col.bo-drop-over {
  border-color: #1b6ba2;
  background: #eaf4ff;
}

.bo-widget-card {
  background: #fff;
  border: 1px solid #d3dfeb;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 10px rgba(19, 50, 84, 0.07);
}

.bo-widget-card.bo-dragging {
  opacity: 0.45;
}
.bo-widget-lang-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f4b78;
  background: #e8f4ff;
  border: 1px solid #b7d2ea;
  border-radius: 999px;
  padding: 2px 7px;
}

.bo-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bo-drag-handle {
  color: #527190;
  font-size: 16px;
  font-weight: 900;
  cursor: grab;
  flex-shrink: 0;
  padding: 0 4px;
  user-select: none;
}

.bo-widget-label {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bo-card-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.bo-card-btns button,
.bo-form-actions button,
.bo-modal-actions button,
.bo-add-btn {
  border: 1px solid #c3d3e4;
  background: #f7fbff;
  border-radius: 9px;
  padding: 5px 9px;
  font-size: 12px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.bo-card-btns button:hover,
.bo-form-actions button:hover,
.bo-modal-actions button:hover,
.bo-add-btn:hover {
  background: #e8f2fd;
}

.bo-edit-form {
  margin-top: 9px;
  border-top: 1px solid #e4edf6;
  padding-top: 8px;
}

.bo-edit-form label,
.bo-modal label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 7px;
  margin-bottom: 3px;
}

.bo-edit-form textarea {
  height: 76px;
  resize: vertical;
}

.bo-form-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.bo-btn-save,
.bo-modal-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-strong)) !important;
  color: #fff !important;
  border-color: var(--brand-strong) !important;
}

.bo-add-btn {
  margin-top: 6px;
  width: 100%;
  background: #edf7ff;
  border-style: dashed;
}

.bo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 27, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8000;
}

.bo-modal {
  background: #fff;
  border: 1px solid #d2dfeb;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  width: 90%;
  max-width: 380px;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: 13px;
}

.bo-modal h4 {
  margin: 0 0 5px;
  font-size: 18px;
  font-family: "Rockwell", "Georgia", serif;
  color: #1d4f78;
}

.bo-modal-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}

.bo-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 1000px) {
  .layout,
  .bo-builder {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .brand-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .old-nav a {
    font-size: 11px;
  }

  .columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-wrap {
    width: min(1140px, calc(100% - 16px));
    margin: 10px auto;
  }

  .utility-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-left: 2px;
  }

  .brand-logo img {
    height: clamp(42px, 12vw, 58px);
  }

  .fallback-search label {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}



@media (max-width: 900px) {
  .utility-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .brand-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .brand-logo img {
    height: clamp(42px, 10vw, 60px);
  }

  .old-nav a {
    display: inline-block;
    margin-bottom: 4px;
  }

  .columns {
    grid-template-columns: 1fr;
  }
}
