/* =========================================================
   nn-inline.css  (UNICO, coerente, teal Prismyar)
   Usato da: /nn/index.html, /nn/WEB-INF/login.html,
             /nn/WEB-INF/dashboard.html, /nn/WEB-INF/pay.html
   Dipende anche da: /css/prismyar-home-ui.css
   ========================================================= */

/* ---------- Variables (single source of truth) ---------- */
:root{
  /* Layout */
  --max: 1120px;
  --radius: 18px;
  --radius2: 14px;

  /* Base look */
  --bg: #ffffff;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #4b4b4b;

  --line: rgba(0,0,0,0.06);
  --shadow: 0 10px 30px rgba(0,0,0,0.07);
  --shadow2: 0 10px 25px rgba(0,0,0,0.07);

  /* Prismyar teal */
  --accent: #76aebc;
  --accent2:#3a7f90;
  --accentBg: rgba(118,174,188,0.12);
}

/* ---------- Base ---------- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
}
a{ color: inherit; }

/* Shared page container */
.container{
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 22px 16px 60px 16px;
}

/* ---------- Top bar / brand ---------- */
.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 20px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* NB: dimensioni logo originali erano nel tuo CSS: le mantengo */
.logo{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  user-select: none;
  font-weight: 800;
  letter-spacing: .3px;

  background: var(--accentBg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow2);
  color: #2d7d8f;
}

.brand-name{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name b{ font-size: 14px; letter-spacing: .2px; }
.brand-name span{ font-size: 12px; color: var(--muted); }

.nav{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(118,174,188,0.12);
  color: #5c96a5;
  font-weight: 800;
  letter-spacing: .2px;
  border: 0;
  text-decoration: none;
  transition: transform .08s ease, background .15s ease;
}
.pill:hover{
  background: rgba(255,255,255,.85);
  transform: translateY(-1px);
}

/* ---------- Buttons (teal Prismyar) ---------- */
.btn{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 2px solid rgba(118,174,188,0.45);
  background: transparent;
  color: var(--accent2);
  text-decoration: none;
  font-size: 15px;
  box-shadow: none;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  background: rgba(255,255,255,.70);
  border-color: rgba(118,174,188,0.75);
}
.btn:disabled{
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.btn-primary{
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 14px 30px rgba(118,174,188,.25);
}
.btn-primary:hover{
  box-shadow: 0 16px 36px rgba(118,174,188,.30);
}
.btn-ghost{
  background: transparent;
}
.btn-ghost:hover{
  background: rgba(255,255,255,.70);
}

/* Compat: dashboard usa <button class="btn primary"> e <div class="btn ghost"> */
.btn.primary{
  border: 0;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(118,174,188,.25);
}
.btn.primary:hover{
  box-shadow: 0 16px 36px rgba(118,174,188,.30);
}
.btn.ghost{ background: transparent; }
.btn.ghost:hover{ background: rgba(255,255,255,.70); }

/* ---------- Home /nn hero (grid) ---------- */
.hero{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 10px;
}
@media (max-width: 940px){
  .hero{ grid-template-columns: 1fr; }
}

.hero-left, .hero-right{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-left{
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.72));
  padding: 26px 24px;
  position: relative;
}
.hero-right{
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow2);
  padding: 18px;
}

/* niente bolla decorativa “rame” */
.hero-left:before{ display: none !important; }
.card:before, .card:after{ display: none !important; }

h1{
  margin: 0 0 10px 0;
  font-size: 34px;
  letter-spacing: -.3px;
  line-height: 1.12;
}
.subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  max-width: 62ch;
}

.hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

.badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Badge + dot generici (usati un po’ ovunque) */
.badge, .tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(118,174,188,0.14);
  color: #2d7d8f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(118,174,188,.12);
}

/* Home panels */
.panel-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.panel-title b{ font-size: 14px; letter-spacing: .2px; }
.panel-title span{ font-size: 12px; color: var(--muted); }

