/* FlightDeck Manager - sito pubblico */
:root {
  --night: #07111a;
  --panel: #0d1b29;
  --panel-2: #112436;
  --line: #1f3a55;
  --text: #dfe8f2;
  --muted: #8fa3b8;
  --blue: #2f8cff;
  --blue-2: #1a6fe0;
  --silver: #c9d3de;
  --green: #22d36a;
  --amber: #ffb020;
  --red: #ff5a5a;
  --heading: #ffffff;
  --link: var(--blue);
  --link-hover: #6fb0ff;
  --btn-text: #ffffff;
  --field: #08131d;
  --deep: #050c13;
  --footer: #050d14;
  --head-bg: #0b1a28;
  --radius: 12px;
  --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { line-height: 1.2; color: var(--heading); letter-spacing: .01em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 680px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; word-break: break-all; }

/* testata */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--silver); font-size: 1.15rem; letter-spacing: .04em; }
.brand b { font-weight: 800; font-style: italic; }
.brand .blue { color: var(--blue); }
.brand small { display: block; font-size: .62rem; letter-spacing: .35em; color: var(--muted); margin-top: -4px; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; }
.menu a { color: var(--text); text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.menu a:hover, .menu a[aria-current] { background: var(--panel-2); color: var(--heading); box-shadow: inset 0 -2px 0 var(--blue); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--night); border-bottom: 1px solid var(--line); flex-direction: column; padding: 12px 16px 20px; }
  .menu.open { display: flex; }
}

/* hero */
.hero { position: relative; overflow: hidden; min-height: min(88vh, 820px); display: grid; place-items: center; text-align: center; border-bottom: 1px solid var(--line); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero.playing .hero-video { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 35%, color-mix(in srgb, var(--night) 70%, transparent) 75%, var(--night) 100%), linear-gradient(180deg, transparent 70%, var(--night)); }
.hero-in { position: relative; padding: 48px 0 64px; }
.hero-logo { width: min(320px, 70vw); filter: drop-shadow(0 10px 40px rgba(47,140,255,.35)); animation: rise .8s ease-out backwards; transition: opacity 1.2s ease; }
/* mentre scorre il video il logo diventa semitrasparente (Impostazioni > Opacità del logo) */
.hero.playing .hero-logo { opacity: var(--logo-video-opacity, .35); }
.hero.playing h1, .hero.playing .hero-tag, .hero.playing .hero-sub { text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.hero-tag { letter-spacing: .5em; color: var(--silver); font-size: .8rem; margin: 6px 0 18px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); max-width: 860px; margin: 0 auto 14px; }
.hero-sub { color: var(--silver); max-width: 680px; margin: 0 auto 28px; font-size: 1.1rem; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sims { list-style: none; padding: 0; margin: 32px 0 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sims li { border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--silver); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }

/* pulsanti */
.btn { display: inline-block; background: linear-gradient(180deg, var(--blue), var(--blue-2)); color: var(--btn-text); border: 0; border-radius: 8px; padding: 12px 22px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; box-shadow: 0 6px 20px rgba(47,140,255,.25); }
.btn:hover { color: var(--btn-text); filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--blue); box-shadow: none; color: var(--link); }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn.disabled, .btn[disabled] { opacity: .5; pointer-events: none; }

/* pagine */
.page-head { background: linear-gradient(180deg, var(--head-bg), var(--night)); border-bottom: 1px solid var(--line); padding: 56px 0 36px; }
.page-head h1 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.prose { padding: 36px 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2em; }
.prose img, .prose video { border-radius: var(--radius); border: 1px solid var(--line); }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin: 1.5em 0; padding: 12px 20px; border-left: 3px solid var(--blue); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; }
.prose pre, .checklist { background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; overflow-x: auto; font-family: Consolas, monospace; font-size: .9rem; color: #9ff0b9; }
.home-content { max-width: 900px; }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.card h2 { margin-top: 0; }
.center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 36px 0 56px; align-items: start; }
.two-col .prose { padding-top: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 28px 0; }
.features > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.features h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--heading); }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }

/* form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea { width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 1rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
legend { padding: 0 6px; font-weight: 600; font-size: .92rem; }
label.check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
label.check input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 10px 14px; border-radius: 8px; border: 1px solid; margin: 0 0 12px; font-size: .95rem; }
.notice.err { border-color: var(--red); background: rgba(255,90,90,.1); }
.notice.warn { border-color: var(--amber); background: rgba(255,176,32,.1); }
.notice.ok { border-color: var(--green); background: rgba(34,211,106,.1); }

/* prezzi */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; padding: 8px 0 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; }
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 20px 50px rgba(47,140,255,.18); }
.plan h2 { margin: 0; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; }
.plan .edition { color: var(--muted); margin: 2px 0 14px; }
.plan .price, .summary .price { font-size: 2.4rem; font-weight: 800; color: var(--heading); margin: 0; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
.plan-note { color: var(--muted); font-size: .85rem; margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.plan .btn { text-align: center; }
.ribbon { position: absolute; top: -12px; right: 20px; background: var(--blue); color: var(--btn-text); font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; }
.small-print { color: var(--muted); font-size: .92rem; padding-top: 0; }

/* area clienti */
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 0; flex-wrap: wrap; }
.download-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.download-card h2 { margin: 0 0 4px; }
.download-card p { margin: 0; color: var(--muted); }
.license { margin-bottom: 18px; }
.license header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.license h3 { margin: 0; }
.license h3 small { color: var(--muted); font-weight: 400; }
.license dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0; }
.license dt { color: var(--muted); }
.license dd { margin: 0; }
.license-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; border: 1px solid; }
.badge.ok { color: var(--green); border-color: var(--green); }
.badge.warn { color: var(--amber); border-color: var(--amber); }
.badge.err { color: var(--red); border-color: var(--red); }
.badge.muted { color: var(--muted); border-color: var(--muted); }
.license-key { font-size: 1.4rem; letter-spacing: .06em; color: var(--green); background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.ok-big { font-size: 2.6rem; font-weight: 900; color: var(--green); letter-spacing: .2em; margin: 0; text-shadow: 0 0 24px rgba(34,211,106,.6); }
.err-big { font-size: 4rem; font-weight: 900; color: var(--blue); margin: 0; }
.bank { white-space: pre-wrap; background: var(--deep); border: 1px solid var(--line); padding: 14px; border-radius: 8px; }
.summary { position: sticky; top: 90px; }

/* piè di pagina */
.footer { margin-top: 64px; border-top: 1px solid var(--line); background: var(--footer); padding: 40px 0 18px; }
.footer-in { display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: center; }
.footer-motto { color: var(--heading); font-weight: 700; margin-top: 0; }
.footer nav { display: grid; gap: 6px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--heading); }
.copyright { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; text-align: center; } .footer img { margin: 0 auto; } }

/* contenuti importati da WordPress: niente sfondi o colori chiari scritti dentro le pagine, tutto segue i colori del sito */
.prose [style*="background"], .prose .has-background { background: transparent !important; }
.prose [style*="color"], .prose .has-text-color { color: inherit !important; }
.prose [class*="has-white-background"], .prose [class*="has-base-background"] { background: transparent !important; }
.prose table, .prose th, .prose td { background: transparent; border-color: var(--line); color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); }


/* foto e video posizionati dall'editor a blocchi */
.prose figure.media { margin: 1.5em 0; }
.prose figure.media img, .prose figure.media video { display: block; max-width: 100%; height: auto; }
.prose figure.media-center img, .prose figure.media-center video { margin: 0 auto; max-width: min(100%, 760px); }
.prose figure.media-full img, .prose figure.media-full video { width: 100%; }
.prose figure.media-left { float: left; width: 45%; margin: .3em 1.6em 1em 0; }
.prose figure.media-right { float: right; width: 45%; margin: .3em 0 1em 1.6em; }
.prose h2, .prose h3, .prose figure.media-full, .prose figure.media-center, .prose .fdm-form { clear: both; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 700px) { .prose figure.media-left, .prose figure.media-right { float: none; width: auto; margin: 1.5em 0; } }
.prose figure.media[style] img, .prose figure.media[style] video { width: 100%; max-width: 100%; }
.prose figure.media[style] { max-width: 100%; }
.prose figure.media-center[style], .prose figure.media-orig.media-center { margin-left: auto; margin-right: auto; }
.prose figure.media-orig { width: auto; }
.prose figure.media-center:not([style]):not(.media-orig) { max-width: min(100%, 760px); margin-left: auto; margin-right: auto; }
.prose figure.media:has(.media-more):not([style]) { display: table; }
.prose figure.media-center:has(.media-more) { margin-left: auto; margin-right: auto; }
.prose figure.media .media-more { display: table; margin: .7em 0 0 auto; }
.prose figure.media-orig.media-center { display: table; }
.prose figure.media-orig img, .prose figure.media-orig video { width: auto; max-width: 100%; }
@media (max-width: 700px) { .prose figure.media[style] { width: auto !important; } }
/* moduli inseriti nelle pagine */
.fdm-form { max-width: 640px; margin: 2em 0; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card .fdm-form { max-width: none; margin: 0; padding: 0; background: none; border: 0; }
.fdm-form .form-done h2 { margin-top: 0; }
