
:root {
  --fb2-bg: #f3f6fa;
  --fb2-surface: #ffffff;
  --fb2-text: #0d2947;
  --fb2-muted: #617086;
  --fb2-line: #dbe5ef;
  --fb2-navy: #062f57;
  --fb2-blue: #0a5da8;
  --fb2-orange: #ff6a00;
  --fb2-orange-dark: #dd5b00;
  --fb2-green: var(--fb2-blue);
  --fb2-green-dark: var(--fb2-navy);
  --fb2-pink: var(--fb2-orange);
  --fb2-pink-soft: #fff2e8;
  --fb2-shadow: 0 18px 50px rgba(3, 43, 80, .12);
  --fb2-radius: 20px;
  --fb2-shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.fb2-body {
  margin: 0;
  background: var(--fb2-bg);
  color: var(--fb2-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.fb2-body img { max-width: 100%; height: auto; }
.fb2-body a { color: var(--fb2-green-dark); }
.fb2-body a:hover { color: var(--fb2-pink); }
.fb2-shell { width: min(calc(100% - 32px), var(--fb2-shell)); margin-inline: auto; }
.fb2-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.fb2-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--fb2-line);
  backdrop-filter: blur(16px);
}
.fb2-header__inner { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.fb2-brand { display: inline-flex; flex: 0 1 360px; flex-direction: column; align-items: flex-start; gap: 1px; color: inherit !important; line-height: 1; text-decoration: none; }
.fb2-logo-word { display: block; font-size: clamp(30px, 3.2vw, 44px); font-weight: 950; font-style: italic; letter-spacing: -.065em; white-space: nowrap; }
.fb2-logo-foto { color: var(--fb2-blue); }
.fb2-logo-banner { color: var(--fb2-orange); }
.fb2-logo-domain { margin-left: 3px; color: var(--fb2-navy); font-size: .42em; font-style: normal; letter-spacing: -.02em; }
.fb2-logo-tagline { display: block; margin-top: 3px; padding-top: 4px; border-top: 2px solid var(--fb2-orange); color: var(--fb2-navy); font-size: 9px; font-weight: 900; line-height: 1.1; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.fb2-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.fb2-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 9px 12px; border-radius: 10px; color: #26332e; font-weight: 700; font-size: 14px; text-decoration: none; }
.fb2-nav a:hover { background: #eef4fa; color: var(--fb2-green-dark); }
.fb2-nav .fb2-nav__cta { background: var(--fb2-green); color: #fff; padding-inline: 18px; }
.fb2-nav .fb2-nav__cta:hover { background: var(--fb2-orange-dark); color: #fff; }
.fb2-nav-toggle { display: none; width: 48px; min-height: 44px; padding: 10px; border: 1px solid var(--fb2-line); border-radius: 12px; background: #fff; cursor: pointer; }
.fb2-nav-toggle span:not(.fb2-sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--fb2-text); }

.fb2-main { min-height: 60vh; }
.fb2-hero { position: relative; overflow: hidden; padding: 86px 0 70px; background: linear-gradient(120deg, #062f57 0%, #0a4d86 58%, #ff6a00 170%); border-bottom: 1px solid var(--fb2-line); }
.fb2-hero::after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; top: -180px; border-radius: 50%; background: rgba(255,106,0,.18); }
.fb2-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 46px; align-items: center; }
.fb2-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.fb2-hero h1 { color: #fff; margin: 0; max-width: 850px; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -.045em; }
.fb2-hero h1 span { color: var(--fb2-orange); }
.fb2-lead { max-width: 760px; margin: 24px 0 0; color: #e7eef6; font-size: clamp(18px, 2.1vw, 22px); }
.fb2-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fb2-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px; background: var(--fb2-orange); color: #fff !important; font-weight: 800; text-decoration: none; box-shadow: 0 8px 22px rgba(255,106,0,.24); }
.fb2-button:hover { background: var(--fb2-orange-dark); }
.fb2-button--ghost { background: #fff; color: var(--fb2-green-dark) !important; border-color: #cddbd5; box-shadow: none; }
.fb2-button--ghost:hover { background: #eef4fa; }
.fb2-hero__panel { background: rgba(255,255,255,.88); border: 1px solid rgba(205,219,213,.9); border-radius: 26px; padding: 28px; box-shadow: var(--fb2-shadow); }
.fb2-hero__panel h2 { margin: 0 0 10px; font-size: 22px; }
.fb2-stat { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--fb2-line); }
.fb2-stat:last-child { border-bottom: 0; }
.fb2-stat__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #e7f1fb; color: var(--fb2-green-dark); font-weight: 900; }
.fb2-stat strong { display: block; font-size: 18px; }
.fb2-stat span { color: var(--fb2-muted); font-size: 14px; }

.fb2-section { padding: 76px 0; }
.fb2-section--white { background: #fff; }
.fb2-section__head { max-width: 790px; margin-bottom: 34px; }
.fb2-section h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; letter-spacing: -.03em; }
.fb2-section__head p { margin: 0; color: var(--fb2-muted); font-size: 18px; }
.fb2-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fb2-card { background: var(--fb2-surface); border: 1px solid var(--fb2-line); border-radius: var(--fb2-radius); padding: 26px; box-shadow: 0 9px 28px rgba(23,33,30,.05); }
.fb2-card h3 { margin: 0 0 8px; font-size: 21px; }
.fb2-card p { margin: 0; color: var(--fb2-muted); }
.fb2-step { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; margin-bottom: 18px; border-radius: 50%; background: var(--fb2-orange); color: #fff; font-weight: 900; }

.fb2-highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 34px; border-radius: 28px; background: linear-gradient(135deg, var(--fb2-navy), #0a4a82); color: #fff; box-shadow: var(--fb2-shadow); }
.fb2-highlight h2 { color: #fff; }
.fb2-highlight p { color: #dbe8f5; }
.fb2-highlight ul { margin: 0; padding-left: 21px; }
.fb2-highlight li { margin: 9px 0; }

.fb2-faq { display: grid; gap: 12px; }
.fb2-faq details { background: #fff; border: 1px solid var(--fb2-line); border-radius: 14px; padding: 18px 20px; }
.fb2-faq summary { cursor: pointer; font-weight: 800; }
.fb2-faq details p { margin: 12px 0 0; color: var(--fb2-muted); }

.fb2-page { padding: 56px 0 78px; }
.fb2-page__head { max-width: 820px; margin-bottom: 30px; }
.fb2-page__head h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 54px); line-height: 1.1; letter-spacing: -.035em; }
.fb2-page__head p { margin: 0; color: var(--fb2-muted); font-size: 18px; }
.fb2-panel { background: #fff; border: 1px solid var(--fb2-line); border-radius: var(--fb2-radius); padding: 28px; box-shadow: 0 10px 34px rgba(23,33,30,.06); }
.fb2-form { display: grid; gap: 16px; }
.fb2-field label { display: block; margin-bottom: 6px; font-weight: 800; }
.fb2-field input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #c9d6d0; border-radius: 11px; background: #fff; color: var(--fb2-text); font: inherit; }
.fb2-field input:focus { outline: 3px solid rgba(24,107,82,.15); border-color: var(--fb2-green); }
.fb2-alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; background: #fff3f6; border: 1px solid #f2cad8; color: #7d2343; }
.fb2-login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); gap: 24px; align-items: start; }
.fb2-note { padding: 20px; border-radius: 16px; background: #eef5fb; border: 1px solid #d6e3ef; }
.fb2-note h2 { margin-top: 0; font-size: 20px; }

.fb2-ad-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.fb2-ad-card { display: grid; place-items: center; min-height: 150px; background: #fff; border: 1px solid var(--fb2-line); border-radius: 18px; padding: 22px; box-shadow: 0 8px 24px rgba(23,33,30,.05); }
.fb2-ad-card img { max-width: 100%; height: auto; object-fit: contain; }

.fb2-footer { border-top: 1px solid var(--fb2-line); background: #fff; }
.fb2-footer__inner { padding: 28px 0 34px; text-align: center; color: var(--fb2-muted); font-size: 14px; }
.fb2-footer__inner p { margin: 5px 0; }
.fb2-footer__inner a { font-weight: 700; text-decoration: none; }

@media (max-width: 980px) {
  .fb2-header__inner { min-height: 76px; }
  .fb2-brand { max-width: 300px; }
  .fb2-nav-toggle { display: block; margin-left: auto; }
  .fb2-nav { display: none; position: absolute; top: 76px; left: 16px; right: 16px; padding: 12px; background: #fff; border: 1px solid var(--fb2-line); border-radius: 16px; box-shadow: var(--fb2-shadow); flex-direction: column; align-items: stretch; }
  .fb2-nav.is-open { display: flex; }
  .fb2-nav a { width: 100%; }
  .fb2-hero { padding-top: 62px; }
  .fb2-hero__grid, .fb2-highlight, .fb2-login-grid { grid-template-columns: 1fr; }
  .fb2-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .fb2-shell { width: min(calc(100% - 22px), var(--fb2-shell)); }
  .fb2-header__inner { min-height: 68px; }
  .fb2-brand { max-width: 238px; }
  .fb2-nav { top: 68px; left: 11px; right: 11px; }
  .fb2-hero { padding: 48px 0; }
  .fb2-hero h1 { color: #fff; font-size: clamp(38px, 12vw, 54px); }
  .fb2-actions { flex-direction: column; }
  .fb2-button { width: 100%; }
  .fb2-grid-3, .fb2-ad-list { grid-template-columns: 1fr; }
  .fb2-section { padding: 56px 0; }
  .fb2-card, .fb2-panel, .fb2-highlight, .fb2-hero__panel { padding: 22px; border-radius: 18px; }
  .fb2-footer__inner { font-size: 13px; }
  .fb2-footer__inner span[aria-hidden="true"] { display: block; height: 0; overflow: hidden; }
}

/* FotoBanner 2.0.2 - rifiniture skin blu/arancio */
.fb2-nav .fb2-nav__cta { background: var(--fb2-orange); color: #fff; }
.fb2-section .fb2-eyebrow,
.fb2-page .fb2-eyebrow { border-color: #ffd5b7; background: #fff3e9; color: var(--fb2-orange-dark); }
.fb2-hero .fb2-eyebrow { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff; }
.fb2-footer { border-top: 0; background: var(--fb2-navy); }
.fb2-footer__inner { color: #c9d8e8; }
.fb2-footer__inner strong { color: #fff; }
.fb2-footer__inner a { color: #fff; }
.fb2-footer__inner a:hover { color: var(--fb2-orange); }

/* FotoBanner 2.0.2 - pannello impostazioni */
.fb2-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; align-items: start; }
.fb2-settings-card h2 { margin-top: 0; }
.fb2-module-row { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--fb2-line); }
.fb2-module-row:last-of-type { border-bottom: 0; }
.fb2-module-row strong { display: block; }
.fb2-module-row span:not(.fb2-status) { display: block; margin-top: 2px; color: var(--fb2-muted); font-size: 13px; }
.fb2-status { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 999px; background: #edf1f5; color: #5a687a; font-size: 11px; font-weight: 900; letter-spacing: .03em; }
.fb2-status--on { background: #e8f7ef; color: #17643f; }
.fb2-muted-note { color: var(--fb2-muted); font-size: 14px; }
.fb2-field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #c9d6d0; border-radius: 11px; background: #fff; color: var(--fb2-text); font: inherit; }
.fb2-field small { display: block; margin-top: 6px; color: var(--fb2-muted); }
.fb2-alert--success { background: #edf9f2; border-color: #bee5cc; color: #1e6040; }
.fb2-button--danger { background: #b52c3a; box-shadow: 0 8px 22px rgba(181,44,58,.18); }
.fb2-button--danger:hover { background: #8f1f2b; }
code { overflow-wrap: anywhere; }
@media (max-width: 880px) {
  .fb2-settings-grid { grid-template-columns: 1fr; }
  .fb2-module-row { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* FotoBanner 2.0.3 - full page restyle */
.fb2-section--compact { padding: 42px 0 0; }
.fb2-pro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 24px; align-items: start; }
.fb2-pro-card { position: relative; overflow: hidden; }
.fb2-pro-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: rgba(255,106,0,.08); pointer-events: none; }
.fb2-pro-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #fff1e6; color: var(--fb2-orange-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.fb2-pro-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0; }
.fb2-pro-price strong { font-size: clamp(38px, 5vw, 56px); color: var(--fb2-navy); line-height: 1; }
.fb2-pro-price span { color: var(--fb2-muted); }
.fb2-checklist { padding-left: 20px; margin: 22px 0; }
.fb2-checklist li { margin: 10px 0; }
.fb2-page__head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.fb2-actions--top { margin: 0; flex: 0 0 auto; }
.fb2-actions--center { justify-content: center; }
.fb2-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.fb2-metric-card { padding: 22px; border-radius: 18px; background: linear-gradient(145deg,#fff,#f7faff); border: 1px solid var(--fb2-line); box-shadow: 0 9px 26px rgba(3,43,80,.06); }
.fb2-metric-card span { display: block; color: var(--fb2-muted); font-size: 13px; font-weight: 800; }
.fb2-metric-card strong { display: block; margin: 8px 0 4px; color: var(--fb2-navy); font-size: clamp(28px,3.2vw,40px); line-height: 1; }
.fb2-metric-card small { color: var(--fb2-muted); }
.fb2-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 22px; align-items: start; }
.fb2-stat-table { display: grid; gap: 0; }
.fb2-stat-table > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--fb2-line); }
.fb2-stat-table > div:last-child { border-bottom: 0; }
.fb2-stat-table span { color: var(--fb2-muted); }
.fb2-stat-table strong { color: var(--fb2-navy); font-size: 18px; }
.fb2-stat-table__total { margin-top: 8px; padding: 16px !important; border-radius: 12px; background: #eef5fb; border: 0 !important; }
.fb2-banner-preview { display: grid; place-items: center; overflow: hidden; min-height: 110px; padding: 16px; border-radius: 14px; background: #f3f6fa; border: 1px dashed #b8c9da; }
.fb2-banner-preview img { max-width: 100%; height: auto; object-fit: contain; }
.fb2-account-meta { margin-top: 18px; }
.fb2-account-meta p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--fb2-line); }
.fb2-account-meta span { color: var(--fb2-muted); }
.fb2-codebox textarea { width: 100%; min-height: 190px; margin: 14px 0; padding: 16px; border: 1px solid #c7d4e1; border-radius: 12px; background: #071d32; color: #e8f3ff; font: 14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; resize: vertical; }
.fb2-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.fb2-panel-head h2 { margin: 0 0 4px; }
.fb2-panel-head p { margin: 0; color: var(--fb2-muted); }
.fb2-button--small { min-height: 40px; padding: 8px 13px; font-size: 13px; }
.fb2-table-wrap { width: 100%; overflow-x: auto; }
.fb2-admin-table { width: 100%; min-width: 850px; border-collapse: collapse; }
.fb2-admin-table th { padding: 12px; text-align: left; border-bottom: 2px solid var(--fb2-line); color: var(--fb2-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.fb2-admin-table td { padding: 14px 12px; vertical-align: middle; border-bottom: 1px solid var(--fb2-line); }
.fb2-admin-table td small, .fb2-table-link { display: block; margin-top: 4px; font-size: 12px; }
.fb2-table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fb2-banner-thumb { width: min(260px, 100%); padding: 6px; border: 1px solid var(--fb2-line); border-radius: 10px; background: #fff; }
.fb2-banner-thumb img { display: block; max-width: 100%; height: auto; }
.fb2-registration-form { gap: 24px; }
.fb2-registration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.fb2-form-section h2 { display: inline-block; margin: 0 0 18px 8px; vertical-align: middle; }
.fb2-form-section .fb2-field { margin-bottom: 14px; }
.fb2-check-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #f6f9fc; }
.fb2-check-row input { width: 20px; height: 20px; margin-top: 2px; }
.fb2-format-callout { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; padding: 16px; border-radius: 14px; background: #fff4ea; border: 1px solid #ffd2ae; }
.fb2-format-callout strong { color: var(--fb2-orange-dark); }
.fb2-format-callout span { color: var(--fb2-muted); font-size: 14px; }
.fb2-panel--cta { margin-top: 26px; text-align: center; }
.fb2-mail-list { display: grid; gap: 8px; max-height: 480px; overflow: auto; }
.fb2-mail-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 10px; background: #f6f9fc; }
.fb2-legal-copy { color: #35495f; }
.fb2-legal-copy p { margin: 0 0 16px; }
.fb2-legal-copy strong { color: var(--fb2-navy); }

@media (max-width: 980px) {
  .fb2-pro-grid, .fb2-dashboard-grid, .fb2-registration-grid { grid-template-columns: 1fr; }
  .fb2-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fb2-page__head--split { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .fb2-metric-grid { grid-template-columns: 1fr; }
  .fb2-stat-table > div, .fb2-account-meta p { align-items: flex-start; flex-direction: column; gap: 4px; }
  .fb2-panel-head { align-items: flex-start; flex-direction: column; }
  .fb2-mail-list > div { flex-direction: column; gap: 4px; }
}

.fb2-network-preview {
  padding: 18px 0;
  background: #fff;
  border-top: 1px solid rgba(12, 38, 68, .10);
}
.fb2-network-preview .fb-slot {
  min-height: 0;
}


/* FotoBanner 2.0.14 - requisiti password live */
.fb2-password-requirements {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
.fb2-password-rule {
  position: relative;
  padding-left: 24px;
  transition: color .16s ease;
}
.fb2-password-rule::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  text-align: center;
  font-weight: 900;
}
.fb2-password-rule--invalid { color: #b42318; }
.fb2-password-rule--invalid::before { content: "\2717"; }
.fb2-password-rule--valid { color: #18794e; }
.fb2-password-rule--valid::before { content: "\2713"; }
