/* ============================================================
   ZAPCALENDAR — AUTH & PUBLIC PAGES SHARED STYLESHEET
   Usato da: login.html, registrati.html, verifica-email.html, grazie.html
   ============================================================ */

:root {
  --g: #22C55E;
  --g2: #16A34A;
  --g3: #00bf63;
  --dark: #0B1A14;
  --dark2: #0F2119;
  --ivory: #F5F0E8;
  --ivory2: #EDE7DC;
  --t1: #141210;
  --t2: #6B6560;
  --t3: #A09890;
  --border: rgba(20, 18, 16, .10);
  --ff: 'DM Sans', system-ui, sans-serif;
  --fd: 'Bricolage Grotesque', system-ui, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--ff);
  min-height: 100vh;
  background: var(--ivory);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}

/* ── SPLIT-SCREEN LAYOUT (Login & Registrazione) ── */
body.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── PANNELLO SINISTRO (Branding & Riprova Sociale) ── */
.left {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  min-height: 100vh;
}

.left-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 25% 35%, rgba(34, 197, 94, .11) 0%, transparent 55%),
    radial-gradient(ellipse 55% 55% at 80% 72%, rgba(34, 197, 94, .07) 0%, transparent 50%);
  animation: lmesh 13s ease-in-out infinite alternate;
}

@keyframes lmesh {
  0% { transform: scale(1); }
  100% { transform: scale(1.05) translate(1.5%, -1%); }
}

.left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .024) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 75%);
}

.left-pts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.lpt {
  position: absolute;
  border-radius: 50%;
  background: var(--g);
  opacity: 0;
  animation: lptfl var(--lpd, 8s) var(--lpd2, 0s) infinite ease-in-out;
}

@keyframes lptfl {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  10% { opacity: .45; }
  90% { opacity: .08; transform: translateY(var(--lptr, -200px)) scale(.3); }
  100% { opacity: 0; }
}

.left-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* ─── IL MARCHIO ───────────────────────────────────────────────────────────
   Il file originale, lo stesso della home: "zap" e il fulmine in verde, il
   fulmine al posto della l di calendar. Per questo non c'e' piu' il quadratino
   col fulmine di fianco — ne faceva due a dieci pixel di distanza.
   Due file e non uno solo colorato via CSS: dentro un <img> il colore non si
   eredita, quindi la versione bianca serve dove il fondo e' scuro.
   Si misura in larghezza: il fulmine sborda sopra e sotto le lettere e
   fissare l'altezza schiaccerebbe la parola. */
.zc {
  display: block;
  height: auto;
}

.left-brand .zc { width: 148px; }
.card .zc      { width: 132px; }

.left-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.left-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 20px;
}

.le-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g);
  animation: ldpulse 2s infinite;
}

@keyframes ldpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.left-h {
  font-family: var(--fd);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.4px;
  color: rgba(255, 255, 255, .93);
  margin-bottom: 16px;
}

.left-h .acc {
  background: linear-gradient(135deg, var(--g3), var(--g));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.left-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .36);
  line-height: 1.72;
  max-width: 330px;
  margin-bottom: 44px;
}

/* Stats Cards (Login) */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 340px;
}

.stat-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 16px 18px;
  transition: background .3s;
}

.stat-card:hover {
  background: rgba(255, 255, 255, .07);
}

.stat-val {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 800;
  color: rgba(255, 255, 255, .9);
  letter-spacing: -.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-val .unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--g);
  margin-left: 2px;
}

.stat-lbl {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, .32);
  letter-spacing: .3px;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--g);
  margin-top: 6px;
  background: rgba(34, 197, 94, .1);
  border-radius: 100px;
  padding: 2px 8px;
}

/* Activity Feed (Login) */
.activity {
  margin-top: 10px;
  max-width: 340px;
}

.act-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .22);
  margin-bottom: 10px;
}

.act-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  animation: actitem .4s var(--spring) var(--ad, 0s) both;
}

