/* style.css - Vittime Trading Online */

:root {
  --bg: #0a0f1c;
  --bg2: #0d1526;
  --panel: #0f1b34;
  --ink: #e9eef9;
  --muted: #a9b6d1;
  --accent: #22c55e;
  --accent-2: #10b981;
  --ring: rgba(34, 197, 94, 0.35);
  --safe-bottom: 18px;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1400px 800px at 20% -10%, #132047 0%, #0a0f1c 60%, #0a0f1c 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: #93c5fd;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #bfdbfe;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.95), rgba(10, 15, 28, 0.6) 80%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: saturate(140%) blur(6px);
  padding: 12px 0;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

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

.nav a {
  color: #d5def2;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

/* ============ HERO ============ */
.hero {
  padding: 26px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

h1 {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.12;
}

.accent {
  color: var(--accent);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.bullets {
  margin: 12px 0 18px;
  padding-left: 18px;
  color: var(--muted);
}

.bullets li {
  margin-bottom: 8px;
}

.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #031a11;
  font-weight: 900;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 1.05rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(34, 197, 94, 0.4);
  text-decoration: none;
}

/* ============ FORM CARD ============ */
.hero-card {
  background: linear-gradient(180deg, rgba(15, 27, 52, 0.96), rgba(15, 27, 52, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  padding: 20px;
}

.form-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 4px 0 14px;
}

.f-badge {
  background: linear-gradient(135deg, #7dd3fc, #60a5fa);
  color: #06121a;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

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

input,
select,
textarea {
  width: 100%;
  background: #0b1224;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: box-shadow 0.15s, border-color 0.15s;
  font-family: inherit;
  font-size: 15px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 5px var(--ring);
  border-color: var(--accent);
}

.err {
  font-size: 12px;
  color: #fecaca;
  margin-top: 6px;
  display: none;
}

.submit {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #062318;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 16px 44px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.45);
}

.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}

.privacy input {
  width: 22px;
  height: 22px;
  accent-color: #22c55e;
  margin-top: 2px;
  cursor: pointer;
}

.privacy label {
  margin: 0;
  cursor: pointer;
  font-size: 14px;
}

/* ============ DISCLAIMER BAR ============ */
.disclaimer-wrap {
  background: #0f1a33;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  color: #cfe2ff;
}

.disclaimer-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.85), rgba(8, 14, 30, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #22c55e;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  color: #e9eef9;
}

.disc-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: radial-gradient(closest-side, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #b9f3cf;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 2px;
}

.disc-content h3 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.2px;
  font-weight: 800;
  color: #dff7ea;
}

.disc-text {
  margin: 0;
  color: #cfe2ff;
  line-height: 1.6;
  font-size: 14.5px;
}

.disc-mobile {
  display: none;
}

/* ============ DOMAINS / AMBITI ============ */
.domains {
  padding: 40px 0;
  background: var(--bg);
}

.domains .container {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.domain-card {
  background: #111a33;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  transition: all 0.3s;
}

.domain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.domain-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #e6efff;
}

.domain-card p {
  margin: 0;
  color: #b8c3dc;
  line-height: 1.6;
}

/* ============ HOW IT WORKS ============ */
.how {
  padding: 40px 0;
  background: var(--bg2);
}

.how h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #e9eef9;
  font-size: 2rem;
}

.step {
  background: #0f1b34;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step .num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #031a11;
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.step h3 {
  margin: 0 0 6px;
  color: #e6efff;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: #b8c3dc;
}

/* ============ TRANSPARENCY SECTION ============ */
.transparency-section {
  padding: 40px 0;
  background: var(--bg);
}

.transparency-box {
  max-width: 800px;
  margin: 0 auto;
  background: #0f1b34;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cfe2ff;
  line-height: 1.7;
}

.disclaimer-grid {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.disclaimer-item {
  background: #1a0f0a;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.disclaimer-icon {
  font-size: 24px;
}

.disclaimer-item strong {
  color: #fbbf24;
  font-weight: 700;
}

.important-box {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-top: 24px;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============ RESOURCES SECTION ============ */
.resources-section {
  padding: 40px 0;
  background: var(--bg2);
}

.resources-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.resource-card {
  background: #0f1b34;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s;
}

.resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.resource-card h4 {
  margin: 0 0 8px;
  color: #e6efff;
  font-size: 18px;
}

.resource-card p {
  margin: 0 0 12px;
  color: #b8c3dc;
  font-size: 14px;
}

.resource-link {
  color: #7dd3fc;
  font-weight: 700;
  text-decoration: none;
}

.resource-link:hover {
  color: #60a5fa;
}

/* ============ FOOTER ============ */
.site-footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1220;
  color: #c9d7f1;
}

.foot-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.foot-grid h4 {
  margin: 0 0 10px;
  color: #e6efff;
  font-size: 15px;
}

.foot-grid p {
  margin: 4px 0;
  font-size: 14px;
}

.foot-grid a {
  color: #93c5fd;
  font-size: 14px;
}

/* ============ COOKIE BANNER MODERNO ============ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 400px; /* Non occupa più tutta la larghezza su desktop */
  background: rgba(15, 23, 42, 0.95); /* Blu scuro coordinato */
  backdrop-filter: blur(10px); /* Effetto vetro */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 10001;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #cbd5e1;
}

.cookie-banner a {
  color: #10b981;
  text-decoration: underline;
}

.cookie-banner button {
  background: #10b981;
  color: #031a11;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s;
}

.cookie-banner button:hover {
  background: #34d399;
}

/* Adattamento per Mobile */
@media (max-width: 480px) {
  .cookie-banner {
    bottom: 10px;
    left: 10px;
    right: 10px;
    flex-direction: column;
    text-align: center;
  }
}

/* ============ CHAT FLOATING ============ */
.chat-launch {
  position: fixed;
  right: 20px;
  bottom: var(--safe-bottom);
  z-index: 9999;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #031a11;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5);
  transition: all 0.3s;
}

.chat-launch:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.6);
}

/* ============ CHATBOX ============ */
.chatbox {
  position: fixed;
  right: 20px;
  bottom: calc(var(--safe-bottom) + 70px);
  z-index: 10000;
  width: min(420px, calc(100vw - 40px));
  height: 550px;
  max-height: calc(100vh - 140px);
  background: #0f1b34;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s;
}

.chatbox.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cb-head {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: var(--ink);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cb-title {
  font-weight: 800;
  font-size: 15px;
}

.cb-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #0a0f1c;
}

.cb-row {
  margin-bottom: 12px;
  display: flex;
}

.cb-row.bot {
  justify-content: flex-start;
}

.cb-row.you {
  justify-content: flex-end;
}

.cb-msg {
  background: #1e293b;
  color: #e9eef9;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 75%;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.cb-row.you .cb-msg {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #031a11;
  font-weight: 600;
}

.cb-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cb-quick button {
  background: #1e293b;
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.3);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.cb-quick button:hover {
  background: #334155;
  border-color: var(--accent);
}

.cb-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.cb-actions button {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.cb-wa {
  background: #25d366;
  color: white;
}

.cb-wa:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.cb-mail {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #031a11;
}

.cb-mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.cb-bar {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0f1b34;
  border-radius: 0 0 16px 16px;
}

.cb-bar input {
  flex: 1;
  background: #0b1224;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.cb-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}

.cb-send {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #031a11;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.cb-send:hover {
  transform: scale(1.05);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .form-grid.two {
    grid-template-columns: 1fr;
  }
  
  .disc-text.disc-desktop {
    display: none;
  }
  
  .disc-mobile {
    display: block;
  }
  
  .disc-mobile summary {
    cursor: pointer;
    font-weight: 700;
    color: #dff7ea;
    margin-bottom: 8px;
  }
  
  .disc-mobile p {
    margin: 8px 0 0;
    color: #cfe2ff;
  }
}

@media (max-width: 640px) {
  .nav {
    justify-content: center;
    width: 100%;
  }
  
  .brand {
    font-size: 1rem;
  }
  
  h1 {
    font-size: 26px;
  }
  
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
  
  .chat-launch {
    right: 12px;
    padding: 12px 16px;
    font-size: 14px;
  }
  
  .chatbox {
    right: 12px;
    left: 12px;
    width: auto;
  }
}