.steps{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.step{
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.num{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accentBg);
  border: 1px solid var(--line);
  color: var(--accent2);
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: 1px;
}
.step b{ font-size: 14px; }
.step p{
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

/* Sections (home) */
.section{
  margin-top: 22px;
  padding-top: 6px;
}
.section h2{
  margin: 0 0 10px 0;
  font-size: 20px;
  letter-spacing: -.2px;
}
.section .lead{
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 78ch;
}

/* Feature grid (home) */
.grid3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .grid3{ grid-template-columns: 1fr; }
}
.feat{
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.75);
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.feat b{ display: block; font-size: 14px; margin-bottom: 6px; }
.feat p{ margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Preview (home) */
.preview-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 980px){
  .preview-grid{ grid-template-columns: 1fr; }
}
.shot{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}
.shot .imgwrap{
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  background: linear-gradient(135deg, rgba(118,174,188,.10), rgba(255,255,255,.85));
}
.shot img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot .cap{
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.shot .cap b{ font-size: 14px; display: block; }
.shot .cap p{ margin: 4px 0 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* FAQ (home) */
.faq{ display: grid; gap: 10px; }
details{
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  background: rgba(255,255,255,.78);
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  overflow: hidden;
}
summary{
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 650;
  font-size: 14px;
  list-style: none;
  position: relative;
  user-select: none;
}
summary::-webkit-details-marker{ display: none; }
summary:after{
  content: "+";
  position: absolute;
  right: 14px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent2);
  font-weight: 900;
}
details[open] summary:after{ content: "–"; }
.faq-body{
  padding: 0 14px 14px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.faq-body ul{ margin: 8px 0 0 18px; }
.faq-body li{ margin: 6px 0; }

/* CTA strip (home) */
.cta{
  margin-top: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(118,174,188,.10), rgba(255,255,255,.85));
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 16px 38px rgba(0,0,0,.08);
}
.cta b{ font-size: 15px; }
.cta span{ color: var(--muted); font-size: 13px; }

/* Footer (home) */
footer{
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 12px;
}

/* =========================================================
   Login blocks (WEB-INF/login)
   ========================================================= */
.wrap{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 6px;
}
@media (max-width: 940px){
  .wrap{ grid-template-columns: 1fr; }
}

.box{
  margin-top: 16px;
  border-radius: var(--radius2);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  padding: 14px;
}
.boxTitle{
  font-weight: 800;
  margin: 2px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.small{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 10px;
}
.dnone{ display: none; }

.liBtnImg{
  width: 160px;
  max-width: 100%;
  max-height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  display: block;
}

/* =========================================================
   Dashboard blocks (WEB-INF/dashboard)
   NOTE: dashboard.html ora usa .dashHero (non .hero)
   ========================================================= */
.spacer{ flex: 1; }

.dashHero{
  display: flex;
  gap: 18px;
  align-items: stretch;
  margin-top: 6px;
}
@media (max-width: 980px){
  .dashHero{ flex-direction: column; }
}

.heroCard{
  flex: 1;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.heroCard:before{ display: none; }

.sub{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 70ch;
}

.statusRow{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Badge “dashboard” (più grande) */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  font-size: 13px;
  color: var(--muted);
}

/* Dot states (dashboard) */
.dot.ok{ background: #0E7A3A; box-shadow: none; }
.dot.warn{ background: #A15A00; box-shadow: none; }
.dot.bad{ background: #A10C0C; box-shadow: none; }

/* Dashboard grid (12 columns) */
.grid{
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.card{
  grid-column: span 6;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card.full{ grid-column: span 12; }

@media (max-width: 980px){
  .card{ grid-column: span 12; }
}

.cardTitle{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}
.ico{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
}
.cardBody{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Form */
.formRow{
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px){
  .formRow{ grid-template-columns: 1fr; }
}

.field label{
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

select, input[type="text"], input[type="email"], textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  outline: none;
  font-size: 14px;
  color: var(--text);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(118,174,188,0.55);
  box-shadow: 0 0 0 4px rgba(118,174,188,0.18);
}

/* Chips */
.langs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.chip{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.chip input{ display: none; }
.chip.on{
  border-color: rgba(118,174,188,.55);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(118,174,188,.16);
}

/* Actions */
.actions{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Hint / mono / split */
.hint{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(27,26,23,.78);
  background: rgba(255,255,255,.65);
  border: 1px dashed rgba(27,26,23,.18);
  border-radius: 14px;
  padding: 10px 12px;
  overflow: auto;
}
.split{
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}
@media (max-width: 980px){
  .split{ grid-template-columns: 1fr; }
}

/* Table */
.tableWrap{
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: auto;
  background: rgba(255,255,255,.65);
}
table.tbl{
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}
.tbl th, .tbl td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(27,26,23,.10);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
  color: var(--text);
}
.tbl th{
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.75);
  position: sticky;
  top: 0;
  z-index: 1;
}
.tbl td.right, .tbl th.right{ text-align: right; }

/* Status tags */
.tag{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.tag.ok{ color: #0E7A3A; border-color: rgba(14,122,58,.25); }
.tag.bad{ color: #A10C0C; border-color: rgba(161,12,12,.25); }
.tag.warn{ color: #A15A00; border-color: rgba(161,90,0,.25); }

.errTxt{
  color: #A10C0C;
  font-size: 12px;
  line-height: 1.35;
  max-width: 380px;
  word-break: break-word;
}

.linkBtn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.80);
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
}
.linkBtn:hover{
  border-color: rgba(118,174,188,.55);
  box-shadow: 0 10px 22px rgba(118,174,188,.14);
}

/* =========================================================
   Pay blocks (WEB-INF/pay)
   NOTE: pay.html usa .payGrid (non .grid)
   ========================================================= */
.payGrid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 980px){
  .payGrid{ grid-template-columns: 1fr; }
}

.hr{
  height: 1px;
  background: var(--line);
  margin: 12px 0;
}

.opt{
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.80);
}
.opt + .opt{ margin-top: 10px; }

.optHead{
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.optHead b{ font-size: 14.5px; }

.optDesc{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.price{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

/* pay uses .badge.ok/.warn/.bad */
.badge.ok{
  border-color: rgba(14,122,58,.25);
  background: rgba(14,122,58,.08);
  color: #0b4f2d;
}
.badge.warn{
  border-color: rgba(161,90,0,.25);
  background: rgba(161,90,0,.08);
  color: #6a3b00;
}
.badge.bad{
  border-color: rgba(161,12,12,.25);
  background: rgba(161,12,12,.08);
  color: #6b0000;
}

.errorText{ color: #7a0000; }

/* Center helper (opt-in) */
.centered{
  text-align: center;
}
.centered > *{
  margin-left: auto;
  margin-right: auto;
}

