/* ============================================================
   TransChoice® – main.css
   CSS unificato per tutta la piattaforma
   Landing page + Portali Admin e User
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Variabili globali ─────────────────────────────────────── */
:root {
  /* Colori base */
  --bg:           #0e0c0a;
  --surface:      #181512;
  --surface2:     #201c18;
  --surface3:     #232018;

  /* Gold */
  --gold:         #c9a04a;
  --gold-light:   #e8c46a;
  --gold-dim:     rgba(201,160,74,.12);
  --gold-border:  rgba(201,160,74,.20);
  --border:       rgba(201,160,74,.18);

  /* Testo */
  --cream:        #f5ede0;
  --text:         #e8ddd0;
  --muted:        #9a8f82;

  /* Feedback */
  --danger:       #c94a4a;
  --success:      #3dbe7a;
  --info:         #4a90c9;
  --warning:      #e8a020;
  --red:          #c94a4a;

  /* Layout portali */
  --sidebar-w:    240px;
  --topbar-h:     60px;
  --radius:       10px;
}

/* ── Reset base ────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
html,body { height:100%; }

body {
  font-family:'Outfit',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a { color:var(--gold); text-decoration:none; }
a:hover { color:var(--gold-light); }


/* ══════════════════════════════════════════════════════════
   LANDING PAGE – Stili specifici
   ══════════════════════════════════════════════════════════ */

    

    

    

    body {
      font-family: 'Outfit', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased
    }

    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 28px;
      background: rgba(14, 12, 10, 0.96);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border)
    }

    .logo-img {
      height: 38px;
      object-fit: contain;
      display: block
    }

    .header-cta {
      background: var(--gold);
      color: #0e0c0a;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      padding: 10px 22px;
      border-radius: 4px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: background .2s
    }

    .header-cta:hover {
      background: var(--gold-light)
    }

    .scarcity-bar {
      background: rgba(201, 160, 74, 0.08);
      border-bottom: 1px solid var(--border);
      padding: 11px 28px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 13px;
      color: var(--text);
      margin-top: 63px
    }

    .dot {
      width: 7px;
      height: 7px;
      background: var(--red);
      border-radius: 50%;
      animation: pulse 1.5s ease-in-out infinite;
      flex-shrink: 0
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1)
      }

      50% {
        opacity: .5;
        transform: scale(1.3)
      }
    }

    .scarcity-bar strong {
      color: var(--gold)
    }

    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      padding: 80px 28px
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(201, 160, 74, .08) 0%, transparent 70%), radial-gradient(ellipse 60% 80% at 80% 70%, rgba(100, 60, 20, .12) 0%, transparent 60%)
    }

    .hero-grid {
      position: absolute;
      inset: 0;
      background-image: linear-gradient(rgba(201, 160, 74, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 160, 74, .04) 1px, transparent 1px);
      background-size: 60px 60px
    }

    .hero-content {
      position: relative;
      max-width: 720px;
      text-align: center
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(201, 160, 74, .12);
      border: 1px solid var(--border);
      border-radius: 99px;
      padding: 8px 18px;
      font-size: 12px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 500;
      margin-bottom: 32px
    }

    .hero-badge::before {
      content: '';
      width: 6px;
      height: 6px;
      background: var(--gold);
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite
    }

    .hero h1 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(34px, 5.5vw, 64px);
      font-weight: 700;
      line-height: 1.1;
      color: var(--cream);
      margin-bottom: 16px
    }

    .hero h1 em {
      font-style: italic;
      color: var(--gold)
    }

    .hero-sub {
      font-size: clamp(15px, 2vw, 18px);
      color: var(--muted);
      max-width: 500px;
      margin: 0 auto 20px;
      line-height: 1.6
    }

    .hero-sub strong {
      color: var(--text);
      font-weight: 500
    }

    .social-proof {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-bottom: 36px;
      font-size: 14px;
      color: var(--muted);
      flex-wrap: wrap
    }

    .avatars {
      display: flex
    }

    .avatars span {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      margin-left: -8px;
      background: linear-gradient(135deg, #3a2a1a, #5a3a1a)
    }

    .avatars span:first-child {
      margin-left: 0
    }

    .proof-text {
      color: var(--text);
      font-weight: 600
    }

    .cta-group {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 44px
    }

    .btn-primary {
      background: var(--gold);
      color: #0e0c0a;
      font-size: 15px;
      font-weight: 700;
      padding: 15px 32px;
      border-radius: 6px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all .2s;
      box-shadow: 0 4px 24px rgba(201, 160, 74, .3)
    }

    .btn-primary:hover {
      background: var(--gold-light);
      transform: translateY(-2px)
    }

    .btn-ghost {
      background: transparent;
      color: var(--text);
      font-size: 14px;
      font-weight: 500;
      padding: 15px 22px;
      border: 1px solid var(--border);
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: all .2s
    }

    .btn-ghost:hover {
      border-color: var(--gold);
      color: var(--gold)
    }

    .trust-row {
      display: flex;
      justify-content: center;
      gap: 24px;
      flex-wrap: wrap
    }

    .trust-item {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--muted)
    }

    .trust-item::before {
      content: '✓';
      color: var(--gold);
      font-weight: 700
    }

    .section {
      padding: 90px 28px
    }

    .section-inner {
      max-width: 960px;
      margin: 0 auto
    }

    .section-label {
      font-size: 11px;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 600;
      margin-bottom: 14px
    }

    .section-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(26px, 3.5vw, 44px);
      font-weight: 700;
      line-height: 1.2;
      color: var(--cream);
      margin-bottom: 20px;
      max-width: 600px
    }

    .section-title em {
      color: var(--gold);
      font-style: italic
    }

    .section-desc {
      font-size: 16px;
      color: var(--muted);
      max-width: 520px;
      line-height: 1.7;
      margin-bottom: 48px
    }

    .problem-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 2px;
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden
    }

    .problem-card {
      padding: 28px;
      background: var(--surface)
    }

    .problem-card:hover {
      background: var(--surface2)
    }

    .problem-icon {
      font-size: 26px;
      margin-bottom: 14px;
      display: block
    }

    .problem-card h3 {
      font-size: 15px;
      font-weight: 600;
      color: var(--cream);
      margin-bottom: 8px
    }

    .problem-card p {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6
    }

    .solution-bg {
      background: var(--surface)
    }

    .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: center
    }

    @media(max-width:700px) {
      .two-col {
        grid-template-columns: 1fr;
        gap: 40px
      }
    }

    .step-list {
      list-style: none
    }

    .step-item {
      display: flex;
      gap: 18px;
      padding: 20px 0;
      border-bottom: 1px solid var(--border)
    }

    .step-item:last-child {
      border-bottom: none
    }

    .step-num {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(201, 160, 74, .12);
      border: 1px solid var(--border);
      color: var(--gold);
      font-weight: 700;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 2px
    }

    .step-content h4 {
      font-size: 15px;
      font-weight: 600;
      color: var(--cream);
      margin-bottom: 5px
    }

    .step-content p {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.6
    }

    .mock-wrap {
      position: relative;
      height: 340px
    }

    .mock-card {
      position: absolute;
      top: 0;
      left: 0;
      right: 36px;
      background: linear-gradient(135deg, var(--surface2), rgba(40, 30, 20, 1));
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 28px;
      height: 230px;
      display: flex;
      flex-direction: column;
      justify-content: space-between
    }

    .mock-float {
      position: absolute;
      bottom: 0;
      right: 0;
      background: rgba(201, 160, 74, .12);
      border: 1px solid var(--gold);
      border-radius: 10px;
      padding: 18px 20px;
      width: 190px
    }

    .mock-float .big {
      font-family: 'Cormorant Garamond', serif;
      font-size: 36px;
      font-weight: 700;
      color: var(--gold);
      line-height: 1;
      margin-bottom: 4px
    }

    .match-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px
    }

    .match-ring {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 3px solid var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 700;
      color: var(--gold)
    }

    .match-lbl {
      font-size: 12px;
      color: var(--muted)
    }

    .match-lbl strong {
      display: block;
      color: var(--cream);
      font-size: 14px
    }

    .chips {
      display: flex;
      gap: 6px;
      flex-wrap: wrap
    }

    .chip {
      background: rgba(201, 160, 74, .15);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 4px 10px;
      font-size: 11px;
      color: var(--gold)
    }

    .trust-strip {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2px;
      background: var(--border);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      margin-top: 56px
    }

    .trust-item-big {
      background: var(--surface);
      padding: 24px;
      text-align: center
    }

    .trust-item-big .big-num {
      font-family: 'Cormorant Garamond', serif;
      font-size: 36px;
      font-weight: 700;
      color: var(--gold);
      line-height: 1;
      margin-bottom: 4px
    }

    .trust-item-big p {
      font-size: 12px;
      color: var(--muted)
    }

    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 18px;
      margin-top: 48px
    }

    .t-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 28px;
      position: relative
    }

    .t-card::before {
      content: '"';
      font-family: 'Cormorant Garamond', serif;
      font-size: 72px;
      color: rgba(201, 160, 74, .15);
      position: absolute;
      top: 8px;
      left: 20px;
      line-height: 1
    }

    .stars {
      display: flex;
      gap: 3px;
      margin-bottom: 16px
    }

    .stars span {
      color: var(--gold)
    }

    .t-text {
      font-size: 14px;
      color: var(--text);
      line-height: 1.7;
      margin-bottom: 20px;
      font-style: italic
    }

    .t-author {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .t-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: linear-gradient(135deg, #3a2a1a, #6a4a2a);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      border: 2px solid var(--border)
    }

    .t-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--cream)
    }

    .t-detail {
      font-size: 11px;
      color: var(--muted)
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 48px
    }

    @media(max-width:800px) {
      .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto
      }
    }

    .p-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 32px 26px;
      position: relative;
      transition: transform .2s
    }

    .p-card:hover {
      transform: translateY(-4px)
    }

    .p-card.featured {
      border-color: var(--gold);
      background: linear-gradient(180deg, rgba(201, 160, 74, .07) 0%, var(--surface) 100%)
    }

    .popular {
      position: absolute;
      top: -11px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--gold);
      color: #0e0c0a;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .1em;
      text-transform: uppercase;
      padding: 4px 14px;
      border-radius: 99px
    }

    .plan-name {
      font-size: 10px;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--gold);
      font-weight: 600;
      margin-bottom: 10px
    }

    .plan-price {
      font-family: 'Cormorant Garamond', serif;
      font-size: 48px;
      font-weight: 700;
      color: var(--cream);
      line-height: 1;
      margin-bottom: 3px
    }

    .plan-price span {
      font-family: 'Outfit', sans-serif;
      font-size: 18px;
      font-weight: 400;
      color: var(--muted)
    }

    .plan-dur {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 20px
    }

    .plan-desc {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 20px;
      line-height: 1.5;
      padding-bottom: 20px;
      border-bottom: 1px solid var(--border)
    }

    .plan-features {
      list-style: none;
      margin-bottom: 28px
    }

    .plan-features li {
      font-size: 13px;
      color: var(--text);
      padding: 6px 0;
      display: flex;
      align-items: center;
      gap: 8px
    }

    .plan-features li::before {
      content: '✓';
      color: var(--gold);
      font-weight: 700;
      font-size: 12px;
      flex-shrink: 0
    }

    .btn-plan {
      width: 100%;
      padding: 13px;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: block;
      text-align: center;
      transition: all .2s;
      letter-spacing: .04em
    }

    .btn-plan.primary {
      background: var(--gold);
      color: #0e0c0a;
      border: none
    }

    .btn-plan.primary:hover {
      background: var(--gold-light)
    }

    .btn-plan.outline {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border)
    }

    .btn-plan.outline:hover {
      border-color: var(--gold);
      color: var(--gold)
    }

    .pricing-note {
      text-align: center;
      font-size: 12px;
      color: var(--muted);
      margin-top: 20px
    }

    .pricing-note strong {
      color: var(--text)
    }

    .guarantee {
      border: 1px solid var(--gold);
      border-radius: 14px;
      padding: 40px;
      display: flex;
      align-items: flex-start;
      gap: 28px;
      background: rgba(201, 160, 74, .04);
      margin-top: 64px
    }

    .guarantee-icon {
      font-size: 48px;
      flex-shrink: 0
    }

    .guarantee h3 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 26px;
      font-weight: 700;
      color: var(--cream);
      margin-bottom: 10px
    }

    .guarantee p {
      font-size: 14px;
      color: var(--muted);
      max-width: 500px;
      line-height: 1.7
    }

    @media(max-width:640px) {
      .guarantee {
        flex-direction: column;
        gap: 16px;
        padding: 28px 20px
      }
    }

    .faq-list {
      max-width: 680px
    }

    .faq-item {
      border-bottom: 1px solid var(--border);
      padding: 22px 0
    }

    .faq-q {
      font-size: 15px;
      font-weight: 600;
      color: var(--cream);
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 14px;
      user-select: none
    }

    .faq-q::after {
      content: '+';
      color: var(--gold);
      font-size: 22px;
      font-weight: 300;
      flex-shrink: 0;
      transition: transform .2s
    }

    .faq-item.open .faq-q::after {
      transform: rotate(45deg)
    }

    .faq-a {
      display: none;
      font-size: 14px;
      color: var(--muted);
      margin-top: 14px;
      line-height: 1.75
    }

    .faq-item.open .faq-a {
      display: block
    }

    .final-cta {
      padding: 100px 28px;
      text-align: center;
      background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201, 160, 74, .08) 0%, transparent 70%)
    }

    .final-cta h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(32px, 4.5vw, 56px);
      font-weight: 700;
      color: var(--cream);
      margin-bottom: 16px;
      line-height: 1.15
    }

    .final-cta h2 em {
      color: var(--gold);
      font-style: italic
    }

    .final-cta>p {
      font-size: 17px;
      color: var(--muted);
      max-width: 440px;
      margin: 0 auto 44px;
      line-height: 1.6
    }

    .form-box {
      max-width: 500px;
      margin: 0 auto;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 36px;
      text-align: left
    }

    .form-title {
      font-size: 18px;
      font-weight: 600;
      color: var(--cream);
      margin-bottom: 4px
    }

    .form-sub {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 24px
    }

    .form-group {
      margin-bottom: 16px
    }

    .form-label {
      display: block;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 7px
    }

    .form-input,
    .form-select {
      width: 100%;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 7px;
      padding: 12px 14px;
      font-size: 14px;
      color: var(--text);
      font-family: 'Outfit', sans-serif;
      transition: border-color .2s;
      outline: none
    }

    .form-input:focus,
    .form-select:focus {
      border-color: var(--gold)
    }

    .form-select option {
      background: var(--surface)
    }

    .form-2col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px
    }

    @media(max-width:500px) {
      .form-2col {
        grid-template-columns: 1fr
      }
    }

    .form-submit {
      width: 100%;
      background: var(--gold);
      color: #0e0c0a;
      font-size: 15px;
      font-weight: 700;
      padding: 16px;
      border: none;
      border-radius: 7px;
      cursor: pointer;
      margin-top: 6px;
      transition: all .2s;
      box-shadow: 0 4px 20px rgba(201, 160, 74, .3)
    }

    .form-submit:hover {
      background: var(--gold-light);
      transform: translateY(-1px)
    }

    .form-privacy {
      text-align: center;
      font-size: 11px;
      color: var(--muted);
      margin-top: 12px;
      line-height: 1.6
    }

    .form-privacy a {
      color: var(--gold)
    }

    footer {
      background: var(--surface);
      border-top: 1px solid var(--border);
      padding: 44px 28px 28px;
      text-align: center
    }

    .footer-logo {
      height: 44px;
      display: block;
      margin: 0 auto 20px;
      object-fit: contain
    }

    .footer-links {
      display: flex;
      justify-content: center;
      gap: 24px;
      flex-wrap: wrap;
      margin-bottom: 20px
    }

    .footer-links a {
      font-size: 12px;
      color: var(--muted);
      text-decoration: none;
      transition: color .2s
    }

    .footer-links a:hover {
      color: var(--gold)
    }

    .footer-copy {
      font-size: 11px;
      color: var(--muted)
    }

    @media(max-width:640px) {
      .trust-strip {
        grid-template-columns: 1fr 1fr
      }

      .section {
        padding: 64px 20px
      }

      .hero {
        padding: 80px 20px 64px
      }
    }

    .modal {
      border: 1px solid var(--border);
      border-radius: 14px;
      background: var(--surface);
      color: var(--text);
      padding: 32px;
      max-width: 600px;
      margin: auto;
    }

    .modal::backdrop {
      background: rgba(14, 12, 10, 0.85);
      backdrop-filter: blur(4px);
    }

    .modal h3 {
      color: var(--gold);
      margin-bottom: 16px;
      font-family: 'Cormorant Garamond', serif;
      font-size: 28px;
    }

    .modal button {
      background: var(--gold);
      color: #0e0c0a;
      border: none;
      padding: 10px 24px;
      border-radius: 6px;
      cursor: pointer;
      margin-top: 24px;
      font-weight: 700;
      transition: all 0.2s;
    }

    .modal button:hover {
      background: var(--gold-light);
    }

    /* Allineamento Footer per Smartphone */
    @media(max-width: 768px) {
      .footer-col-responsive {
        text-align: center !important;
      }

      .footer-pay-responsive {
        justify-content: center !important;
      }
    }