@keyframes actitem {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.act-item:last-child {
  border-bottom: none;
}

.act-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.act-text {
  flex: 1;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.4;
}

.act-text strong {
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
}

.act-time {
  font-size: 10px;
  color: rgba(255, 255, 255, .22);
  flex-shrink: 0;
}

/* Mockup Mini-App (Registrazione) */
.mini-app {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 16px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
}

.ma-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.ma-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ma-title {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
  margin-left: 4px;
}

.ma-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: background .2s;
}

.ma-row.cg { background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .18); }
.ma-row.cp { background: rgba(236, 72, 153, .08); border: 1px solid rgba(236, 72, 153, .18); }
.ma-row.ca { background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .18); }
.ma-row.ck { background: rgba(99, 102, 241, .08); border: 1px solid rgba(99, 102, 241, .18); }

.ma-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.ma-info { flex: 1; min-width: 0; }
.ma-name { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.ma-serv { font-size: 10.5px; color: rgba(255, 255, 255, .38); }
.ma-time { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .4); flex-shrink: 0; }
.ma-empty { padding: 10px; text-align: center; font-size: 11px; color: rgba(255, 255, 255, .2); border: 1px dashed rgba(255, 255, 255, .08); border-radius: 10px; }

/* Left Footer / Social Proof */
.left-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-faces { display: flex; }
.lp-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--dark);
  margin-left: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
}
.lp-av:first-child { margin-left: 0; background: linear-gradient(135deg, #f9a8d4, #ec4899); }
.lp-av:nth-child(2) { background: linear-gradient(135deg, #93c5fd, #3b82f6); }
.lp-av:nth-child(3) { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.lp-av:nth-child(4) { background: linear-gradient(135deg, #a8edba, #22c55e); }
.lp-text strong { display: block; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .65); }
.lp-text span { font-size: 10.5px; color: rgba(255, 255, 255, .26); }


/* ── PANNELLO DESTRO (Form di Accesso/Registrazione) ── */
.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: var(--ivory);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 78% 25%, rgba(34, 197, 94, .05) 0%, transparent 55%);
  pointer-events: none;
}

.form-wrap {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  animation: fwrise .65s var(--spring) both;
}

@keyframes fwrise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-header { margin-bottom: 34px; }
.form-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--g2); margin-bottom: 10px; }
.form-h { font-family: var(--fd); font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; color: var(--t1); letter-spacing: -.4px; line-height: 1.1; margin-bottom: 8px; }
.form-sub { font-size: 14.5px; color: var(--t2); line-height: 1.6; }
.form-sub a { color: var(--g2); text-decoration: none; font-weight: 600; transition: color .2s; }
.form-sub a:hover { color: var(--g); }

/* Google Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 13px 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t1);
  cursor: pointer;
  transition: all .25s var(--spring);
  box-shadow: 0 2px 8px rgba(20, 18, 16, .06);
  margin-bottom: 22px;
}

.btn-google:hover {
  border-color: rgba(20, 18, 16, .2);
  box-shadow: 0 6px 20px rgba(20, 18, 16, .1);
  transform: translateY(-1px);
}

/* Divider */
.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.div-line { flex: 1; height: 1px; background: var(--border); }
.div-txt { font-size: 12px; font-weight: 500; color: var(--t3); white-space: nowrap; }

/* Fields */
.form-fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-top { display: flex; justify-content: space-between; align-items: center; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.forgot-link { font-size: 12.5px; font-weight: 600; color: var(--g2); text-decoration: none; transition: color .2s; }
.forgot-link:hover { color: var(--g); }
.field-wrap { position: relative; }
.field-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--t3); pointer-events: none; display: flex; align-items: center; transition: color .2s; }
.field-wrap:focus-within .field-icon { color: var(--g2); }
.field input { width: 100%; padding: 13px 14px 13px 40px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; font-size: 14px; font-family: var(--ff); color: var(--t1); outline: none; transition: all .25s; box-shadow: 0 1px 4px rgba(20, 18, 16, .04); }
.field input::placeholder { color: var(--t3); }
.field input:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(34, 197, 94, .12), 0 2px 8px rgba(20, 18, 16, .06); }
.field input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .1); }
.field-err { font-size: 11.5px; color: #ef4444; font-weight: 500; display: none; align-items: center; gap: 4px; margin-top: 2px; }
.field-err.show { display: flex; }
.pwd-toggle { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--t3); display: flex; align-items: center; padding: 2px; transition: color .2s; }
.pwd-toggle:hover { color: var(--t2); }

