/* Copyright (C) Gregorio Antonio Curello e Gruppo Fotografico Curello. */
:root{
  --bg:#0b0b0c;
  --text:#fff;
  --muted:rgba(255,255,255,.66);
  --muted2:rgba(255,255,255,.45);
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.06);
  --shadow: 0 18px 60px rgba(0,0,0,.65);
  --radius: 18px;
  --radius2: 22px;
  --max: 1120px;
  --error:#ff4c4c;
}

*{ box-sizing:border-box; margin:0; padding:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial; }
html, body{ max-width:100%; overflow-x:hidden; -webkit-text-size-adjust:100%; }
body{
  min-height:100vh;
  color:var(--text);
  background:
    radial-gradient(1000px 700px at 50% -200px, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 600px at 80% 0%, rgba(255,255,255,.06), transparent 70%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; height:auto; }

.container{
  width:100%;
  max-width: var(--max);
  margin:0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,11,12,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
}
.topbar-inner{
  min-height: 72px;
  padding: 10px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width:0;
}
.brand img{ height: 36px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }

.nav-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
  align-items:center;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:rgba(255,255,255,.90);
  font-weight: 900;
  line-height:1;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.pill:hover{ transform: translateY(-1px); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }

/* Variant per link legali (più “soft”) */
.pill.legal{
  font-weight: 850;
  opacity: .92;
  border-color: rgba(255,255,255,.08);
}

/* Page */
.page{ padding: 18px 0 44px; }
.stage{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 14px;
  align-items: stretch;
}

/* Panels */
.panel{
  border-radius: var(--radius2);
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.left{
  padding: 22px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.right{
  padding: 22px;
  display:flex;
  flex-direction:column;
  gap: 14px;
  justify-content:center;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.88);
  font-weight: 950;
  width: fit-content;
}
.kicker svg{ opacity:.9; }

.h1{
  font-size: 1.75rem;
  font-weight: 950;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.sub{
  color: var(--muted);
  line-height: 1.55;
  font-size: .98rem;
  max-width: 56ch;
}

.feature{
  margin-top: 6px;
  display:grid;
  gap:10px;
}
.feature-item{
  padding: 14px;
  border-radius: var(--radius);
  border:1px solid var(--line2);
  background: rgba(0,0,0,.18);
}
.feature-item strong{ font-weight: 950; letter-spacing:-.02em; }
.feature-item p{ margin-top: 6px; color: var(--muted); font-size:.92rem; line-height:1.45; }
.small{
  margin-top: 6px;
  color: var(--muted2);
  font-size: .85rem;
  line-height: 1.4;
}

/* Form */
.form-title{
  font-size: 1.15rem;
  font-weight: 950;
  letter-spacing:-.03em;
}
.form-sub{
  margin-top: -6px;
  color: var(--muted);
  font-size: .95rem;
  line-height:1.45;
}

.field{ display:flex; flex-direction:column; gap: 8px; }
.label{ font-size: .92rem; font-weight: 900; color: rgba(255,255,255,.88); }
.input{
  width:100%;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.22);
  color: var(--text);
  padding: 14px 12px;
  outline:none;
  min-height: 48px;
  font-size: 16px; /* no zoom iOS */
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input:focus{
  border-color: rgba(255,255,255,.20);
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
  background: rgba(0,0,0,.28);
}
.hint{ color: var(--muted2); font-size: .85rem; line-height:1.35; }

.btn{
  width:100%;
  border:none;
  border-radius: 999px;
  padding: 14px 16px;
  min-height: 50px;
  font-weight: 950;
  cursor:pointer;
  background:#fff;
  color:#000;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-size: 1rem;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 35px rgba(0,0,0,.35);
}
.btn:active{ transform: translateY(0) scale(.99); }

.alert{
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.alert.err{
  border-color: rgba(255, 76, 76, .35);
  background: rgba(255, 76, 76, .06);
  color: #ffd6d6;
}

.row{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.small-link{
  color: rgba(255,255,255,.88);
  font-weight: 850;
  font-size: .92rem;
  opacity: .92;
}
.small-link:hover{ opacity:1; text-decoration: underline; }

/* ✅ Integrated extras (NOT an AD) */
.extras-inline{
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.extras-head{
  display:flex;
  flex-direction:column;
  gap: 4px;
  margin-bottom: 12px;
}
.extras-head strong{
  font-weight: 950;
  font-size: .95rem;
  color: rgba(255,255,255,.92);
}
.extras-head span{
  font-size: .82rem;
  color: rgba(255,255,255,.48);
}

.extras-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.extras-card{
  display:flex;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.16);
}
.extras-media{
  width: 68px;
  height: 52px;
  border-radius: 12px;
  overflow:hidden;
  background: rgba(0,0,0,.25);
  flex: 0 0 auto;
}
.extras-media img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.extras-info{ min-width:0; }
.extras-title{
  font-weight: 950;
  font-size: .92rem;
  letter-spacing: -.02em;
  color: rgba(255,255,255,.90);
}
.extras-desc{
  margin-top: 3px;
  font-size: .80rem;
  line-height: 1.45;
  color: rgba(255,255,255,.52);
}
.extras-price{
  margin-top: 6px;
  display:inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  font-weight: 950;
  font-size: .78rem;
  color: rgba(255,255,255,.70);
}

/* Footer legal links */
.footer-legal{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

/* Responsive */
@media (max-width: 960px){
  .stage{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .topbar-inner{ min-height: 64px; }
  .left, .right{ padding: 16px; }
  .h1{ font-size: 1.35rem; }
  .extras-grid{ grid-template-columns: 1fr; }
  .brand img{ height: 32px; }
}

/* Motion */
@keyframes pop{ from{ transform: translateY(8px); opacity:0 } to{ transform: translateY(0); opacity:1 } }
.panel{ animation: pop .32s ease both; }
@media (prefers-reduced-motion: reduce){
  .panel{ animation:none; }
  .pill,.btn{ transition:none; }
}