/* ══════════════════════════════════════════════════════════
   PORTALI ADMIN & USER – Stili condivisi
   ══════════════════════════════════════════════════════════ */

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  position:fixed; top:0; left:0; right:0;
  height:var(--topbar-h); z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 20px;
  background:var(--surface);
  border-bottom:1px solid var(--gold-border);
}
.topbar-brand { display:flex; align-items:center; gap:10px; }
.topbar-brand img { height:26px; }
.topbar-right { display:flex; align-items:center; gap:16px; }
.topbar-user { display:flex; align-items:center; gap:8px; font-size:14px; }
.topbar-user strong { color:var(--cream); }
.topbar-avatar {
  width:34px; height:34px; border-radius:50%;
  border:2px solid var(--gold-border);
  background:var(--surface2);
  display:flex; align-items:center; justify-content:center;
  color:var(--gold); font-weight:700; font-size:14px;
  overflow:hidden; flex-shrink:0;
}
.badge-notify { position:relative; display:inline-flex; color:var(--muted); }
.badge-notify .dot {
  position:absolute; top:-5px; right:-5px;
  background:var(--danger); color:#fff;
  font-size:10px; font-weight:700;
  min-width:17px; height:17px; border-radius:99px;
  display:flex; align-items:center; justify-content:center;
}