/* Checkbox Rows (Remember & Terms) */
.remember-row, .terms-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; margin-top: 6px; }
.remember-left { display: flex; align-items: center; gap: 8px; }
.rem-cb, .terms-cb { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--border); background: #fff; appearance: none; -webkit-appearance: none; cursor: pointer; transition: all .2s var(--spring); position: relative; flex-shrink: 0; }
.rem-cb:checked, .terms-cb:checked { background: var(--g); border-color: var(--g); }
.rem-cb:checked::after, .terms-cb:checked::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.rem-lbl, .terms-lbl, .terms-txt { font-size: 13px; color: var(--t2); cursor: pointer; user-select: none; line-height: 1.55; }
.terms-lbl a, .terms-txt a { color: var(--g2); text-decoration: none; font-weight: 600; }
.terms-lbl a:hover, .terms-txt a:hover { color: var(--g); }

/* Password Strength Indicator (Registrazione) */
.pwd-strength { margin-top: 6px; display: none; }
.pwd-bars { display: flex; gap: 4px; margin-bottom: 4px; }
.pwd-bar { height: 3px; flex: 1; border-radius: 2px; background: var(--border); transition: background .3s; }
.pwd-bar.w { background: #ef4444; }
.pwd-bar.m { background: #f59e0b; }
.pwd-bar.s { background: var(--g); }
.pwd-label { font-size: 11px; font-weight: 600; }
.pwd-label.w { color: #ef4444; }
.pwd-label.m { color: #f59e0b; }
.pwd-label.s { color: var(--g); }

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 15px 20px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--ff);
  cursor: pointer;
  transition: all .3s var(--spring);
  box-shadow: 0 6px 20px rgba(11, 26, 20, .28);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .06), transparent);
}

.btn-submit:hover:not(:disabled) {
  background: var(--g);
  box-shadow: 0 10px 32px rgba(34, 197, 94, .48);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spin {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}

.btn-submit.loading .btn-txt { display: none; }
.btn-submit.loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reset Password Panel (Login) */
.reset-panel {
  display: none;
  background: rgba(34, 197, 94, .06);
  border: 1px solid rgba(34, 197, 94, .18);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  animation: fwrise .4s var(--spring) both;
}

.reset-panel.show { display: block; }
.reset-title { font-size: 13px; font-weight: 700; color: var(--t1); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.reset-sub { font-size: 12.5px; color: var(--t2); line-height: 1.55; margin-bottom: 14px; }
.reset-input-wrap { position: relative; margin-bottom: 12px; }
.reset-input { width: 100%; padding: 11px 14px 11px 38px; background: #fff; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13.5px; font-family: var(--ff); color: var(--t1); outline: none; transition: border-color .25s; }
.reset-input:focus { border-color: var(--g); }
.reset-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--t3); }
.btn-reset { width: 100%; padding: 11px; background: var(--g); color: #fff; border: none; border-radius: 10px; font-size: 13.5px; font-weight: 700; font-family: var(--ff); cursor: pointer; transition: all .25s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-reset:hover { background: var(--g2); transform: translateY(-1px); }
.btn-cancel-reset { display: block; text-align: center; margin-top: 10px; font-size: 12.5px; color: var(--t3); cursor: pointer; transition: color .2s; }

/* Form Footer */
.form-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--t3);
}
.form-footer a {
  color: var(--t2);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.form-footer a:hover {
  color: var(--t1);
}


/* ── CARD CENTERED LAYOUT (Verifica-Email, Grazie, ecc.) ── */
body.centered-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 32px rgba(20, 18, 16, .06);
}

.card-icon {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
}

.card .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  text-decoration: none;
}

.card h1 {
  font-family: var(--fd);
  font-size: 26px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
  letter-spacing: -.4px;
}

.card .sub {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 8px;
}

.card .btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--ff);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 12px;
  text-decoration: none;
  display: inline-block;
}

