/* Veytra — sito veytra.it. Palette: blu notte e oro (concept art). */
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('/fonts/Playfair-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('/fonts/Playfair-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url('/fonts/Playfair-Italic.ttf') format('truetype'); font-style: italic; font-display: swap; }

:root {
  --midnight: #0B1020; --navy: #11182B; --surface: #171F32; --surface-2: #1F2940;
  --gold: #D6B56D; --gold-soft: #EBD39B; --ivory: #F1E8D5; --muted: #8991A5; --rose: #C58C8C;
  --line: rgba(255,255,255,.08); --line-gold: rgba(214,181,109,.3);
  --radius: 18px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--midnight); color: var(--ivory);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--ivory); }
h1, h2, h3 { font-family: Playfair, Georgia, serif; font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { color: var(--gold); letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; font-weight: 600; }

/* Sfondo stellato */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(214,181,109,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 10%, rgba(197,140,140,.06), transparent 60%),
    linear-gradient(180deg, #0B1020 0%, #0d1326 60%, #0B1020 100%); }
.sky::before, .sky::after { content: ''; position: absolute; inset: 0; background-repeat: repeat;
  background-image: radial-gradient(1px 1px at 20px 30px, rgba(241,232,213,.5), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(241,232,213,.35), transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, rgba(235,211,155,.5), transparent),
    radial-gradient(1px 1px at 300px 40px, rgba(241,232,213,.3), transparent);
  background-size: 340px 220px; opacity: .55; }
.sky::after { background-size: 520px 400px; opacity: .35; animation: twinkle 7s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .1; } }
@media (prefers-reduced-motion: reduce) { .sky::after { animation: none; } html { scroll-behavior: auto; } }

/* Header */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11,16,32,.72); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold-soft); font-family: Playfair, serif; letter-spacing: .32em; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: .94rem; }
.nav a { color: var(--ivory); opacity: .8; }
.nav a:hover { opacity: 1; }
.nav .btn { opacity: 1; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 12px; } .brand span { display: none; } }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer;
  font: 600 .98rem Inter, sans-serif; border-radius: 14px; padding: 14px 22px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-gold { color: var(--midnight); background: linear-gradient(135deg, #EBD39B, #D6B56D 55%, #b8944e);
  box-shadow: 0 8px 30px rgba(214,181,109,.25); }
.btn-gold:hover { color: var(--midnight); transform: translateY(-1px); box-shadow: 0 12px 36px rgba(214,181,109,.35); }
.btn-ghost { color: var(--ivory); background: transparent; border: 1px solid var(--line-gold); }
.btn-ghost:hover { background: rgba(214,181,109,.08); color: var(--ivory); }
.btn-sm { padding: 9px 16px; font-size: .88rem; border-radius: 11px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lead { font-size: 1.15rem; color: #cfc8b8; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero .note { font-size: .85rem; color: var(--muted); }
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 250px; border-radius: 34px; padding: 8px; background: #05070f;
  border: 1px solid rgba(214,181,109,.25); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(214,181,109,.08); }
.phone img { border-radius: 27px; aspect-ratio: 1/2; object-fit: cover; width: 100%; }
.phone.p1 { left: 4%; top: 30px; transform: rotate(-6deg); }
.phone.p2 { right: 4%; top: 0; transform: rotate(5deg); z-index: 2; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .phones { height: 430px; } .phone { width: 190px; } .phone.p1 { left: 50%; margin-left: -175px; } .phone.p2 { right: 50%; margin-right: -175px; }
}

/* Sezioni */
section { padding: 76px 0; }
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: linear-gradient(180deg, rgba(23,31,50,.92), rgba(17,24,43,.92)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(214,181,109,.1); border: 1px solid var(--line-gold); color: var(--gold); }
.card .ico svg { width: 22px; height: 22px; }
.card p { color: #c4bdad; margin: 0; }
.step-n { font-family: Playfair, serif; font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 10px; }

/* Raggio 150 m */
.radius { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.ring { position: relative; aspect-ratio: 1; max-width: 400px; margin: 0 auto; width: 100%; }
.ring .r { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-gold);
  background: radial-gradient(circle, rgba(214,181,109,.14), rgba(214,181,109,.02) 60%, transparent 70%); }
.ring .r2 { inset: 22%; border-style: dashed; background: none; }
.ring .dot { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px; border-radius: 50%;
  background: var(--ivory); box-shadow: 0 0 0 6px rgba(241,232,213,.15); }
.ring .glow { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 22px 8px rgba(214,181,109,.55); animation: pulse 3s ease-in-out infinite; }
.ring .far { background: rgba(214,181,109,.45); box-shadow: 0 0 30px 14px rgba(214,181,109,.25); }
.ring .label { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); font-size: .8rem; color: var(--gold-soft); letter-spacing: .1em; }
@keyframes pulse { 50% { transform: scale(1.25); opacity: .7; } }
@media (max-width: 860px) { .radius { grid-template-columns: minmax(0, 1fr); } }

/* Galleria */
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; flex: 0 0 220px; scroll-snap-align: center; }
.gallery img { border-radius: 22px; border: 1px solid var(--line); aspect-ratio: 1/2; object-fit: cover; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* Download */
.download { border: 1px solid var(--line-gold); border-radius: 26px; padding: 40px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(214,181,109,.12), transparent 70%), var(--navy);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; }
.download ol { padding-left: 1.2em; color: #c4bdad; margin: 0; }
.download li { margin-bottom: 8px; }
.meta { font-size: .82rem; color: var(--muted); word-break: break-all; margin-top: 14px; }
@media (max-width: 860px) { .download { grid-template-columns: minmax(0, 1fr); padding: 26px; } }

/* Moduli */
.auth { min-height: calc(100vh - 66px - 120px); display: grid; place-items: center; padding: 48px 0; }
.panel { width: 100%; max-width: 460px; background: linear-gradient(180deg, rgba(23,31,50,.95), rgba(17,24,43,.95));
  border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.panel h1 { font-size: 2.2rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; background: var(--midnight); border: 1px solid rgba(255,255,255,.12); color: var(--ivory);
  border-radius: 13px; padding: 13px 14px; font: 400 1rem Inter, sans-serif; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,181,109,.15); }
.field small { display: block; color: var(--muted); font-size: .78rem; margin-top: 5px; }
.otp { text-align: center; font-size: 2rem !important; letter-spacing: .5em; font-weight: 600 !important; color: var(--gold-soft) !important; padding-left: .5em !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #c4bdad; margin: 6px 0 20px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.panel .btn { width: 100%; }
.alt { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--muted); }
.msg { border-radius: 12px; padding: 11px 14px; font-size: .9rem; margin-bottom: 16px; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(197,140,140,.12); border: 1px solid rgba(197,140,140,.4); color: #f0c9c9; }
.msg.ok { background: rgba(143,191,154,.1); border: 1px solid rgba(143,191,154,.4); color: #cde8d3; }
.linkbtn { background: none; border: 0; color: var(--gold-soft); cursor: pointer; font: inherit; padding: 0; }
.linkbtn[disabled] { color: var(--muted); cursor: default; }
.hidden { display: none !important; }
.success { text-align: center; }
.success .big { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px;
  background: rgba(214,181,109,.12); border: 1px solid var(--line-gold); color: var(--gold); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: .95rem; margin: 18px 0 24px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }

/* Testi legali */
.legal { max-width: 760px; padding: 48px 20px 80px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }
.draft { border: 1px dashed var(--rose); color: #f0c9c9; border-radius: 12px; padding: 12px 16px; font-size: .9rem; margin: 10px 0 24px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); } footer a:hover { color: var(--ivory); }
.nav a.btn-gold { color: var(--midnight); }
@media (max-width: 900px) { .phone.p1 { margin-left: -165px; } .phone.p2 { margin-right: -165px; } }
.legal .effective { color: var(--gold-soft); font-size: .92rem; margin: -4px 0 18px; }
.legal .lead-legal { color: var(--ivory); font-size: 1.05rem; }
.legal p, .legal li { color: #c9c3b6; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