/* ── Layout portale ───────────────────────────────────────── */
.portal-wrap { display:flex; padding-top:var(--topbar-h); min-height:100vh; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width:var(--sidebar-w); flex-shrink:0;
  background:var(--surface); border-right:1px solid var(--gold-border);
  padding:20px 0;
  position:fixed; top:var(--topbar-h); left:0; bottom:0;
  overflow-y:auto; z-index:50;
}
.sidebar-section { padding:0 12px; margin-bottom:4px; }
.nav-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:8px;
  color:var(--muted); font-size:14px; font-weight:500;
  transition:all .15s; position:relative; text-decoration:none;
}
.nav-item:hover { background:var(--gold-dim); color:var(--text); }
.nav-item.active { background:var(--gold-dim); color:var(--gold); }
.nav-item.active::before {
  content:''; position:absolute; left:0; top:20%; bottom:20%;
  width:3px; background:var(--gold); border-radius:0 3px 3px 0;
}
.nav-item svg { width:18px; height:18px; flex-shrink:0; }
.nav-badge {
  margin-left:auto; background:var(--danger); color:#fff;
  font-size:10px; font-weight:700;
  min-width:18px; height:18px; border-radius:99px;
  display:flex; align-items:center; justify-content:center; padding:0 4px;
}

/* ── Main ─────────────────────────────────────────────────── */
.main { margin-left:var(--sidebar-w); flex:1; padding:36px 40px; min-width:0; }
.page-title {
  font-family:'Cormorant Garamond',serif;
  font-size:34px; font-weight:700; color:var(--cream);
  margin-bottom:6px; line-height:1.15;
}
.page-subtitle { color:var(--muted); font-size:15px; margin-bottom:28px; }