.card .btn-primary:hover {
  background: #1a2e22;
  transform: translateY(-1px);
}

.card .btn-secondary {
  width: 100%;
  padding: 14px;
  background: none;
  color: var(--t2);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--ff);
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 12px;
}

.card .btn-secondary:hover {
  border-color: var(--g);
  color: var(--g2);
}

.card .btn-secondary:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.card .note {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.5;
}

/* Card Elements (Verifica Email, Grazie, ecc.) */
.email-highlight { font-weight: 600; color: var(--t1); }
.steps { background: var(--ivory); border-radius: 14px; padding: 20px; margin: 28px 0; text-align: left; }
.step { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.step:last-child { margin-bottom: 0; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--g); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.step-text { font-size: 14px; color: var(--t2); line-height: 1.5; }
.countdown { font-size: 12px; color: var(--t3); margin-top: 4px; }
.icon, .card-icon, .icon-ok { width: 72px; height: 72px; background: rgba(34, 197, 94, .1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 32px; color: var(--g2, #16A34A); }
/* Dentro questi cerchi c'era un'emoji: ora è un'icona a tratto e va dimensionata. */
.icon > svg, .card-icon > svg, .icon-ok > svg { width: 34px; height: 34px; }
.spinner { width: 56px; height: 56px; border: 4px solid rgba(34, 197, 94, .15); border-top-color: var(--g); border-radius: 50%; margin: 0 auto 24px; animation: spin 1s linear infinite; }
.card .btn { display: inline-block; margin-top: 22px; padding: 13px 28px; background: var(--dark); color: #fff; border: none; border-radius: 100px; font-size: 15px; font-weight: 600; font-family: var(--ff); cursor: pointer; text-decoration: none; transition: all .2s; }
.card .btn:hover { background: #1a2e22; transform: translateY(-1px); }


/* ── FEEDBACK: TOAST NOTIFICATIONS ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(11, 26, 20, .35);
  border: 1px solid rgba(255, 255, 255, .1);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: rgba(34, 197, 94, .3); }
.toast.error { border-color: rgba(239, 68, 68, .3); }
.toast.info { border-color: rgba(99, 102, 241, .3); }

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.toast.success .toast-icon { background: rgba(34, 197, 94, .2); color: var(--g); }
.toast.error .toast-icon { background: rgba(239, 68, 68, .2); color: #ef4444; }
.toast.info .toast-icon { background: rgba(99, 102, 241, .2); color: #818cf8; }


/* ── COOKIE BANNER UNIFICATO (#ckb) ── */
#ckb {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 48px);
  max-width: 680px;
  background: #fff;
  border: 0.5px solid rgba(20, 18, 16, .12);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(20, 18, 16, .14);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--ff);
}

#ckb.hide {
  display: none !important;
}

.ckb-text {
  flex: 1;
  min-width: 200px;
  font-size: 13.5px;
  color: #6B6560;
  line-height: 1.6;
}

.ckb-text a {
  color: #16A34A;
  font-weight: 600;
  text-decoration: none;
}

.ckb-text a:hover {
  text-decoration: underline;
}

.ckb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.ckb-ok {
  background: #0B1A14;
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}

.ckb-ok:hover {
  background: #22C55E;
}

.ckb-info {
  background: none;
  color: #6B6560;
  border: 1.5px solid rgba(20, 18, 16, .12);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color .2s, color .2s;
}

.ckb-info:hover {
  border-color: #22C55E;
  color: #16A34A;
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 900px) {
  body.split-layout {
    grid-template-columns: 1fr;
  }
  .left {
    display: none;
  }
  .right {
    padding: 40px 24px;
  }
}

@media (max-width: 560px) {
  #ckb {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    border-radius: 18px 18px 0 0;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .right {
    padding: 32px 20px;
  }
}

/* La scelta fatta nella pagina prezzi, ripetuta in registrazione (28/09/2026) */
.scelta-piano { margin-top: 12px; padding: 10px 13px; border-radius: 10px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.24); color: #16A34A; line-height: 1.5; }
.scelta-piano b { color: #141210; }