/* ── Cards ────────────────────────────────────────────────── */
.card { background:var(--surface2); border:1px solid var(--gold-border); border-radius:var(--radius); padding:24px; }
.card-title { font-family:'Cormorant Garamond',serif; font-size:20px; color:var(--cream); margin-bottom:16px; }

/* ── Stats ────────────────────────────────────────────────── */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:14px; margin-bottom:28px; }
.stat-tile {
  background:var(--surface2); border:1px solid var(--gold-border);
  border-radius:var(--radius); padding:20px; position:relative; overflow:hidden;
}
.stat-tile::before {
  content:''; position:absolute; inset:0;
  background:linear-gradient(135deg,rgba(201,160,74,.05) 0%,transparent 60%);
  pointer-events:none;
}
.stat-label { font-size:11px; text-transform:uppercase; letter-spacing:.14em; color:var(--muted); margin-bottom:8px; }
.stat-value { font-family:'Cormorant Garamond',serif; font-size:40px; font-weight:700; color:var(--gold); line-height:1; }
.stat-sub { font-size:12px; color:var(--muted); margin-top:4px; }

/* ── Table ────────────────────────────────────────────────── */
.table-wrap { overflow-x:auto; border-radius:var(--radius); border:1px solid var(--gold-border); }
table { width:100%; border-collapse:collapse; font-size:14px; }
thead th {
  background:var(--surface); padding:11px 14px; text-align:left;
  font-size:11px; text-transform:uppercase; letter-spacing:.1em;
  color:var(--muted); font-weight:600; border-bottom:1px solid var(--gold-border); white-space:nowrap;
}
tbody tr { border-bottom:1px solid rgba(201,160,74,.07); transition:background .15s; }
tbody tr:last-child { border-bottom:none; }
tbody tr:hover { background:rgba(201,160,74,.04); }
td { padding:12px 14px; color:var(--text); vertical-align:middle; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom:18px; }
label {
  display:block; font-size:11px; text-transform:uppercase;
  letter-spacing:.1em; color:var(--muted); margin-bottom:7px; font-weight:600;
}
input[type=text],input[type=email],input[type=password],
input[type=number],input[type=tel],select,textarea {
  width:100%; background:var(--surface); border:1px solid var(--gold-border);
  border-radius:6px; padding:10px 13px; color:var(--text);
  font-family:'Outfit',sans-serif; font-size:14px; outline:none; transition:border-color .2s;
}
input:focus,select:focus,textarea:focus { border-color:var(--gold); }
textarea { resize:vertical; min-height:90px; }
select option { background:var(--surface2); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 18px; border-radius:6px; font-size:13px; font-weight:700;
  letter-spacing:.04em; cursor:pointer; border:none; text-transform:uppercase;
  transition:all .2s; text-decoration:none; white-space:nowrap;
}
.btn-gold  { background:var(--gold); color:#0b0906; }
.btn-gold:hover { background:var(--gold-light); color:#0b0906; }
.btn-outline { background:transparent; color:var(--gold); border:1px solid var(--gold-border); }
.btn-outline:hover { border-color:var(--gold); background:var(--gold-dim); color:var(--gold); }
.btn-danger { background:var(--danger); color:#fff; }
.btn-danger:hover { background:#a33; }
.btn-success { background:var(--success); color:#fff; }
.btn-sm { padding:6px 13px; font-size:12px; }
.btn-xs { padding:4px 9px; font-size:11px; }

/* ── Alerts ───────────────────────────────────────────────── */
.alert { padding:11px 16px; border-radius:6px; font-size:14px; margin-bottom:18px; border-left:4px solid transparent; }
.alert-success { background:rgba(61,190,122,.1); border-color:var(--success); color:var(--success); }
.alert-error   { background:rgba(201,74,74,.1);  border-color:var(--danger);  color:var(--danger);  }
.alert-info    { background:rgba(74,144,201,.1); border-color:var(--info);    color:var(--info);    }
.alert-warning { background:rgba(232,160,32,.1); border-color:var(--warning); color:var(--warning); }

/* ── Chat ─────────────────────────────────────────────────── */
.chat-wrap {
  display:flex; flex-direction:column; gap:10px;
  max-height:400px; overflow-y:auto; padding:14px;
  background:var(--surface); border:1px solid var(--gold-border); border-radius:var(--radius);
}
.msg-bubble { max-width:72%; padding:9px 13px; border-radius:12px; font-size:14px; line-height:1.5; }
.msg-bubble.from-admin { background:var(--gold-dim); border:1px solid var(--gold-border); align-self:flex-start; border-bottom-left-radius:3px; }
.msg-bubble.from-user  { background:var(--surface3); border:1px solid rgba(201,160,74,.1); align-self:flex-end; border-bottom-right-radius:3px; }
.msg-meta { font-size:11px; color:var(--muted); margin-top:3px; }

/* ── Match cards ──────────────────────────────────────────── */
.match-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:18px; }
.match-card { background:var(--surface2); border:1px solid var(--gold-border); border-radius:var(--radius); overflow:hidden; transition:transform .2s,border-color .2s; }
.match-card:hover { transform:translateY(-3px); border-color:var(--gold); }
.match-card-img { width:100%; height:150px; object-fit:cover; background:var(--surface3); display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:44px; }
.match-card-body { padding:16px; }
.match-card-title { font-family:'Cormorant Garamond',serif; font-size:19px; color:var(--cream); margin-bottom:5px; }
.match-card-meta { font-size:13px; color:var(--muted); }

/* ── Leaflet dark theme ───────────────────────────────────── */
.tc-tooltip { background:#141210!important; border:1px solid rgba(201,160,74,.3)!important; border-radius:8px!important; color:#e4d8c8!important; font-family:'Outfit',sans-serif!important; font-size:13px!important; padding:6px 10px!important; }
.tc-tooltip::before { display:none!important; }
.leaflet-control-zoom a { background:#141210!important; color:#c9a04a!important; border-color:rgba(201,160,74,.3)!important; }
.leaflet-popup-content-wrapper { background:#141210!important; border:1px solid rgba(201,160,74,.3)!important; color:#e4d8c8!important; border-radius:8px!important; }
.leaflet-popup-tip { background:#141210!important; }

/* ── Responsive ───────────────────────────────────────────── */
@media(max-width:900px) {
  .sidebar { transform:translateX(-100%); transition:transform .25s; }
  .sidebar.open { transform:translateX(0); }
  .main { margin-left:0; padding:20px 16px; }
  .form-grid,.form-grid-3 { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; }
}

/* ── Utility ──────────────────────────────────────────────── */
.flex { display:flex; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.gap-8{gap:8px;}.gap-12{gap:12px;}.gap-16{gap:16px;}
.mt-16{margin-top:16px;}.mt-24{margin-top:24px;}.mt-32{margin-top:32px;}
.mb-16{margin-bottom:16px;}.mb-24{margin-bottom:24px;}
.text-gold{color:var(--gold);}.text-muted{color:var(--muted);}
.text-cream{color:var(--cream);}.text-danger{color:var(--danger);}
.text-success{color:var(--success);}.text-right{text-align:right;}
.text-center{text-align:center;}.small{font-size:13px;}
.divider{border:none;border-top:1px solid var(--gold-border);margin:20px 0;}
.w-full{width:100%;}.hidden{display:none!important;}

/* ══════════════════════════════════════════════════════════
   DIALOG / MODAL (age-gate, privacy, termini)
   ══════════════════════════════════════════════════════════ */

dialog.modal {
  background: var(--surface2);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 0;
  max-width: 520px;
  width: 90%;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
}

dialog.modal::backdrop {
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(6px);
}

dialog.modal .modal-content {
  padding: 44px 40px;
}

dialog.modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--cream);
  margin-bottom: 12px;
}

dialog.modal h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
  margin-bottom: 8px;
}

dialog.modal p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Bottoni nel modal age-gate */
.btn-primary {
  background: var(--gold);
  color: #0e0c0a;
  border: none;
  border-radius: 7px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: background .2s;
}
.btn-primary:hover { background: var(--gold-light); color: #0e0c0a; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--gold-border);
  border-radius: 7px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--text); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE MOBILE – max 768px
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Portale layout */
  .portal-wrap { flex-direction: column; }
  .sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    transform: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--gold-border);
    padding: 8px 0 !important;
    display: none;
  }
  .sidebar.open { display: block; }
  .main { margin-left: 0 !important; padding: 16px !important; }

  /* Topbar */
  .topbar { padding: 10px 14px !important; }
  .topbar-brand span { display: none; }
  .topbar-user strong { display: none; }

  /* Griglia statistiche */
  .stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .stat-tile { padding: 14px !important; }
  .stat-value { font-size: 28px !important; }

  /* Cards e griglie */
  .card { padding: 16px !important; }
  .form-grid,
  .form-grid-3 { grid-template-columns: 1fr !important; }

  /* Tabelle scroll orizzontale */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }

  /* Pulsanti */
  .btn { padding: 9px 14px !important; font-size: 12px !important; }
  .btn-gold { padding: 10px 18px !important; }

  /* Page title */
  .page-title { font-size: 24px !important; }
  .page-subtitle { font-size: 13px !important; }

  /* Chat messaggi */
  .chat-wrap { height: 300px !important; }
  .msg-bubble { max-width: 85% !important; font-size: 13px !important; }

  /* Messaggi admin layout */
  #msg-layout { grid-template-columns: 1fr !important; height: auto !important; }
  #msg-lista { max-height: 220px; overflow-y: auto; }
  #btn-back { display: block !important; margin-bottom: 10px; }

  /* Grid 2 colonne → 1 */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Auth modal */
  #auth-overlay > div { max-width: 100% !important; margin: 0 10px; }

  /* Pacchetti pricing */
  .pricing-grid { grid-template-columns: 1fr !important; }
  .p-card { padding: 20px !important; }

  /* Hero landing */
  .hero-content h1 { font-size: 28px !important; }
  .hero-content .hero-sub { font-size: 14px !important; }
  .cta-group { flex-direction: column !important; gap: 10px !important; }
  .trust-row { flex-wrap: wrap !important; gap: 8px !important; }

  /* Footer */
  .footer-col-responsive { text-align: center !important; }
  .footer-pay-responsive { justify-content: center !important; }

  /* Sidebar admin menu hamburger */
  .sidebar-toggle { display: flex !important; }
}

/* ── Hamburger menu per admin su mobile ───────────────────── */
.sidebar-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 7px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
}
